radar-api 0.9.0 → 0.10.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
- SHA1:
3
- metadata.gz: 7238fbc992951469e819ec774d4a3ac0e05374d7
4
- data.tar.gz: 21ff24ec13bd8fe099921db93f9dcc0e72a73396
2
+ SHA256:
3
+ metadata.gz: c46440edbefb015c555f89ce94dc47bc935e39f17bb970c8a4d100f45308371d
4
+ data.tar.gz: 43c82a1c5486631a7ac9f396512f82d156e1b118b01d9ba1fcfc63453ebfc9d7
5
5
  SHA512:
6
- metadata.gz: 9d481fc71f583bc4cde75e5ec8c380e6e18e7c5e3ec90240c1525b5b8f05cb71c292fc886a6d7e9a0158c282226514b059706ea5ec51758df73fcbeba355af90
7
- data.tar.gz: 17d818db55fd10b095cdc2e516b4a9d282c2beb80f8eaa1ebc7c8f7393968870daaeadccd6ee0b7a257787d5b31a462a052dadb3823e53b8a47b68dd0d998c3a
6
+ metadata.gz: aa23f07ea1a461cba09833f7a9bc33db90849047a984abd810bc17c96330d2e39031c99f39a377ababb02b34812823fb7398e159a206675bbbc862fc6ac4cacf
7
+ data.tar.gz: bbd8e9d0fd0b86a866ad92676dc4fc9352cb9e66a7fd901ac85d0f9552a8fdbb64b13b72cf2706544547847fc683bb1c41fc2602f8352a9f4d728ee84934493a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.9.0)
4
+ radar-api (0.10.0)
5
5
  thrift (~> 0.9.0)
6
6
 
7
7
  GEM
@@ -54,4 +54,4 @@ DEPENDENCIES
54
54
  radar-api!
55
55
 
56
56
  BUNDLED WITH
57
- 1.16.2
57
+ 1.17.3
@@ -0,0 +1,84 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.12.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'radar/api/healthz_types'
9
+
10
+ module Radar
11
+ module Api
12
+ module Healthz
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def status()
17
+ send_status()
18
+ return recv_status()
19
+ end
20
+
21
+ def send_status()
22
+ send_message('status', Status_args)
23
+ end
24
+
25
+ def recv_status()
26
+ result = receive_message(Status_result)
27
+ return result.success unless result.success.nil?
28
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'status failed: unknown result')
29
+ end
30
+
31
+ end
32
+
33
+ class Processor
34
+ include ::Thrift::Processor
35
+
36
+ def process_status(seqid, iprot, oprot)
37
+ args = read_args(iprot, Status_args)
38
+ result = Status_result.new()
39
+ result.success = @handler.status()
40
+ write_result(result, oprot, 'status', seqid)
41
+ end
42
+
43
+ end
44
+
45
+ # HELPER FUNCTIONS AND STRUCTURES
46
+
47
+ class Status_args
48
+ include ::Thrift::Struct, ::Thrift::Struct_Union
49
+
50
+ FIELDS = {
51
+
52
+ }
53
+
54
+ def struct_fields; FIELDS; end
55
+
56
+ def validate
57
+ end
58
+
59
+ ::Thrift::Struct.generate_accessors self
60
+ end
61
+
62
+ class Status_result
63
+ include ::Thrift::Struct, ::Thrift::Struct_Union
64
+ SUCCESS = 0
65
+
66
+ FIELDS = {
67
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ::Radar::Api::HealthStatus}
68
+ }
69
+
70
+ def struct_fields; FIELDS; end
71
+
72
+ def validate
73
+ unless @success.nil? || ::Radar::Api::HealthStatus::VALID_VALUES.include?(@success)
74
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!')
75
+ end
76
+ end
77
+
78
+ ::Thrift::Struct.generate_accessors self
79
+ end
80
+
81
+ end
82
+
83
+ end
84
+ end
@@ -0,0 +1,13 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.12.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'radar/api/healthz_types'
9
+
10
+ module Radar
11
+ module Api
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.12.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Radar
10
+ module Api
11
+ module HealthStatus
12
+ HEALTHY = 0
13
+ UNHEALTHY = 1
14
+ VALUE_MAP = {0 => "HEALTHY", 1 => "UNHEALTHY"}
15
+ VALID_VALUES = Set.new([HEALTHY, UNHEALTHY]).freeze
16
+ end
17
+
18
+ end
19
+ end
@@ -9,5 +9,6 @@ require 'radar/api/transaction_importer_types'
9
9
  require 'radar/api/transaction_file_importer_types'
10
10
  require 'radar/api/portfolio_analyzer_types'
11
11
  require 'radar/api/data_server_types'
12
+ require 'radar/api/healthz_types'
12
13
 
13
14
 
@@ -8,5 +8,6 @@ require 'radar/api/index_service'
8
8
  require 'radar/api/calendar_service'
9
9
  require 'radar/api/portfolio_service'
10
10
  require 'radar/api/integration_status_service'
11
+ require 'radar/api/healthz'
11
12
 
12
13
  Radar::API = Radar::Api
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-13 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,6 +72,9 @@ files:
72
72
  - gen/radar/api/data_server_constants.rb
73
73
  - gen/radar/api/data_server_types.rb
74
74
  - gen/radar/api/fund_service.rb
75
+ - gen/radar/api/healthz.rb
76
+ - gen/radar/api/healthz_constants.rb
77
+ - gen/radar/api/healthz_types.rb
75
78
  - gen/radar/api/index_service.rb
76
79
  - gen/radar/api/integration_status_service.rb
77
80
  - gen/radar/api/portfolio_analyzer_constants.rb
@@ -110,8 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
113
  - !ruby/object:Gem::Version
111
114
  version: '0'
112
115
  requirements: []
113
- rubyforge_project:
114
- rubygems_version: 2.6.14
116
+ rubygems_version: 3.0.4
115
117
  signing_key:
116
118
  specification_version: 4
117
119
  summary: Radar API