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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbd739e94d54e5202f02bb7bd6b66be1f3b015b9edd49d2d263ff872123a51f6
4
- data.tar.gz: ea2e344dd0da180246401d7702824bddd0ff88543bcf4a0678bfc11d449c7053
3
+ metadata.gz: 32043f65423a16e46517e97ba6bac2a1274c65c8e2de2a65aa2b943441d81450
4
+ data.tar.gz: 877e9fae1ca774a7a96b9cd22c65f3510b6ff69e572d76ba00774c82b584cb5e
5
5
  SHA512:
6
- metadata.gz: e420400993c27a81f156724792884a1792382e8fe2b8529d4393b054e8f3934f19ae7542bcfc2021fbe5745a356e7a22108eb3ea9cad08b4fd8d821f143cbfdd
7
- data.tar.gz: ba72d73d59cc6207b701db8aa5cf5c335a7b928e291a6a7f476e9383e1f79603ea8cefda933b25340eb79bdfa47888fd36611120531322751d92ad1a171cbd2a
6
+ metadata.gz: 403cc31cb8f15f14d247683926e64c2199b11ddcf40e8971515522ff0b4b0f231ebbeb666d467af9d92712c7ce456a1b6f546ca79c644ec4e2bbc2784e722875
7
+ data.tar.gz: 01e66c191a69e1de2e4badc0719c218a53c2a9ab1c9eddb2c9a1c8ae20bbae92e86fa15c922e48cb83e875cfe36fb7db407431935ae519cc34d840376577b4e6
@@ -1,5 +1,10 @@
1
1
  # Release History
2
2
 
3
+ ### 1.19.0 / 2019-07-11
4
+
5
+ * Add Bucket#location_type
6
+ * Remove :multi_regional and :regional from storage_class docs
7
+
3
8
  ### 1.18.2 / 2019-05-21
4
9
 
5
10
  * Declare explicit dependency on mime-types
@@ -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 `:multi_regional`, `:regional`, `:nearline`,
357
- # and `:coldline`, as well as the equivalent strings returned by
358
- # {Bucket#storage_class}. For more information, see [Storage
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 `:multi_regional`,
1123
- # `:regional`, `:nearline`, and `:coldline`, as well as the equivalent
1124
- # strings returned by {#storage_class}. For more information, see
1125
- # [Storage Classes](https://cloud.google.com/storage/docs/storage-classes)
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
- # * `:multi_regional`
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 `:multi_regional`, `:regional`, `:nearline`,
299
- # and `:coldline`, as well as the equivalent strings returned by
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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.18.2".freeze
19
+ VERSION = "1.19.0".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.18.2
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-05-21 00:00:00.000000000 Z
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