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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a6c22c5d1bf15537e1a8d0b351074e67b32a9f77d70ae4febd9fac791ac1601
4
- data.tar.gz: 3378d1c26298d5a6d985ca6b1c2f09f82e00f2303a6953b7b8ee0a077b3fa120
3
+ metadata.gz: ab43474a1a6a25a439d96a67b8664caff72861d3d121c927d5c11623ae570cab
4
+ data.tar.gz: f2e6378f9708fc079f2ce3539947e5587eb57263b2d96c8877c93d1b07b30abd
5
5
  SHA512:
6
- metadata.gz: 6a3409354e221650f8893943755fd72050cd5cfa88960df584d98b9b57ad23ac5342a72857dd13528670ad93931514468e7f8b4dd29f537d4645ff3ca511adf7
7
- data.tar.gz: 80cd7709621da535d303d2efd196ef4cddc97cd243d0a4f2400ffcd88cfc5ed113c21ca51ad9e928df1e81dd587b62859f220e90642dedfc761bc86251d1d3cd
6
+ metadata.gz: d40dfe073d42be6d3098a5c5e8779c4c52a7407b77f159e435e8c76ffe1cc59fc037591bcbc1b00ebaea9763d6085c7a9e639549eaacd89ea1444c1cd81a75e3
7
+ data.tar.gz: 16c8f515149d0794c40a474fb43d6c1859ff427b1ab5c75c6f4610959c49e3ed1a2c8d3a0060be58ded02f34867437fcaf81c1e2a8e00a8320af2fff470e5b34
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.25.1 / 2020-01-06
4
+
5
+ #### Documentation
6
+
7
+ * Add ARCHIVE storage class
8
+
3
9
  ### 1.25.0 / 2019-12-12
4
10
 
5
11
  #### Features
@@ -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 `COLDLINE`. `REGIONAL`,`MULTI_REGIONAL`,
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`, and `:coldline`, as
374
- # well as the equivalent strings returned by {Bucket#storage_class}.
375
- # `:multi_regional`, `:regional`, and `durable_reduced_availability`
376
- # are accepted as legacy storage classes. For more information, see
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 `:coldline`, as well as the equivalent strings returned by
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 `COLDLINE`. `REGIONAL`,`MULTI_REGIONAL`, 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 `COLDLINE`. `REGIONAL`,`MULTI_REGIONAL`, 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 `COLDLINE`. `REGIONAL`,
244
- # `MULTI_REGIONAL`, and `DURABLE_REDUCED_AVAILABILITY` are supported
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
- { "durable_reduced_availability" => "DURABLE_REDUCED_AVAILABILITY",
28
+ { "archive" => "ARCHIVE",
29
+ "coldline" => "COLDLINE",
29
30
  "dra" => "DURABLE_REDUCED_AVAILABILITY",
30
31
  "durable" => "DURABLE_REDUCED_AVAILABILITY",
31
- "nearline" => "NEARLINE",
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
@@ -431,6 +431,7 @@ module Google
431
431
  # * `:standard`
432
432
  # * `:nearline`
433
433
  # * `:coldline`
434
+ # * `:archive`
434
435
  #
435
436
  # as well as the equivalent strings returned by {File#storage_class} or
436
437
  # {Bucket#storage_class}. For more information, see [Storage
@@ -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`, and `:coldline`,
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.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.25.0".freeze
19
+ VERSION = "1.25.1".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.25.0
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: 2019-12-12 00:00:00.000000000 Z
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