gapic-common 0.17.1 → 0.18.0

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: 508b67fe556c18e32cab88da23a0097e425df549e288b72fec7d4a891b6c06f5
4
- data.tar.gz: 29bbc436a310b93f2f043502344783835ba25ed91d5ac8523c190da0ecd019b4
3
+ metadata.gz: 609c468f1e8a7e60f8b4ba911901dd99f8816cb367371dd5479d79dcd06bca82
4
+ data.tar.gz: 23a01faa58af17577e262852d434a6746b33f090247b05ea9dc8ce2ae07772bb
5
5
  SHA512:
6
- metadata.gz: 34e4be1fc16714c9afc6bd0d9ca832ae7409521d0ec9f10c41860e817c8ee28599d6853a0c84a780dc3e3fc19d33882068d613f2691d6ee99392b68f2c5dbe04
7
- data.tar.gz: 6f130dd5c05535efc27e67f51a6b593082519a04601d69111db010d097e7c150501e9cee2845d4937c175fce79451f413b5e125e9f74d01f66634d74d6b9604a
6
+ metadata.gz: 7fc2a7f8c0fdcc79434966a1e6431c29d957dd1a646cae5a8cd023da1320b7f5253b69f4edd915c98656b12e681aac66bf11713c2bb47f0482798601635ba948
7
+ data.tar.gz: 49a6c6aaa7fca24979d8707bc7a6ba2b8daed51951539d2235be32f932e73a02fa4cd8d7699f811b358bd216ca99ffbe63dab0469196b1815cdf37eb6ad4055c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.18.0 (2023-02-27)
4
+
5
+ #### Features
6
+
7
+ * add alias for details field in Rest Error ([#928](https://github.com/googleapis/gapic-generator-ruby/issues/928))
8
+
3
9
  ### 0.17.1 (2023-02-09)
4
10
 
5
11
  #### Bug Fixes
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Gapic
16
16
  module Common
17
- VERSION = "0.17.1".freeze
17
+ VERSION = "0.18.0".freeze
18
18
  end
19
19
  end
@@ -14,6 +14,9 @@
14
14
 
15
15
  require "json"
16
16
  require "gapic/common/error"
17
+ require "google/protobuf/well_known_types"
18
+ # Not technically required but GRPC counterpart loads it and so should we for test parity
19
+ require "google/rpc/error_details_pb"
17
20
 
18
21
  module Gapic
19
22
  module Rest
@@ -25,6 +28,8 @@ module Gapic
25
28
  attr_reader :status
26
29
  # @return [Object, nil] the details as parsed from the response body
27
30
  attr_reader :details
31
+ # The Cloud error wrapper expect to see a `status_details` property
32
+ alias status_details details
28
33
  # @return [Object, nil] the headers of the REST error
29
34
  attr_reader :headers
30
35
  # The Cloud error wrapper expect to see a `header` property
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google API Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-09 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday