google-cloud-storage 1.55.0 → 1.56.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/cloud/storage/bucket.rb +45 -0
- data/lib/google/cloud/storage/service.rb +38 -0
- data/lib/google/cloud/storage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37d818583b06d396a9b237a24187b677bb5261c31e3a139714ef4f8fd868e4ec
|
4
|
+
data.tar.gz: d8ed3812b144e20a747c79147fd26642a7f8d4c9a5e017e925144f9e33afa717
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 519fe7bc2cf869c804bbfac6ce300b300f99f065a594673d36cf344b3cacff1ff1fb4eec086903ddcbc4a4be108c66082f05d539ef9508570d43ec9c678893be
|
7
|
+
data.tar.gz: a82b8ddd47b64d71c5035491a87021912419213538a0b2105de3facf4a09aac927379b1c980e5612629426cc7e0ec5de3590480fcdc265fb1bdf172f28d1be05
|
data/CHANGELOG.md
CHANGED
@@ -3143,6 +3143,51 @@ module Google
|
|
3143
3143
|
end
|
3144
3144
|
alias refresh! reload!
|
3145
3145
|
|
3146
|
+
##
|
3147
|
+
# Moves File from source to destination path within the same HNS-enabled bucket
|
3148
|
+
# This Operation is being performed at server side
|
3149
|
+
# @param [String] source_file The file name in existing bucket
|
3150
|
+
# @param [String] destination_file The new filename to be created on bucket
|
3151
|
+
# If the destination path includes non-existent parent folders, they will be created.
|
3152
|
+
# @example
|
3153
|
+
# require "google/cloud/storage"
|
3154
|
+
# storage = Google::Cloud::Storage.new
|
3155
|
+
# bucket = storage.bucket bucket_name, skip_lookup: true
|
3156
|
+
# bucket.move_file source_file_name, destination_file_name
|
3157
|
+
def move_file source_file,
|
3158
|
+
destination_file,
|
3159
|
+
if_generation_match: nil,
|
3160
|
+
if_generation_not_match: nil,
|
3161
|
+
if_metageneration_match: nil,
|
3162
|
+
if_metageneration_not_match: nil,
|
3163
|
+
if_source_generation_match: nil,
|
3164
|
+
if_source_generation_not_match: nil,
|
3165
|
+
if_source_metageneration_match: nil,
|
3166
|
+
if_source_metageneration_not_match: nil,
|
3167
|
+
user_project: nil,
|
3168
|
+
fields: nil,
|
3169
|
+
quota_user: nil,
|
3170
|
+
user_ip: nil,
|
3171
|
+
options: {}
|
3172
|
+
ensure_service!
|
3173
|
+
service.move_file name,
|
3174
|
+
source_file,
|
3175
|
+
destination_file,
|
3176
|
+
if_generation_match: if_generation_match,
|
3177
|
+
if_generation_not_match: if_generation_not_match,
|
3178
|
+
if_metageneration_match: if_metageneration_match,
|
3179
|
+
if_metageneration_not_match: if_metageneration_not_match,
|
3180
|
+
if_source_generation_match: if_source_generation_match,
|
3181
|
+
if_source_generation_not_match: if_source_generation_not_match,
|
3182
|
+
if_source_metageneration_match: if_source_metageneration_match,
|
3183
|
+
if_source_metageneration_not_match: if_source_metageneration_not_match,
|
3184
|
+
user_project: user_project,
|
3185
|
+
fields: fields,
|
3186
|
+
quota_user: quota_user,
|
3187
|
+
user_ip: user_ip,
|
3188
|
+
options: options
|
3189
|
+
end
|
3190
|
+
|
3146
3191
|
##
|
3147
3192
|
# Determines whether the bucket exists in the Storage service.
|
3148
3193
|
#
|
@@ -630,6 +630,44 @@ module Google
|
|
630
630
|
end
|
631
631
|
end
|
632
632
|
|
633
|
+
##
|
634
|
+
# Moves file from source to destination path within bucket
|
635
|
+
def move_file name,
|
636
|
+
source_file,
|
637
|
+
destination_file,
|
638
|
+
if_generation_match: nil,
|
639
|
+
if_generation_not_match: nil,
|
640
|
+
if_metageneration_match: nil,
|
641
|
+
if_metageneration_not_match: nil,
|
642
|
+
if_source_generation_match: nil,
|
643
|
+
if_source_generation_not_match: nil,
|
644
|
+
if_source_metageneration_match: nil,
|
645
|
+
if_source_metageneration_not_match: nil,
|
646
|
+
user_project: nil,
|
647
|
+
fields: nil,
|
648
|
+
quota_user: nil,
|
649
|
+
user_ip: nil,
|
650
|
+
options: {}
|
651
|
+
execute do
|
652
|
+
service.move_object name,
|
653
|
+
source_file,
|
654
|
+
destination_file,
|
655
|
+
if_generation_match: if_generation_match,
|
656
|
+
if_generation_not_match: if_generation_not_match,
|
657
|
+
if_metageneration_match: if_metageneration_match,
|
658
|
+
if_metageneration_not_match: if_metageneration_not_match,
|
659
|
+
if_source_generation_match: if_source_generation_match,
|
660
|
+
if_source_generation_not_match: if_source_generation_not_match,
|
661
|
+
if_source_metageneration_match: if_source_metageneration_match,
|
662
|
+
if_source_metageneration_not_match: if_source_metageneration_not_match,
|
663
|
+
user_project: user_project(user_project),
|
664
|
+
fields: fields,
|
665
|
+
quota_user: quota_user,
|
666
|
+
user_ip: user_ip,
|
667
|
+
options: options
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
633
671
|
##
|
634
672
|
# Permanently deletes a file.
|
635
673
|
def delete_file bucket_name,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.56.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
8
8
|
- Chris Smith
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
338
|
- !ruby/object:Gem::Version
|
339
339
|
version: '0'
|
340
340
|
requirements: []
|
341
|
-
rubygems_version: 3.6.
|
341
|
+
rubygems_version: 3.6.5
|
342
342
|
specification_version: 4
|
343
343
|
summary: API Client library for Google Cloud Storage
|
344
344
|
test_files: []
|