volcano-sdk 0.10.4 → 0.11.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: f075438ba4003381bb9545b1703c73bd73d13b563156bb53039da2f350fb8d03
4
- data.tar.gz: bd58bb6dd1ffa28c1dba5451c9bfa786c27805ee242917b19a14fc5767ab282d
3
+ metadata.gz: bf2a0caee1957ed46788be12d4d4e7afd2f0b890d5aa30a4da7ab5db3879dc38
4
+ data.tar.gz: 8bd82526f9a4c44cdba5fe7c3fb503f6de17a0b8a5feacf9b6855f3afc21a20d
5
5
  SHA512:
6
- metadata.gz: 0c8db1372246e30839c93bf406126799693969ef80e4f0c9c8e0b1d1956f01b5b1a7265d7261b695a5207b9dc1f3c3106b4da695a9ac123c01749b7509a7b00b
7
- data.tar.gz: 49143abcf1a3bf14933adb7aa00feee341a22ca75047ca1f03966c368d20dc6c313f802c4898fd7d33b390b221a5cff1567f1ff1dbeef82e57741dba46872f7e
6
+ metadata.gz: 2b3f3399f7af7742c6bbdd309b9634706b1490418ce109f5611c29b2d456a884329934ee9ef6336330bd18e1f3f3a925ac7c6d2b64ac3a2cc933f9037715f1af
7
+ data.tar.gz: 22594c1363baa348fd2d8b15cfcd24de6335c6d69c1a50d11139190ebb80d7b87897bb51bae0a388c8322fff64bf6585bf722f049c512eefaad6bcacc36d6e8b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Volcano
4
- VERSION = '0.10.4'
4
+ VERSION = '0.11.0'
5
5
  end
data/sig/errors.rbs ADDED
@@ -0,0 +1,36 @@
1
+ module Volcano
2
+ module Error
3
+ class VolcanoError < StandardError
4
+ attr_reader status: Integer?
5
+ attr_reader code: String?
6
+ attr_reader retry_after: Integer?
7
+
8
+ def initialize: (String? message, ?status: Integer?, ?code: String?, ?retry_after: Integer?) -> void
9
+ end
10
+
11
+ class AuthenticationError < VolcanoError
12
+ end
13
+
14
+ class ValidationError < VolcanoError
15
+ end
16
+
17
+ class NotFoundError < VolcanoError
18
+ end
19
+
20
+ class ConflictError < VolcanoError
21
+ end
22
+
23
+ class SessionChangedError < ConflictError
24
+ def initialize: (?String? message, ?status: Integer?, ?code: String?, ?retry_after: Integer?) -> void
25
+ end
26
+
27
+ class RateLimitedError < VolcanoError
28
+ end
29
+
30
+ class ServerError < VolcanoError
31
+ end
32
+
33
+ class TransportError < VolcanoError
34
+ end
35
+ end
36
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volcano-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kong
@@ -603,6 +603,7 @@ files:
603
603
  - lib/volcano/transport.rb
604
604
  - lib/volcano/user.rb
605
605
  - lib/volcano/version.rb
606
+ - sig/errors.rbs
606
607
  homepage: https://github.com/Kong/volcano-sdk-ruby
607
608
  licenses:
608
609
  - Apache-2.0