google-cloud-storage 1.25.0 → 1.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/cloud/storage/bucket.rb +8 -8
- data/lib/google/cloud/storage/bucket/lifecycle.rb +5 -5
- data/lib/google/cloud/storage/convert.rb +4 -3
- data/lib/google/cloud/storage/file.rb +1 -0
- 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: ab43474a1a6a25a439d96a67b8664caff72861d3d121c927d5c11623ae570cab
|
4
|
+
data.tar.gz: f2e6378f9708fc079f2ce3539947e5587eb57263b2d96c8877c93d1b07b30abd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d40dfe073d42be6d3098a5c5e8779c4c52a7407b77f159e435e8c76ffe1cc59fc037591bcbc1b00ebaea9763d6085c7a9e639549eaacd89ea1444c1cd81a75e3
|
7
|
+
data.tar.gz: 16c8f515149d0794c40a474fb43d6c1859ff427b1ab5c75c6f4610959c49e3ed1a2c8d3a0060be58ded02f34867437fcaf81c1e2a8e00a8320af2fff470e5b34
|
data/CHANGELOG.md
CHANGED
@@ -357,7 +357,7 @@ module Google
|
|
357
357
|
##
|
358
358
|
# The bucket's storage class. This defines how objects in the bucket are
|
359
359
|
# stored and determines the SLA and the cost of storage. Values include
|
360
|
-
# `STANDARD`, `NEARLINE`, and `
|
360
|
+
# `STANDARD`, `NEARLINE`, `COLDLINE`, and `ARCHIVE`. `REGIONAL`,`MULTI_REGIONAL`,
|
361
361
|
# and `DURABLE_REDUCED_AVAILABILITY` are supported as legacy storage
|
362
362
|
# classes.
|
363
363
|
#
|
@@ -370,11 +370,11 @@ module Google
|
|
370
370
|
##
|
371
371
|
# Updates the bucket's storage class. This defines how objects in the
|
372
372
|
# bucket are stored and determines the SLA and the cost of storage.
|
373
|
-
# Accepted values include `:standard`, `:nearline`,
|
374
|
-
# well as the equivalent strings returned by
|
375
|
-
# `:multi_regional`, `:regional`, and
|
376
|
-
# are accepted as legacy storage classes.
|
377
|
-
# [Storage
|
373
|
+
# Accepted values include `:standard`, `:nearline`, `:coldline`, and
|
374
|
+
# `:archive`, as well as the equivalent strings returned by
|
375
|
+
# {Bucket#storage_class}. `:multi_regional`, `:regional`, and
|
376
|
+
# `durable_reduced_availability` are accepted as legacy storage classes.
|
377
|
+
# For more information, see [Storage
|
378
378
|
# Classes](https://cloud.google.com/storage/docs/storage-classes).
|
379
379
|
#
|
380
380
|
# @param [Symbol, String] new_storage_class Storage class of the bucket.
|
@@ -1146,8 +1146,8 @@ module Google
|
|
1146
1146
|
# @param [Symbol, String] storage_class Storage class of the file.
|
1147
1147
|
# Determines how the file is stored and determines the SLA and the
|
1148
1148
|
# cost of storage. Accepted values include `:standard`, `:nearline`,
|
1149
|
-
# and `:
|
1150
|
-
# {#storage_class}. `:multi_regional`, `:regional`, and
|
1149
|
+
# `:coldline`, and `:archive`, as well as the equivalent strings
|
1150
|
+
# returned by {#storage_class}. `:multi_regional`, `:regional`, and
|
1151
1151
|
# `durable_reduced_availability` are accepted legacy storage classes.
|
1152
1152
|
# For more information, see [Storage
|
1153
1153
|
# Classes](https://cloud.google.com/storage/docs/storage-classes)
|
@@ -111,7 +111,7 @@ module Google
|
|
111
111
|
# @param [String,Symbol,Array<String,Symbol>] matches_storage_class
|
112
112
|
# Files having any of the storage classes specified by this
|
113
113
|
# condition will be matched. Values include `STANDARD`, `NEARLINE`,
|
114
|
-
# and `
|
114
|
+
# `COLDLINE`, and `ARCHIVE`. `REGIONAL`,`MULTI_REGIONAL`, and
|
115
115
|
# `DURABLE_REDUCED_AVAILABILITY` are supported as legacy storage
|
116
116
|
# classes. Arguments will be converted from symbols and lower-case
|
117
117
|
# to upper-case strings.
|
@@ -162,7 +162,7 @@ module Google
|
|
162
162
|
# @param [String,Symbol,Array<String,Symbol>] matches_storage_class
|
163
163
|
# Files having any of the storage classes specified by this
|
164
164
|
# condition will be matched. Values include `STANDARD`, `NEARLINE`,
|
165
|
-
# and `
|
165
|
+
# `COLDLINE`, and `ARCHIVE`. `REGIONAL`,`MULTI_REGIONAL`, and
|
166
166
|
# `DURABLE_REDUCED_AVAILABILITY` are supported as legacy storage
|
167
167
|
# classes. Arguments will be converted from symbols and lower-case
|
168
168
|
# to upper-case strings.
|
@@ -240,9 +240,9 @@ module Google
|
|
240
240
|
# is `false`, it matches archived files.
|
241
241
|
# @attr [Array<String>] matches_storage_class Files having any of the
|
242
242
|
# storage classes specified by this condition will be matched.
|
243
|
-
# Values include `STANDARD`, `NEARLINE`, and `
|
244
|
-
# `MULTI_REGIONAL`, and `DURABLE_REDUCED_AVAILABILITY`
|
245
|
-
# as legacy storage classes.
|
243
|
+
# Values include `STANDARD`, `NEARLINE`, `COLDLINE`, and `ARCHIVE`.
|
244
|
+
# `REGIONAL`, `MULTI_REGIONAL`, and `DURABLE_REDUCED_AVAILABILITY`
|
245
|
+
# are supported as legacy storage classes.
|
246
246
|
# @attr [Integer] num_newer_versions Relevant only for versioned
|
247
247
|
# files. If the value is N, this condition is satisfied when there
|
248
248
|
# are at least N versions (including the live version) newer than
|
@@ -25,12 +25,13 @@ module Google
|
|
25
25
|
def storage_class_for str
|
26
26
|
return nil if str.nil?
|
27
27
|
return str.map { |s| storage_class_for s } if str.is_a? Array
|
28
|
-
{ "
|
28
|
+
{ "archive" => "ARCHIVE",
|
29
|
+
"coldline" => "COLDLINE",
|
29
30
|
"dra" => "DURABLE_REDUCED_AVAILABILITY",
|
30
31
|
"durable" => "DURABLE_REDUCED_AVAILABILITY",
|
31
|
-
"
|
32
|
-
"coldline" => "COLDLINE",
|
32
|
+
"durable_reduced_availability" => "DURABLE_REDUCED_AVAILABILITY",
|
33
33
|
"multi_regional" => "MULTI_REGIONAL",
|
34
|
+
"nearline" => "NEARLINE",
|
34
35
|
"regional" => "REGIONAL",
|
35
36
|
"standard" => "STANDARD" }[str.to_s.downcase] || str.to_s
|
36
37
|
end
|
@@ -294,8 +294,8 @@ module Google
|
|
294
294
|
# Logs](https://cloud.google.com/storage/docs/access-logs).
|
295
295
|
# @param [Symbol, String] storage_class Defines how objects in the
|
296
296
|
# bucket are stored and determines the SLA and the cost of storage.
|
297
|
-
# Accepted values include `:standard`, `:nearline`,
|
298
|
-
# as well as the equivalent strings returned by
|
297
|
+
# Accepted values include `:standard`, `:nearline`, `:coldline`, and
|
298
|
+
# `:archive`, as well as the equivalent strings returned by
|
299
299
|
# {Bucket#storage_class}. For more information, see [Storage
|
300
300
|
# Classes](https://cloud.google.com/storage/docs/storage-classes). The
|
301
301
|
# default value is the `:standard` storage class.
|
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.25.
|
4
|
+
version: 1.25.1
|
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:
|
12
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|