google-cloud-storage 1.47.0 → 1.48.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/project.rb +9 -0
- data/lib/google/cloud/storage/service.rb +7 -1
- data/lib/google/cloud/storage/version.rb +1 -1
- data/lib/google/cloud/storage.rb +11 -4
- data/lib/google-cloud-storage.rb +2 -2
- metadata +10 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a77b42f7925425dc6cc14c9676292017c15db9826ff30221112dfcf4eea9594b
|
|
4
|
+
data.tar.gz: 6f3398d6858494cf5cec59a274d9f15395d302257aba7f016d66ebc6bdb52cd9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60877c029fd33a3a0840463d09bf6eb6fe4b8355ace365e83e720cf5cf6c07de6a32b3be6b9c74be98cdc0c3331b05d6f08b4c4b25ff0d672da89584e9f66554
|
|
7
|
+
data.tar.gz: e46861398365f3e4c8c6793bd013f7dbaeba7c774c11bb4a928ae6c1d14edec9ba45fe1038b382f6be7e590bd718dbfd641a04569f0d6ad701ada18a548cdc56
|
data/CHANGELOG.md
CHANGED
|
@@ -62,6 +62,15 @@ module Google
|
|
|
62
62
|
@service = service
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
##
|
|
66
|
+
# The universe domain the client is connected to
|
|
67
|
+
#
|
|
68
|
+
# @return [String]
|
|
69
|
+
#
|
|
70
|
+
def universe_domain
|
|
71
|
+
service.universe_domain
|
|
72
|
+
end
|
|
73
|
+
|
|
65
74
|
##
|
|
66
75
|
# The Storage project connected to.
|
|
67
76
|
#
|
|
@@ -36,6 +36,11 @@ module Google
|
|
|
36
36
|
# @private
|
|
37
37
|
attr_accessor :credentials
|
|
38
38
|
|
|
39
|
+
# @private
|
|
40
|
+
def universe_domain
|
|
41
|
+
service.universe_domain
|
|
42
|
+
end
|
|
43
|
+
|
|
39
44
|
##
|
|
40
45
|
# Creates a new Service instance.
|
|
41
46
|
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
@@ -43,7 +48,7 @@ module Google
|
|
|
43
48
|
timeout: nil, open_timeout: nil, read_timeout: nil,
|
|
44
49
|
send_timeout: nil, host: nil, quota_project: nil,
|
|
45
50
|
max_elapsed_time: nil, base_interval: nil, max_interval: nil,
|
|
46
|
-
multiplier: nil, upload_chunk_size: nil
|
|
51
|
+
multiplier: nil, upload_chunk_size: nil, universe_domain: nil
|
|
47
52
|
@project = project
|
|
48
53
|
@credentials = credentials
|
|
49
54
|
@service = API::StorageService.new
|
|
@@ -68,6 +73,7 @@ module Google
|
|
|
68
73
|
@service.request_options.upload_chunk_size = upload_chunk_size if upload_chunk_size
|
|
69
74
|
@service.authorization = @credentials.client if @credentials
|
|
70
75
|
@service.root_url = host if host
|
|
76
|
+
@service.universe_domain = universe_domain
|
|
71
77
|
end
|
|
72
78
|
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
73
79
|
|
data/lib/google/cloud/storage.rb
CHANGED
|
@@ -67,6 +67,8 @@ module Google
|
|
|
67
67
|
# @param [Integer] send_timeout How long, in seconds, before receiving response from server times out. Optional.
|
|
68
68
|
# @param [String] endpoint Override of the endpoint host name. Optional.
|
|
69
69
|
# If the param is nil, uses the default endpoint.
|
|
70
|
+
# @param universe_domain [String] Override of the universe domain. Optional.
|
|
71
|
+
# If unset or nil, uses the default unvierse domain
|
|
70
72
|
# @param [Integer] upload_chunk_size The chunk size of storage upload, in bytes.
|
|
71
73
|
# The default value is 100 MB, i.e. 104_857_600 bytes. To disable chunking and upload
|
|
72
74
|
# the complete file regardless of size, pass 0 as the chunk size.
|
|
@@ -92,7 +94,7 @@ module Google
|
|
|
92
94
|
timeout: nil, open_timeout: nil, read_timeout: nil,
|
|
93
95
|
send_timeout: nil, endpoint: nil, project: nil, keyfile: nil,
|
|
94
96
|
max_elapsed_time: nil, base_interval: nil, max_interval: nil,
|
|
95
|
-
multiplier: nil, upload_chunk_size: nil
|
|
97
|
+
multiplier: nil, upload_chunk_size: nil, universe_domain: nil
|
|
96
98
|
scope ||= configure.scope
|
|
97
99
|
retries ||= configure.retries
|
|
98
100
|
timeout ||= configure.timeout
|
|
@@ -106,6 +108,7 @@ module Google
|
|
|
106
108
|
max_interval ||= configure.max_interval
|
|
107
109
|
multiplier ||= configure.multiplier
|
|
108
110
|
upload_chunk_size ||= configure.upload_chunk_size
|
|
111
|
+
universe_domain ||= configure.universe_domain
|
|
109
112
|
|
|
110
113
|
unless credentials.is_a? Google::Auth::Credentials
|
|
111
114
|
credentials = Storage::Credentials.new credentials, scope: scope
|
|
@@ -121,7 +124,8 @@ module Google
|
|
|
121
124
|
read_timeout: read_timeout, send_timeout: send_timeout,
|
|
122
125
|
host: endpoint, quota_project: configure.quota_project,
|
|
123
126
|
max_elapsed_time: max_elapsed_time, base_interval: base_interval,
|
|
124
|
-
max_interval: max_interval, multiplier: multiplier, upload_chunk_size: upload_chunk_size
|
|
127
|
+
max_interval: max_interval, multiplier: multiplier, upload_chunk_size: upload_chunk_size,
|
|
128
|
+
universe_domain: universe_domain
|
|
125
129
|
)
|
|
126
130
|
)
|
|
127
131
|
end
|
|
@@ -145,6 +149,8 @@ module Google
|
|
|
145
149
|
# @param [Integer] send_timeout How long, in seconds, before receiving response from server times out. Optional.
|
|
146
150
|
# @param [String] endpoint Override of the endpoint host name. Optional.
|
|
147
151
|
# If the param is nil, uses the default endpoint.
|
|
152
|
+
# @param universe_domain [String] Override of the universe domain. Optional.
|
|
153
|
+
# If unset or nil, uses the default unvierse domain
|
|
148
154
|
# @param [Integer] upload_chunk_size The chunk size of storage upload, in bytes.
|
|
149
155
|
# The default value is 100 MB, i.e. 104_857_600 bytes. To disable chunking and upload
|
|
150
156
|
# the complete file regardless of size, pass 0 as the chunk size.
|
|
@@ -166,7 +172,7 @@ module Google
|
|
|
166
172
|
def self.anonymous retries: nil, timeout: nil, open_timeout: nil,
|
|
167
173
|
read_timeout: nil, send_timeout: nil, endpoint: nil,
|
|
168
174
|
max_elapsed_time: nil, base_interval: nil, max_interval: nil,
|
|
169
|
-
multiplier: nil, upload_chunk_size: nil
|
|
175
|
+
multiplier: nil, upload_chunk_size: nil, universe_domain: nil
|
|
170
176
|
open_timeout ||= timeout
|
|
171
177
|
read_timeout ||= timeout
|
|
172
178
|
send_timeout ||= timeout
|
|
@@ -175,7 +181,8 @@ module Google
|
|
|
175
181
|
nil, nil, retries: retries, timeout: timeout, open_timeout: open_timeout,
|
|
176
182
|
read_timeout: read_timeout, send_timeout: send_timeout, host: endpoint,
|
|
177
183
|
max_elapsed_time: max_elapsed_time, base_interval: base_interval,
|
|
178
|
-
max_interval: max_interval, multiplier: multiplier, upload_chunk_size: upload_chunk_size
|
|
184
|
+
max_interval: max_interval, multiplier: multiplier, upload_chunk_size: upload_chunk_size,
|
|
185
|
+
universe_domain: universe_domain
|
|
179
186
|
)
|
|
180
187
|
)
|
|
181
188
|
end
|
data/lib/google-cloud-storage.rb
CHANGED
|
@@ -192,7 +192,7 @@ Google::Cloud.configure.add_config! :storage do |config|
|
|
|
192
192
|
config.add_field! :read_timeout, nil, match: Integer
|
|
193
193
|
config.add_field! :send_timeout, nil, match: Integer
|
|
194
194
|
config.add_field! :upload_chunk_size, nil, match: Integer
|
|
195
|
-
|
|
196
|
-
config.add_field! :
|
|
195
|
+
config.add_field! :endpoint, nil, match: String, allow_nil: true
|
|
196
|
+
config.add_field! :universe_domain, nil, match: String, allow_nil: true
|
|
197
197
|
end
|
|
198
198
|
# rubocop:enable Metrics/BlockLength
|
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.
|
|
4
|
+
version: 1.48.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-
|
|
12
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|
|
@@ -31,48 +31,42 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '0.
|
|
34
|
+
version: '0.18'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '0.
|
|
41
|
+
version: '0.18'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: google-apis-storage_v1
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
46
|
- - "~>"
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: 0.
|
|
48
|
+
version: '0.33'
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
53
|
- - "~>"
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.
|
|
55
|
+
version: '0.33'
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: googleauth
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- - "
|
|
61
|
-
- !ruby/object:Gem::Version
|
|
62
|
-
version: 0.16.2
|
|
63
|
-
- - "<"
|
|
60
|
+
- - "~>"
|
|
64
61
|
- !ruby/object:Gem::Version
|
|
65
|
-
version:
|
|
62
|
+
version: '1.9'
|
|
66
63
|
type: :runtime
|
|
67
64
|
prerelease: false
|
|
68
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
69
66
|
requirements:
|
|
70
|
-
- - "
|
|
71
|
-
- !ruby/object:Gem::Version
|
|
72
|
-
version: 0.16.2
|
|
73
|
-
- - "<"
|
|
67
|
+
- - "~>"
|
|
74
68
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
69
|
+
version: '1.9'
|
|
76
70
|
- !ruby/object:Gem::Dependency
|
|
77
71
|
name: digest-crc
|
|
78
72
|
requirement: !ruby/object:Gem::Requirement
|