gapic-common 0.17.1 → 0.18.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 +6 -0
- data/lib/gapic/common/version.rb +1 -1
- data/lib/gapic/rest/error.rb +5 -0
- 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: 609c468f1e8a7e60f8b4ba911901dd99f8816cb367371dd5479d79dcd06bca82
|
4
|
+
data.tar.gz: 23a01faa58af17577e262852d434a6746b33f090247b05ea9dc8ce2ae07772bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fc2a7f8c0fdcc79434966a1e6431c29d957dd1a646cae5a8cd023da1320b7f5253b69f4edd915c98656b12e681aac66bf11713c2bb47f0482798601635ba948
|
7
|
+
data.tar.gz: 49a6c6aaa7fca24979d8707bc7a6ba2b8daed51951539d2235be32f932e73a02fa4cd8d7699f811b358bd216ca99ffbe63dab0469196b1815cdf37eb6ad4055c
|
data/CHANGELOG.md
CHANGED
data/lib/gapic/common/version.rb
CHANGED
data/lib/gapic/rest/error.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|