radar-api 0.14.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +10 -3
  3. data/Rakefile +4 -0
  4. data/gen/exporter_pb.rb +17 -0
  5. data/gen/exporter_services_pb.rb +22 -0
  6. data/gen/portfolios_pb.rb +58 -0
  7. data/gen/portfolios_services_pb.rb +22 -0
  8. data/lib/radar-api.rb +1 -13
  9. data/radar-api.gemspec +2 -1
  10. metadata +24 -33
  11. data/gen/radar/api/analyzer_controller.rb +0 -605
  12. data/gen/radar/api/calendar_service.rb +0 -200
  13. data/gen/radar/api/common_constants.rb +0 -13
  14. data/gen/radar/api/common_types.rb +0 -223
  15. data/gen/radar/api/data_server_constants.rb +0 -13
  16. data/gen/radar/api/data_server_types.rb +0 -97
  17. data/gen/radar/api/fund_service.rb +0 -192
  18. data/gen/radar/api/healthz.rb +0 -84
  19. data/gen/radar/api/healthz_constants.rb +0 -13
  20. data/gen/radar/api/healthz_types.rb +0 -19
  21. data/gen/radar/api/index_service.rb +0 -200
  22. data/gen/radar/api/integration_status_service.rb +0 -74
  23. data/gen/radar/api/portfolio_analyzer_constants.rb +0 -13
  24. data/gen/radar/api/portfolio_analyzer_types.rb +0 -661
  25. data/gen/radar/api/portfolio_service.rb +0 -194
  26. data/gen/radar/api/security_service.rb +0 -370
  27. data/gen/radar/api/transaction_constants.rb +0 -13
  28. data/gen/radar/api/transaction_file_importer.rb +0 -94
  29. data/gen/radar/api/transaction_file_importer_constants.rb +0 -13
  30. data/gen/radar/api/transaction_file_importer_types.rb +0 -38
  31. data/gen/radar/api/transaction_importer.rb +0 -252
  32. data/gen/radar/api/transaction_importer_constants.rb +0 -13
  33. data/gen/radar/api/transaction_importer_types.rb +0 -60
  34. data/gen/radar/api/transaction_types.rb +0 -302
  35. data/gen/radar_constants.rb +0 -9
  36. data/gen/radar_types.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 503a7ed00d90724eeaefab64de1590d78daaa160
4
- data.tar.gz: 6cfc3d8c4207a6e80a2274e8a404f0a65e8fa7c2
2
+ SHA256:
3
+ metadata.gz: d7342497a97ad7c664f8477214ad23c348205fb9f8055bcefd1f0b992fb1e80e
4
+ data.tar.gz: 9c3142162a3c51a71975055f7daf8cd041fdfe03b5cf216efe1ae76888e77238
5
5
  SHA512:
