google-cloud-storage 1.18.2 → 1.19.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 +5 -0
- data/lib/google/cloud/storage/bucket.rb +23 -7
- data/lib/google/cloud/storage/file.rb +1 -2
- data/lib/google/cloud/storage/project.rb +2 -2
- data/lib/google/cloud/storage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32043f65423a16e46517e97ba6bac2a1274c65c8e2de2a65aa2b943441d81450
|
4
|
+
data.tar.gz: 877e9fae1ca774a7a96b9cd22c65f3510b6ff69e572d76ba00774c82b584cb5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403cc31cb8f15f14d247683926e64c2199b11ddcf40e8971515522ff0b4b0f231ebbeb666d467af9d92712c7ce456a1b6f546ca79c644ec4e2bbc2784e722875
|
7
|
+
data.tar.gz: 01e66c191a69e1de2e4badc0719c218a53c2a9ab1c9eddb2c9a1c8ae20bbae92e86fa15c922e48cb83e875cfe36fb7db407431935ae519cc34d840376577b4e6
|
data/CHANGELOG.md
CHANGED
@@ -285,6 +285,22 @@ module Google
|
|
285
285
|
@gapi.location
|
286
286
|
end
|
287
287
|
|
288
|
+
##
|
289
|
+
# The bucket's location type. Location type defines the geographic
|
290
|
+
# placement of the bucket's data and affects cost, performance, and
|
291
|
+
# availability. There are three possible values:
|
292
|
+
#
|
293
|
+
# * `region` - Lowest latency within a single region
|
294
|
+
# * `multi-region` - Highest availability across largest area
|
295
|
+
# * `dual-region` - High availability and low latency across 2 regions
|
296
|
+
#
|
297
|
+
# @return [String] The location type code: "region", "multi-region", or
|
298
|
+
# "dual-region"
|
299
|
+
#
|
300
|
+
def location_type
|
301
|
+
@gapi.location_type
|
302
|
+
end
|
303
|
+
|
288
304
|
##
|
289
305
|
# The destination bucket name for the bucket's logs.
|
290
306
|
#
|
@@ -353,9 +369,9 @@ module Google
|
|
353
369
|
##
|
354
370
|
# Updates the bucket's storage class. This defines how objects in the
|
355
371
|
# bucket are stored and determines the SLA and the cost of storage.
|
356
|
-
# Accepted values include `:
|
357
|
-
#
|
358
|
-
#
|
372
|
+
# Accepted values include `:standard`, `:nearline`, and `:coldline`, as
|
373
|
+
# well as the equivalent strings returned by {Bucket#storage_class}. For
|
374
|
+
# more information, see [Storage
|
359
375
|
# Classes](https://cloud.google.com/storage/docs/storage-classes).
|
360
376
|
#
|
361
377
|
# @param [Symbol, String] new_storage_class Storage class of the bucket.
|
@@ -1119,10 +1135,10 @@ module Google
|
|
1119
1135
|
# file as "x-goog-meta-" response headers.
|
1120
1136
|
# @param [Symbol, String] storage_class Storage class of the file.
|
1121
1137
|
# Determines how the file is stored and determines the SLA and the
|
1122
|
-
# cost of storage. Accepted values include `:
|
1123
|
-
#
|
1124
|
-
#
|
1125
|
-
#
|
1138
|
+
# cost of storage. Accepted values include `:standard`, `:nearline`,
|
1139
|
+
# and `:coldline`, as well as the equivalent strings returned by
|
1140
|
+
# {#storage_class}. For more information, see [Storage
|
1141
|
+
# Classes](https://cloud.google.com/storage/docs/storage-classes)
|
1126
1142
|
# and [Per-Object Storage
|
1127
1143
|
# Class](https://cloud.google.com/storage/docs/per-object-storage-class).
|
1128
1144
|
# The default value is the default storage class for the bucket.
|
@@ -428,8 +428,7 @@ module Google
|
|
428
428
|
# Rewrites the file with a new storage class, which determines the SLA
|
429
429
|
# and the cost of storage. Accepted values include:
|
430
430
|
#
|
431
|
-
# * `:
|
432
|
-
# * `:regional`
|
431
|
+
# * `:standard`
|
433
432
|
# * `:nearline`
|
434
433
|
# * `:coldline`
|
435
434
|
#
|
@@ -295,8 +295,8 @@ module Google
|
|
295
295
|
# Logs](https://cloud.google.com/storage/docs/access-logs).
|
296
296
|
# @param [Symbol, String] storage_class Defines how objects in the
|
297
297
|
# bucket are stored and determines the SLA and the cost of storage.
|
298
|
-
# Accepted values include `:
|
299
|
-
#
|
298
|
+
# Accepted values include `:standard`, `:nearline`, and `:coldline`,
|
299
|
+
# as well as the equivalent strings returned by
|
300
300
|
# {Bucket#storage_class}. For more information, see [Storage
|
301
301
|
# Classes](https://cloud.google.com/storage/docs/storage-classes). The
|
302
302
|
# default value is the Standard storage class, which is equivalent to
|
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.19.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: 2019-
|
12
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|