6
- metadata.gz: beeadad7bf90c06aa46647109c2576b743e8ac40220bc352c3bdbbcf78cec64c78eaa5302a02cf7008c90661e67c118323fb564ddc21c51bdb076f516db49d20
7
- data.tar.gz: 5a20aaa332e9385b7468f24e3adf494e51e42fa7652c6663774655262906127fea6279aa1defc755b97fd0005475ee479fce83d4813ed5a713daf73cef0b43e6
6
+ metadata.gz: d4903a58def53812a66a54cecd24836202acd5b503031f1033120bf310d7e612a8194dcf026fa5de3cade14987b9f5ba00560f304f9c4bba3a6c7ec686d475af
7
+ data.tar.gz: 99f70eb65e8676b2ee76740f662f447cd639e1c358da989d3652797664fd2c9bb84b8b58dd7409dada8fa7274d81e985942508218e992fbb755685bdffa5562f
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radar-api (0.14.0)
5
- thrift (~> 0.9.0)
4
+ radar-api (2.0.0)
5
+ grpc (~> 1.27.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -15,6 +15,13 @@ GEM
15
15
  coderay (1.1.0)
16
16
  ffi (1.9.3)
17
17
  formatador (0.2.4)
18
+ google-protobuf (3.11.4-universal-darwin)
19
+ googleapis-common-protos-types (1.0.4)
20
+ google-protobuf (~> 3.0)
21
+ grpc (1.27.0-universal-darwin)
22
+ google-protobuf (~> 3.11)
23
+ googleapis-common-protos-types (~> 1.0)
24
+ grpc-tools (1.27.0)
18
25
  guard (2.6.0)
19
26
  formatador (>= 0.2.4)
20
27
  listen (~> 2.7)
@@ -42,7 +49,6 @@ GEM
42
49
  ffi (>= 0.5.0)
43
50
  slop (3.5.0)
44
51
  thor (0.19.1)
45
- thrift (0.9.3.0)
46
52
  timers (1.1.0)
47
53
 
48
54
  PLATFORMS
@@ -50,6 +56,7 @@ PLATFORMS
50
56
 
51
57
  DEPENDENCIES
52
58
  bundler (~> 1.5)
59
+ grpc-tools (~> 1.27.0)
53
60
  guard-rake (= 0.0.9)
54
61
  radar-api!
55
62
 
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ task :compile do
4
+ system 'grpc_tools_ruby_protoc --ruby_out=gen --grpc_out=gen -I .. ../*.proto'
5
+ end
@@ -0,0 +1,17 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: exporter.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/empty_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("exporter.proto", :syntax => :proto3) do
9
+ add_message "Radar.Chunk" do
10
+ optional :Content, :bytes, 1
11
+ end
12
+ end
13
+ end
14
+
15
+ module Radar
16
+ Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Chunk").msgclass
17
+ end
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: exporter.proto for package 'Radar'
3
+
4
+ require 'grpc'
5
+ require 'exporter_pb'
6
+
7
+ module Radar
8
+ module ReportGenerator
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'Radar.ReportGenerator'
16
+
17
+ rpc :generate, Google::Protobuf::Empty, stream(Chunk)
18
+ end
19
+
20
+ Stub = Service.rpc_stub_class
21
+ end
22
+ end
@@ -0,0 +1,58 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: portfolios.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("portfolios.proto", :syntax => :proto3) do
9
+ add_message "Radar.Event" do
10
+ optional :date, :message, 1, "google.protobuf.Timestamp"
11
+ oneof :type do
12
+ optional :cash_flow, :message, 20, "Radar.Event.CashFlow"
13
+ optional :portfolio, :message, 21, "Radar.Event.Portfolio"
14
+ end
15
+ end
16
+ add_message "Radar.Event.CashFlow" do
17
+ optional :type, :enum, 1, "Radar.Event.CashFlow.Type"
18
+ optional :value, :uint32, 2
19
+ optional :source, :string, 3
20
+ end
21
+ add_enum "Radar.Event.CashFlow.Type" do
22
+ value :DIVIDEND, 0
23
+ value :INTEREST_ON_OWN_CAPITAL, 1
24
+ end
25
+ add_message "Radar.Event.Portfolio" do
26
+ repeated :positions, :message, 1, "Radar.Event.Portfolio.Position"
27
+ repeated :provisions, :message, 2, "Radar.Event.Portfolio.Provision"
28
+ end
29
+ add_message "Radar.Event.Portfolio.Position" do
30
+ optional :id, :string, 1
31
+ optional :shares, :uint32, 2
32
+ optional :value, :double, 3
33
+ optional :avg_price, :double, 4
34
+ end
35
+ add_message "Radar.Event.Portfolio.Provision" do
36
+ optional :value, :uint32, 1
37
+ optional :source, :string, 2
38
+ end
39
+ add_message "Radar.RunReq" do
40
+ optional :user_id, :string, 1
41
+ optional :events, :enum, 2, "Radar.RunReq.Events"
42
+ end
43
+ add_enum "Radar.RunReq.Events" do
44
+ value :CASH_FLOW, 0
45
+ end
46
+ end
47
+ end
48
+
49
+ module Radar
50
+ Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event").msgclass
51
+ Event::CashFlow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.CashFlow").msgclass
52
+ Event::CashFlow::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.CashFlow.Type").enummodule
53
+ Event::Portfolio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.Portfolio").msgclass
54
+ Event::Portfolio::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.Portfolio.Position").msgclass
55
+ Event::Portfolio::Provision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.Event.Portfolio.Provision").msgclass
56
+ RunReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.RunReq").msgclass
57
+ RunReq::Events = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Radar.RunReq.Events").enummodule
58
+ end
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: portfolios.proto for package 'Radar'
3
+
4
+ require 'grpc'
5
+ require 'portfolios_pb'
6
+
7
+ module Radar
8
+ module Portfolios
9
+ class Service
10
+
11
+ include GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'Radar.Portfolios'
16
+
17
+ rpc :Run, RunReq, stream(Event)
18
+ end
19
+
20
+ Stub = Service.rpc_stub_class
21
+ end
22
+ end
data/lib/radar-api.rb CHANGED
@@ -1,13 +1 @@
1
- require 'radar/api/analyzer_controller'
2
- require 'radar/api/transaction_importer'
3
- require 'radar/api/transaction_file_importer'
4
- require 'radar/api/fund_service'
5
- require 'radar/api/security_service'
6
- require 'radar/api/fund_service'
7
- require 'radar/api/index_service'
8
- require 'radar/api/calendar_service'
9
- require 'radar/api/portfolio_service'
10
- require 'radar/api/integration_status_service'
11
- require 'radar/api/healthz'
12
-
13
- Radar::API = Radar::Api
1
+ Dir[File.join(File.dirname(__FILE__), '../gen/*.rb')].each {|file| require file }
data/radar-api.gemspec CHANGED
@@ -19,5 +19,6 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_development_dependency "bundler", "~> 1.5"
21
21
  spec.add_development_dependency "guard-rake", "0.0.9"
22
- spec.add_dependency "thrift", "~> 0.9.0"
22
+ spec.add_development_dependency "grpc-tools", "~> 1.27.0"
23
+ spec.add_dependency "grpc", "~> 1.27.0"
23
24
  end
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.14.0
4
+ version: 2.0.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: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,19 +39,33 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.0.9
41
41
  - !ruby/object:Gem::Dependency
42
- name: thrift
42
+ name: grpc-tools
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.9.0
47
+ version: 1.27.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.27.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: grpc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.27.0
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: 0.9.0
68
+ version: 1.27.0
55
69
  description: Radar API
56
70
  email:
57
71
  - andre@investtools.com.br
@@ -65,32 +79,10 @@ files:
65
79
  - LICENSE.txt
66
80
  - README.md
67
81
  - Rakefile
68
- - gen/radar/api/analyzer_controller.rb
69
- - gen/radar/api/calendar_service.rb
70
- - gen/radar/api/common_constants.rb
71
- - gen/radar/api/common_types.rb
72
- - gen/radar/api/data_server_constants.rb
73
- - gen/radar/api/data_server_types.rb
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
78
- - gen/radar/api/index_service.rb
79
- - gen/radar/api/integration_status_service.rb
80
- - gen/radar/api/portfolio_analyzer_constants.rb
81
- - gen/radar/api/portfolio_analyzer_types.rb
82
- - gen/radar/api/portfolio_service.rb
83
- - gen/radar/api/security_service.rb
84
- - gen/radar/api/transaction_constants.rb
85
- - gen/radar/api/transaction_file_importer.rb
86
- - gen/radar/api/transaction_file_importer_constants.rb
87
- - gen/radar/api/transaction_file_importer_types.rb
88
- - gen/radar/api/transaction_importer.rb
89
- - gen/radar/api/transaction_importer_constants.rb
90
- - gen/radar/api/transaction_importer_types.rb
91
- - gen/radar/api/transaction_types.rb
92
- - gen/radar_constants.rb
93
- - gen/radar_types.rb
82
+ - gen/exporter_pb.rb
83
+ - gen/exporter_services_pb.rb
84
+ - gen/portfolios_pb.rb
85
+ - gen/portfolios_services_pb.rb
94
86
  - lib/radar-api.rb
95
87
  - radar-api.gemspec
96
88
  homepage: http://www.investtools.com.br/
@@ -113,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
105
  - !ruby/object:Gem::Version
114
106
  version: '0'
115
107
  requirements: []
116
- rubyforge_project:
117
- rubygems_version: 2.6.14.4
108
+ rubygems_version: 3.0.6
118
109
  signing_key:
119
110
  specification_version: 4
120
111
  summary: Radar API
@@ -1,605 +0,0 @@
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/portfolio_analyzer_types'
9
-
10
- module Radar
11
- module Api
12
- module AnalyzerController
13
- class Client
14
- include ::Thrift::Client
15
-
16
- def analyzers()
17
- send_analyzers()
18
- return recv_analyzers()
19
- end
20
-
21
- def send_analyzers()
22
- send_message('analyzers', Analyzers_args)
23
- end
24
-
25
- def recv_analyzers()
26
- result = receive_message(Analyzers_result)
27
- return result.success unless result.success.nil?
28
- raise result.app_error unless result.app_error.nil?
29
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'analyzers failed: unknown result')
30
- end
31
-
32
- def on_each_day(sessionid, portfolio)
33
- send_on_each_day(sessionid, portfolio)
34
- end
35
-
36
- def send_on_each_day(sessionid, portfolio)
37
- send_oneway_message('on_each_day', On_each_day_args, :sessionid => sessionid, :portfolio => portfolio)
38
- end
39
- def on_each_month(sessionid, portfolio)
40
- send_on_each_month(sessionid, portfolio)
41
- end
42
-
43
- def send_on_each_month(sessionid, portfolio)
44
- send_oneway_message('on_each_month', On_each_month_args, :sessionid => sessionid, :portfolio => portfolio)
45
- end
46
- def on_finish(session_id, portfolio)
47
- send_on_finish(session_id, portfolio)
48
- end
49
-
50
- def send_on_finish(session_id, portfolio)
51
- send_oneway_message('on_finish', On_finish_args, :session_id => session_id, :portfolio => portfolio)
52
- end
53
- def on_cash_flow(session_id, cash_flow)
54
- send_on_cash_flow(session_id, cash_flow)
55
- end
56
-
57
- def send_on_cash_flow(session_id, cash_flow)
58
- send_oneway_message('on_cash_flow', On_cash_flow_args, :session_id => session_id, :cash_flow => cash_flow)
59
- end
60
- def create_session(session_id, analyzer_id)
61
- send_create_session(session_id, analyzer_id)
62
- return recv_create_session()
63
- end
64
-
65
- def send_create_session(session_id, analyzer_id)
66
- send_message('create_session', Create_session_args, :session_id => session_id, :analyzer_id => analyzer_id)
67
- end
68
-
69
- def recv_create_session()
70
- result = receive_message(Create_session_result)
71
- return result.success unless result.success.nil?
72
- raise result.app_error unless result.app_error.nil?
73
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_session failed: unknown result')
74
- end
75
-
76
- def dump(session_id)
77
- send_dump(session_id)
78
- return recv_dump()
79
- end
80
-
81
- def send_dump(session_id)
82
- send_message('dump', Dump_args, :session_id => session_id)
83
- end
84
-
85
- def recv_dump()
86
- result = receive_message(Dump_result)
87
- return result.success unless result.success.nil?
88
- raise result.app_error unless result.app_error.nil?
89
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'dump failed: unknown result')
90
- end
91
-
92
- def resume(session_id, data)
93
- send_resume(session_id, data)
94
- end
95
-
96
- def send_resume(session_id, data)
97
- send_oneway_message('resume', Resume_args, :session_id => session_id, :data => data)
98
- end
99
- def result(session_id)
100
- send_result(session_id)
101
- return recv_result()
102
- end
103
-
104
- def send_result(session_id)
105
- send_message('result', Result_args, :session_id => session_id)
106
- end
107
-
108
- def recv_result()
109
- result = receive_message(Result_result)
110
- return result.success unless result.success.nil?
111
- raise result.app_error unless result.app_error.nil?
112
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'result failed: unknown result')
113
- end
114
-
115
- def example_result(session_id)
116
- send_example_result(session_id)
117
- recv_example_result()
118
- end
119
-
120
- def send_example_result(session_id)
121
- send_message('example_result', Example_result_args, :session_id => session_id)
122
- end
123
-
124
- def recv_example_result()
125
- result = receive_message(Example_result_result)
126
- raise result.app_error unless result.app_error.nil?
127
- return
128
- end
129
-
130
- def destroy_session(session_id)
131
- send_destroy_session(session_id)
132
- end
133
-
134
- def send_destroy_session(session_id)
135
- send_oneway_message('destroy_session', Destroy_session_args, :session_id => session_id)
136
- end
137
- end
138
-
139
- class Processor
140
- include ::Thrift::Processor
141
-
142
- def process_analyzers(seqid, iprot, oprot)
143
- args = read_args(iprot, Analyzers_args)
144
- result = Analyzers_result.new()
145
- begin
146
- result.success = @handler.analyzers()
147
- rescue ::Radar::Api::ApplicationError => app_error
148
- result.app_error = app_error
149
- end
150
- write_result(result, oprot, 'analyzers', seqid)
151
- end
152
-
153
- def process_on_each_day(seqid, iprot, oprot)
154
- args = read_args(iprot, On_each_day_args)
155
- @handler.on_each_day(args.sessionid, args.portfolio)
156
- return
157
- end
158
-
159
- def process_on_each_month(seqid, iprot, oprot)
160
- args = read_args(iprot, On_each_month_args)
161
- @handler.on_each_month(args.sessionid, args.portfolio)
162
- return
163
- end
164
-
165
- def process_on_finish(seqid, iprot, oprot)
166
- args = read_args(iprot, On_finish_args)
167
- @handler.on_finish(args.session_id, args.portfolio)
168
- return
169
- end
170
-
171
- def process_on_cash_flow(seqid, iprot, oprot)
172
- args = read_args(iprot, On_cash_flow_args)
173
- @handler.on_cash_flow(args.session_id, args.cash_flow)
174
- return
175
- end
176
-
177
- def process_create_session(seqid, iprot, oprot)
178
- args = read_args(iprot, Create_session_args)
179
- result = Create_session_result.new()
180
- begin
181
- result.success = @handler.create_session(args.session_id, args.analyzer_id)
182
- rescue ::Radar::Api::ApplicationError => app_error
183
- result.app_error = app_error
184
- end
185
- write_result(result, oprot, 'create_session', seqid)
186
- end
187
-
188
- def process_dump(seqid, iprot, oprot)
189
- args = read_args(iprot, Dump_args)
190
- result = Dump_result.new()
191
- begin
192
- result.success = @handler.dump(args.session_id)
193
- rescue ::Radar::Api::ApplicationError => app_error
194
- result.app_error = app_error
195
- end
196
- write_result(result, oprot, 'dump', seqid)
197
- end
198
-
199
- def process_resume(seqid, iprot, oprot)
200
- args = read_args(iprot, Resume_args)
201
- @handler.resume(args.session_id, args.data)
202
- return
203
- end
204
-
205
- def process_result(seqid, iprot, oprot)
206
- args = read_args(iprot, Result_args)
207
- result = Result_result.new()
208
- begin
209
- result.success = @handler.result(args.session_id)
210
- rescue ::Radar::Api::ApplicationError => app_error
211
- result.app_error = app_error
212
- end
213
- write_result(result, oprot, 'result', seqid)
214
- end
215
-
216
- def process_example_result(seqid, iprot, oprot)
217
- args = read_args(iprot, Example_result_args)
218
- result = Example_result_result.new()
219
- begin
220
- @handler.example_result(args.session_id)
221
- rescue ::Radar::Api::ApplicationError => app_error
222
- result.app_error = app_error
223
- end
224
- write_result(result, oprot, 'example_result', seqid)
225
- end
226
-
227
- def process_destroy_session(seqid, iprot, oprot)
228
- args = read_args(iprot, Destroy_session_args)
229
- @handler.destroy_session(args.session_id)
230
- return
231
- end
232
-
233
- end
234
-
235
- # HELPER FUNCTIONS AND STRUCTURES
236
-
237
- class Analyzers_args
238
- include ::Thrift::Struct, ::Thrift::Struct_Union
239
-
240
- FIELDS = {
241
-
242
- }
243
-
244
- def struct_fields; FIELDS; end
245
-
246
- def validate
247
- end
248
-
249
- ::Thrift::Struct.generate_accessors self
250
- end
251
-
252
- class Analyzers_result
253
- include ::Thrift::Struct, ::Thrift::Struct_Union
254
- SUCCESS = 0
255
- APP_ERROR = 100
256
-
257
- FIELDS = {
258
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::Api::AnalyzerConfig}},
259
- APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
260
- }
261
-
262
- def struct_fields; FIELDS; end
263
-
264
- def validate
265
- end
266
-
267
- ::Thrift::Struct.generate_accessors self
268
- end
269
-
270
- class On_each_day_args
271
- include ::Thrift::Struct, ::Thrift::Struct_Union
272
- SESSIONID = 1
273
- PORTFOLIO = 2
274
-
275
- FIELDS = {
276
- SESSIONID => {:type => ::Thrift::Types::I16, :name => 'sessionid'},
277
- PORTFOLIO => {:type => ::Thrift::Types::STRUCT, :name => 'portfolio', :class => ::Radar::Api::Portfolio}
278
- }
279
-
280
- def struct_fields; FIELDS; end
281
-
282
- def validate
283
- end
284
-
285
- ::Thrift::Struct.generate_accessors self
286
- end
287
-
288
- class On_each_day_result
289
- include ::Thrift::Struct, ::Thrift::Struct_Union
290
-
291
- FIELDS = {
292
-
293
- }
294
-
295
- def struct_fields; FIELDS; end
296
-
297
- def validate
298
- end
299
-
300
- ::Thrift::Struct.generate_accessors self
301
- end
302
-
303
- class On_each_month_args
304
- include ::Thrift::Struct, ::Thrift::Struct_Union
305
- SESSIONID = 1
306
- PORTFOLIO = 2
307
-
308
- FIELDS = {
309
- SESSIONID => {:type => ::Thrift::Types::I16, :name => 'sessionid'},
310
- PORTFOLIO => {:type => ::Thrift::Types::STRUCT, :name => 'portfolio', :class => ::Radar::Api::Portfolio}
311
- }
312
-
313
- def struct_fields; FIELDS; end
314
-
315
- def validate
316
- end
317
-
318
- ::Thrift::Struct.generate_accessors self
319
- end
320
-
321
- class On_each_month_result
322
- include ::Thrift::Struct, ::Thrift::Struct_Union
323
-
324
- FIELDS = {
325
-
326
- }
327
-
328
- def struct_fields; FIELDS; end
329
-
330
- def validate
331
- end
332
-
333
- ::Thrift::Struct.generate_accessors self
334
- end
335
-
336
- class On_finish_args
337
- include ::Thrift::Struct, ::Thrift::Struct_Union
338
- SESSION_ID = 1
339
- PORTFOLIO = 2
340
-
341
- FIELDS = {
342
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
343
- PORTFOLIO => {:type => ::Thrift::Types::STRUCT, :name => 'portfolio', :class => ::Radar::Api::Portfolio}
344
- }
345
-
346
- def struct_fields; FIELDS; end
347
-
348
- def validate
349
- end
350
-
351
- ::Thrift::Struct.generate_accessors self
352
- end
353
-
354
- class On_finish_result
355
- include ::Thrift::Struct, ::Thrift::Struct_Union
356
-
357
- FIELDS = {
358
-
359
- }
360
-
361
- def struct_fields; FIELDS; end
362
-
363
- def validate
364
- end
365
-
366
- ::Thrift::Struct.generate_accessors self
367
- end
368
-
369
- class On_cash_flow_args
370
- include ::Thrift::Struct, ::Thrift::Struct_Union
371
- SESSION_ID = 1
372
- CASH_FLOW = 2
373
-
374
- FIELDS = {
375
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
376
- CASH_FLOW => {:type => ::Thrift::Types::STRUCT, :name => 'cash_flow', :class => ::Radar::Api::CashFlow}
377
- }
378
-
379
- def struct_fields; FIELDS; end
380
-
381
- def validate
382
- end
383
-
384
- ::Thrift::Struct.generate_accessors self
385
- end
386
-
387
- class On_cash_flow_result
388
- include ::Thrift::Struct, ::Thrift::Struct_Union
389
-
390
- FIELDS = {
391
-
392
- }
393
-
394
- def struct_fields; FIELDS; end
395
-
396
- def validate
397
- end
398
-
399
- ::Thrift::Struct.generate_accessors self
400
- end
401
-
402
- class Create_session_args
403
- include ::Thrift::Struct, ::Thrift::Struct_Union
404
- SESSION_ID = 1
405
- ANALYZER_ID = 2
406
-
407
- FIELDS = {
408
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
409
- ANALYZER_ID => {:type => ::Thrift::Types::STRING, :name => 'analyzer_id'}
410
- }
411
-
412
- def struct_fields; FIELDS; end
413
-
414
- def validate
415
- end
416
-
417
- ::Thrift::Struct.generate_accessors self
418
- end
419
-
420
- class Create_session_result
421
- include ::Thrift::Struct, ::Thrift::Struct_Union
422
- SUCCESS = 0
423
- APP_ERROR = 100
424
-
425
- FIELDS = {
426
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Radar::Api::AnalyzerConfig},
427
- APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
428
- }
429
-
430
- def struct_fields; FIELDS; end
431
-
432
- def validate
433
- end
434
-
435
- ::Thrift::Struct.generate_accessors self
436
- end
437
-
438
- class Dump_args
439
- include ::Thrift::Struct, ::Thrift::Struct_Union
440
- SESSION_ID = 1
441
-
442
- FIELDS = {
443
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
444
- }
445
-
446
- def struct_fields; FIELDS; end
447
-
448
- def validate
449
- end
450
-
451
- ::Thrift::Struct.generate_accessors self
452
- end
453
-
454
- class Dump_result
455
- include ::Thrift::Struct, ::Thrift::Struct_Union
456
- SUCCESS = 0
457
- APP_ERROR = 100
458
-
459
- FIELDS = {
460
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true},
461
- APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
462
- }
463
-
464
- def struct_fields; FIELDS; end
465
-
466
- def validate
467
- end
468
-
469
- ::Thrift::Struct.generate_accessors self
470
- end
471
-
472
- class Resume_args
473
- include ::Thrift::Struct, ::Thrift::Struct_Union
474
- SESSION_ID = 1
475
- DATA = 2
476
-
477
- FIELDS = {
478
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'},
479
- DATA => {:type => ::Thrift::Types::STRING, :name => 'data', :binary => true}
480
- }
481
-
482
- def struct_fields; FIELDS; end
483
-
484
- def validate
485
- end
486
-
487
- ::Thrift::Struct.generate_accessors self
488
- end
489
-
490
- class Resume_result
491
- include ::Thrift::Struct, ::Thrift::Struct_Union
492
-
493
- FIELDS = {
494
-
495
- }
496
-
497
- def struct_fields; FIELDS; end
498
-
499
- def validate
500
- end
501
-
502
- ::Thrift::Struct.generate_accessors self
503
- end
504
-
505
- class Result_args
506
- include ::Thrift::Struct, ::Thrift::Struct_Union
507
- SESSION_ID = 1
508
-
509
- FIELDS = {
510
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
511
- }
512
-
513
- def struct_fields; FIELDS; end
514
-
515
- def validate
516
- end
517
-
518
- ::Thrift::Struct.generate_accessors self
519
- end
520
-
521
- class Result_result
522
- include ::Thrift::Struct, ::Thrift::Struct_Union
523
- SUCCESS = 0
524
- APP_ERROR = 100
525
-
526
- FIELDS = {
527
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Radar::Api::Result},
528
- APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
529
- }
530
-
531
- def struct_fields; FIELDS; end
532
-
533
- def validate
534
- end
535
-
536
- ::Thrift::Struct.generate_accessors self
537
- end
538
-
539
- class Example_result_args
540
- include ::Thrift::Struct, ::Thrift::Struct_Union
541
- SESSION_ID = 1
542
-
543
- FIELDS = {
544
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
545
- }
546
-
547
- def struct_fields; FIELDS; end
548
-
549
- def validate
550
- end
551
-
552
- ::Thrift::Struct.generate_accessors self
553
- end
554
-
555
- class Example_result_result
556
- include ::Thrift::Struct, ::Thrift::Struct_Union
557
- APP_ERROR = 100
558
-
559
- FIELDS = {
560
- APP_ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'app_error', :class => ::Radar::Api::ApplicationError}
561
- }
562
-
563
- def struct_fields; FIELDS; end
564
-
565
- def validate
566
- end
567
-
568
- ::Thrift::Struct.generate_accessors self
569
- end
570
-
571
- class Destroy_session_args
572
- include ::Thrift::Struct, ::Thrift::Struct_Union
573
- SESSION_ID = 1
574
-
575
- FIELDS = {
576
- SESSION_ID => {:type => ::Thrift::Types::I16, :name => 'session_id'}
577
- }
578
-
579
- def struct_fields; FIELDS; end
580
-
581
- def validate
582
- end
583
-
584
- ::Thrift::Struct.generate_accessors self
585
- end
586
-
587
- class Destroy_session_result
588
- include ::Thrift::Struct, ::Thrift::Struct_Union
589
-
590
- FIELDS = {
591
-
592
- }
593
-
594
- def struct_fields; FIELDS; end
595
-
596
- def validate
597
- end
598
-
599
- ::Thrift::Struct.generate_accessors self
600
- end
601
-
602
- end
603
-
604
- end
605
- end