bosrvclient 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eedce98fcce6e2bd1dd158f0e71df9958e82ac0f
4
+ data.tar.gz: 961dfa20b4c530199758f63bcd770153b659ac6a
5
+ SHA512:
6
+ metadata.gz: f14967dddba67f43eb98c6b26686a6d7fb402fc66f403c78b72f0f593df9dc88ea8663e169782cdd7945c1bff54b591417715195a61fa4d79db3757ebed7f5ed
7
+ data.tar.gz: 6e7f99c3681c2d63cffc2968d4994814f04d4921a155d3155d2e543102c3911d71c6da8cfbb72ebc81bc3c9a9fb3caeb28bf645faf7a5591ee1998bba1bf5817
@@ -0,0 +1,6 @@
1
+ require "bosrvclient/exception_types"
2
+ require "bosrvclient/exception_constants"
3
+ require "bosrvclient/big_object_service_types"
4
+ require "bosrvclient/big_object_service_constants"
5
+ require "bosrvclient/big_object_service"
6
+ require "bosrvclient/connect"
@@ -0,0 +1,1178 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'big_object_service_types'
9
+
10
+ module Bosrv
11
+ module BigObjectService
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def ping()
16
+ send_ping()
17
+ return recv_ping()
18
+ end
19
+
20
+ def send_ping()
21
+ send_message('ping', Ping_args)
22
+ end
23
+
24
+ def recv_ping()
25
+ result = receive_message(Ping_result)
26
+ return result.success unless result.success.nil?
27
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ping failed: unknown result')
28
+ end
29
+
30
+ def sql_begin(token)
31
+ send_sql_begin(token)
32
+ return recv_sql_begin()
33
+ end
34
+
35
+ def send_sql_begin(token)
36
+ send_message('sql_begin', Sql_begin_args, :token => token)
37
+ end
38
+
39
+ def recv_sql_begin()
40
+ result = receive_message(Sql_begin_result)
41
+ return result.success unless result.success.nil?
42
+ raise result.err unless result.err.nil?
43
+ raise result.arr unless result.arr.nil?
44
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_begin failed: unknown result')
45
+ end
46
+
47
+ def sql_commit(token, resource)
48
+ send_sql_commit(token, resource)
49
+ return recv_sql_commit()
50
+ end
51
+
52
+ def send_sql_commit(token, resource)
53
+ send_message('sql_commit', Sql_commit_args, :token => token, :resource => resource)
54
+ end
55
+
56
+ def recv_sql_commit()
57
+ result = receive_message(Sql_commit_result)
58
+ return result.success unless result.success.nil?
59
+ raise result.err unless result.err.nil?
60
+ raise result.sqlerr unless result.sqlerr.nil?
61
+ raise result.arr unless result.arr.nil?
62
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_commit failed: unknown result')
63
+ end
64
+
65
+ def sql_execute_many(token, resource, sql_stmt)
66
+ send_sql_execute_many(token, resource, sql_stmt)
67
+ return recv_sql_execute_many()
68
+ end
69
+
70
+ def send_sql_execute_many(token, resource, sql_stmt)
71
+ send_message('sql_execute_many', Sql_execute_many_args, :token => token, :resource => resource, :sql_stmt => sql_stmt)
72
+ end
73
+
74
+ def recv_sql_execute_many()
75
+ result = receive_message(Sql_execute_many_result)
76
+ return result.success unless result.success.nil?
77
+ raise result.err unless result.err.nil?
78
+ raise result.sqlerr unless result.sqlerr.nil?
79
+ raise result.arr unless result.arr.nil?
80
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_execute_many failed: unknown result')
81
+ end
82
+
83
+ def sql_execute(token, sql_stmt, autocommit)
84
+ send_sql_execute(token, sql_stmt, autocommit)
85
+ return recv_sql_execute()
86
+ end
87
+
88
+ def send_sql_execute(token, sql_stmt, autocommit)
89
+ send_message('sql_execute', Sql_execute_args, :token => token, :sql_stmt => sql_stmt, :autocommit => autocommit)
90
+ end
91
+
92
+ def recv_sql_execute()
93
+ result = receive_message(Sql_execute_result)
94
+ return result.success unless result.success.nil?
95
+ raise result.err unless result.err.nil?
96
+ raise result.sqlerr unless result.sqlerr.nil?
97
+ raise result.arr unless result.arr.nil?
98
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_execute failed: unknown result')
99
+ end
100
+
101
+ def aux_execute(token, stmt, autocommit)
102
+ send_aux_execute(token, stmt, autocommit)
103
+ return recv_aux_execute()
104
+ end
105
+
106
+ def send_aux_execute(token, stmt, autocommit)
107
+ send_message('aux_execute', Aux_execute_args, :token => token, :stmt => stmt, :autocommit => autocommit)
108
+ end
109
+
110
+ def recv_aux_execute()
111
+ result = receive_message(Aux_execute_result)
112
+ return result.success unless result.success.nil?
113
+ raise result.err unless result.err.nil?
114
+ raise result.arr unless result.arr.nil?
115
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'aux_execute failed: unknown result')
116
+ end
117
+
118
+ def assoc_execute(token, stmt, autocommit)
119
+ send_assoc_execute(token, stmt, autocommit)
120
+ return recv_assoc_execute()
121
+ end
122
+
123
+ def send_assoc_execute(token, stmt, autocommit)
124
+ send_message('assoc_execute', Assoc_execute_args, :token => token, :stmt => stmt, :autocommit => autocommit)
125
+ end
126
+
127
+ def recv_assoc_execute()
128
+ result = receive_message(Assoc_execute_result)
129
+ return result.success unless result.success.nil?
130
+ raise result.err unless result.err.nil?
131
+ raise result.arr unless result.arr.nil?
132
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'assoc_execute failed: unknown result')
133
+ end
134
+
135
+ def cursor_fetch(token, resource, rng)
136
+ send_cursor_fetch(token, resource, rng)
137
+ return recv_cursor_fetch()
138
+ end
139
+
140
+ def send_cursor_fetch(token, resource, rng)
141
+ send_message('cursor_fetch', Cursor_fetch_args, :token => token, :resource => resource, :rng => rng)
142
+ end
143
+
144
+ def recv_cursor_fetch()
145
+ result = receive_message(Cursor_fetch_result)
146
+ return result.success unless result.success.nil?
147
+ raise result.err unless result.err.nil?
148
+ raise result.arr unless result.arr.nil?
149
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'cursor_fetch failed: unknown result')
150
+ end
151
+
152
+ def cursor_dup(token, resource, count)
153
+ send_cursor_dup(token, resource, count)
154
+ return recv_cursor_dup()
155
+ end
156
+
157
+ def send_cursor_dup(token, resource, count)
158
+ send_message('cursor_dup', Cursor_dup_args, :token => token, :resource => resource, :count => count)
159
+ end
160
+
161
+ def recv_cursor_dup()
162
+ result = receive_message(Cursor_dup_result)
163
+ return result.success unless result.success.nil?
164
+ raise result.err unless result.err.nil?
165
+ raise result.arr unless result.arr.nil?
166
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'cursor_dup failed: unknown result')
167
+ end
168
+
169
+ def cursor_close(token, resource)
170
+ send_cursor_close(token, resource)
171
+ end
172
+
173
+ def send_cursor_close(token, resource)
174
+ send_message('cursor_close', Cursor_close_args, :token => token, :resource => resource)
175
+ end
176
+ def get_table_list(token, path)
177
+ send_get_table_list(token, path)
178
+ return recv_get_table_list()
179
+ end
180
+
181
+ def send_get_table_list(token, path)
182
+ send_message('get_table_list', Get_table_list_args, :token => token, :path => path)
183
+ end
184
+
185
+ def recv_get_table_list()
186
+ result = receive_message(Get_table_list_result)
187
+ return result.success unless result.success.nil?
188
+ raise result.err unless result.err.nil?
189
+ raise result.arr unless result.arr.nil?
190
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_list failed: unknown result')
191
+ end
192
+
193
+ def get_table_schema(token, table_name, path)
194
+ send_get_table_schema(token, table_name, path)
195
+ return recv_get_table_schema()
196
+ end
197
+
198
+ def send_get_table_schema(token, table_name, path)
199
+ send_message('get_table_schema', Get_table_schema_args, :token => token, :table_name => table_name, :path => path)
200
+ end
201
+
202
+ def recv_get_table_schema()
203
+ result = receive_message(Get_table_schema_result)
204
+ return result.success unless result.success.nil?
205
+ raise result.err unless result.err.nil?
206
+ raise result.arr unless result.arr.nil?
207
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_schema failed: unknown result')
208
+ end
209
+
210
+ def get_table_relation(token, table_name, path)
211
+ send_get_table_relation(token, table_name, path)
212
+ return recv_get_table_relation()
213
+ end
214
+
215
+ def send_get_table_relation(token, table_name, path)
216
+ send_message('get_table_relation', Get_table_relation_args, :token => token, :table_name => table_name, :path => path)
217
+ end
218
+
219
+ def recv_get_table_relation()
220
+ result = receive_message(Get_table_relation_result)
221
+ return result.success unless result.success.nil?
222
+ raise result.err unless result.err.nil?
223
+ raise result.arr unless result.arr.nil?
224
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_relation failed: unknown result')
225
+ end
226
+
227
+ def get_qbo_list(token, path)
228
+ send_get_qbo_list(token, path)
229
+ return recv_get_qbo_list()
230
+ end
231
+
232
+ def send_get_qbo_list(token, path)
233
+ send_message('get_qbo_list', Get_qbo_list_args, :token => token, :path => path)
234
+ end
235
+
236
+ def recv_get_qbo_list()
237
+ result = receive_message(Get_qbo_list_result)
238
+ return result.success unless result.success.nil?
239
+ raise result.err unless result.err.nil?
240
+ raise result.arr unless result.arr.nil?
241
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_qbo_list failed: unknown result')
242
+ end
243
+
244
+ def get_qbo_info(token, table_name, path)
245
+ send_get_qbo_info(token, table_name, path)
246
+ return recv_get_qbo_info()
247
+ end
248
+
249
+ def send_get_qbo_info(token, table_name, path)
250
+ send_message('get_qbo_info', Get_qbo_info_args, :token => token, :table_name => table_name, :path => path)
251
+ end
252
+
253
+ def recv_get_qbo_info()
254
+ result = receive_message(Get_qbo_info_result)
255
+ return result.success unless result.success.nil?
256
+ raise result.err unless result.err.nil?
257
+ raise result.arr unless result.arr.nil?
258
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_qbo_info failed: unknown result')
259
+ end
260
+
261
+ def get_mbt_list(token, path)
262
+ send_get_mbt_list(token, path)
263
+ return recv_get_mbt_list()
264
+ end
265
+
266
+ def send_get_mbt_list(token, path)
267
+ send_message('get_mbt_list', Get_mbt_list_args, :token => token, :path => path)
268
+ end
269
+
270
+ def recv_get_mbt_list()
271
+ result = receive_message(Get_mbt_list_result)
272
+ return result.success unless result.success.nil?
273
+ raise result.err unless result.err.nil?
274
+ raise result.arr unless result.arr.nil?
275
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_mbt_list failed: unknown result')
276
+ end
277
+
278
+ def get_mbt_info(token, table_name, path)
279
+ send_get_mbt_info(token, table_name, path)
280
+ return recv_get_mbt_info()
281
+ end
282
+
283
+ def send_get_mbt_info(token, table_name, path)
284
+ send_message('get_mbt_info', Get_mbt_info_args, :token => token, :table_name => table_name, :path => path)
285
+ end
286
+
287
+ def recv_get_mbt_info()
288
+ result = receive_message(Get_mbt_info_result)
289
+ return result.success unless result.success.nil?
290
+ raise result.err unless result.err.nil?
291
+ raise result.arr unless result.arr.nil?
292
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_mbt_info failed: unknown result')
293
+ end
294
+
295
+ end
296
+
297
+ class Processor
298
+ include ::Thrift::Processor
299
+
300
+ def process_ping(seqid, iprot, oprot)
301
+ args = read_args(iprot, Ping_args)
302
+ result = Ping_result.new()
303
+ result.success = @handler.ping()
304
+ write_result(result, oprot, 'ping', seqid)
305
+ end
306
+
307
+ def process_sql_begin(seqid, iprot, oprot)
308
+ args = read_args(iprot, Sql_begin_args)
309
+ result = Sql_begin_result.new()
310
+ begin
311
+ result.success = @handler.sql_begin(args.token)
312
+ rescue ::Exc::ServiceError => err
313
+ result.err = err
314
+ rescue ::Exc::AuthError => arr
315
+ result.arr = arr
316
+ end
317
+ write_result(result, oprot, 'sql_begin', seqid)
318
+ end
319
+
320
+ def process_sql_commit(seqid, iprot, oprot)
321
+ args = read_args(iprot, Sql_commit_args)
322
+ result = Sql_commit_result.new()
323
+ begin
324
+ result.success = @handler.sql_commit(args.token, args.resource)
325
+ rescue ::Exc::ServiceError => err
326
+ result.err = err
327
+ rescue ::Exc::SQLError => sqlerr
328
+ result.sqlerr = sqlerr
329
+ rescue ::Exc::AuthError => arr
330
+ result.arr = arr
331
+ end
332
+ write_result(result, oprot, 'sql_commit', seqid)
333
+ end
334
+
335
+ def process_sql_execute_many(seqid, iprot, oprot)
336
+ args = read_args(iprot, Sql_execute_many_args)
337
+ result = Sql_execute_many_result.new()
338
+ begin
339
+ result.success = @handler.sql_execute_many(args.token, args.resource, args.sql_stmt)
340
+ rescue ::Exc::ServiceError => err
341
+ result.err = err
342
+ rescue ::Exc::SQLError => sqlerr
343
+ result.sqlerr = sqlerr
344
+ rescue ::Exc::AuthError => arr
345
+ result.arr = arr
346
+ end
347
+ write_result(result, oprot, 'sql_execute_many', seqid)
348
+ end
349
+
350
+ def process_sql_execute(seqid, iprot, oprot)
351
+ args = read_args(iprot, Sql_execute_args)
352
+ result = Sql_execute_result.new()
353
+ begin
354
+ result.success = @handler.sql_execute(args.token, args.sql_stmt, args.autocommit)
355
+ rescue ::Exc::ServiceError => err
356
+ result.err = err
357
+ rescue ::Exc::SQLError => sqlerr
358
+ result.sqlerr = sqlerr
359
+ rescue ::Exc::AuthError => arr
360
+ result.arr = arr
361
+ end
362
+ write_result(result, oprot, 'sql_execute', seqid)
363
+ end
364
+
365
+ def process_aux_execute(seqid, iprot, oprot)
366
+ args = read_args(iprot, Aux_execute_args)
367
+ result = Aux_execute_result.new()
368
+ begin
369
+ result.success = @handler.aux_execute(args.token, args.stmt, args.autocommit)
370
+ rescue ::Exc::ServiceError => err
371
+ result.err = err
372
+ rescue ::Exc::AuthError => arr
373
+ result.arr = arr
374
+ end
375
+ write_result(result, oprot, 'aux_execute', seqid)
376
+ end
377
+
378
+ def process_assoc_execute(seqid, iprot, oprot)
379
+ args = read_args(iprot, Assoc_execute_args)
380
+ result = Assoc_execute_result.new()
381
+ begin
382
+ result.success = @handler.assoc_execute(args.token, args.stmt, args.autocommit)
383
+ rescue ::Exc::ASSOCError => err
384
+ result.err = err
385
+ rescue ::Exc::AuthError => arr
386
+ result.arr = arr
387
+ end
388
+ write_result(result, oprot, 'assoc_execute', seqid)
389
+ end
390
+
391
+ def process_cursor_fetch(seqid, iprot, oprot)
392
+ args = read_args(iprot, Cursor_fetch_args)
393
+ result = Cursor_fetch_result.new()
394
+ begin
395
+ result.success = @handler.cursor_fetch(args.token, args.resource, args.rng)
396
+ rescue ::Exc::ServiceError => err
397
+ result.err = err
398
+ rescue ::Exc::AuthError => arr
399
+ result.arr = arr
400
+ end
401
+ write_result(result, oprot, 'cursor_fetch', seqid)
402
+ end
403
+
404
+ def process_cursor_dup(seqid, iprot, oprot)
405
+ args = read_args(iprot, Cursor_dup_args)
406
+ result = Cursor_dup_result.new()
407
+ begin
408
+ result.success = @handler.cursor_dup(args.token, args.resource, args.count)
409
+ rescue ::Exc::ServiceError => err
410
+ result.err = err
411
+ rescue ::Exc::AuthError => arr
412
+ result.arr = arr
413
+ end
414
+ write_result(result, oprot, 'cursor_dup', seqid)
415
+ end
416
+
417
+ def process_cursor_close(seqid, iprot, oprot)
418
+ args = read_args(iprot, Cursor_close_args)
419
+ @handler.cursor_close(args.token, args.resource)
420
+ return
421
+ end
422
+
423
+ def process_get_table_list(seqid, iprot, oprot)
424
+ args = read_args(iprot, Get_table_list_args)
425
+ result = Get_table_list_result.new()
426
+ begin
427
+ result.success = @handler.get_table_list(args.token, args.path)
428
+ rescue ::Exc::ServiceError => err
429
+ result.err = err
430
+ rescue ::Exc::AuthError => arr
431
+ result.arr = arr
432
+ end
433
+ write_result(result, oprot, 'get_table_list', seqid)
434
+ end
435
+
436
+ def process_get_table_schema(seqid, iprot, oprot)
437
+ args = read_args(iprot, Get_table_schema_args)
438
+ result = Get_table_schema_result.new()
439
+ begin
440
+ result.success = @handler.get_table_schema(args.token, args.table_name, args.path)
441
+ rescue ::Exc::ServiceError => err
442
+ result.err = err
443
+ rescue ::Exc::AuthError => arr
444
+ result.arr = arr
445
+ end
446
+ write_result(result, oprot, 'get_table_schema', seqid)
447
+ end
448
+
449
+ def process_get_table_relation(seqid, iprot, oprot)
450
+ args = read_args(iprot, Get_table_relation_args)
451
+ result = Get_table_relation_result.new()
452
+ begin
453
+ result.success = @handler.get_table_relation(args.token, args.table_name, args.path)
454
+ rescue ::Exc::ServiceError => err
455
+ result.err = err
456
+ rescue ::Exc::AuthError => arr
457
+ result.arr = arr
458
+ end
459
+ write_result(result, oprot, 'get_table_relation', seqid)
460
+ end
461
+
462
+ def process_get_qbo_list(seqid, iprot, oprot)
463
+ args = read_args(iprot, Get_qbo_list_args)
464
+ result = Get_qbo_list_result.new()
465
+ begin
466
+ result.success = @handler.get_qbo_list(args.token, args.path)
467
+ rescue ::Exc::ServiceError => err
468
+ result.err = err
469
+ rescue ::Exc::AuthError => arr
470
+ result.arr = arr
471
+ end
472
+ write_result(result, oprot, 'get_qbo_list', seqid)
473
+ end
474
+
475
+ def process_get_qbo_info(seqid, iprot, oprot)
476
+ args = read_args(iprot, Get_qbo_info_args)
477
+ result = Get_qbo_info_result.new()
478
+ begin
479
+ result.success = @handler.get_qbo_info(args.token, args.table_name, args.path)
480
+ rescue ::Exc::ServiceError => err
481
+ result.err = err
482
+ rescue ::Exc::AuthError => arr
483
+ result.arr = arr
484
+ end
485
+ write_result(result, oprot, 'get_qbo_info', seqid)
486
+ end
487
+
488
+ def process_get_mbt_list(seqid, iprot, oprot)
489
+ args = read_args(iprot, Get_mbt_list_args)
490
+ result = Get_mbt_list_result.new()
491
+ begin
492
+ result.success = @handler.get_mbt_list(args.token, args.path)
493
+ rescue ::Exc::ServiceError => err
494
+ result.err = err
495
+ rescue ::Exc::AuthError => arr
496
+ result.arr = arr
497
+ end
498
+ write_result(result, oprot, 'get_mbt_list', seqid)
499
+ end
500
+
501
+ def process_get_mbt_info(seqid, iprot, oprot)
502
+ args = read_args(iprot, Get_mbt_info_args)
503
+ result = Get_mbt_info_result.new()
504
+ begin
505
+ result.success = @handler.get_mbt_info(args.token, args.table_name, args.path)
506
+ rescue ::Exc::ServiceError => err
507
+ result.err = err
508
+ rescue ::Exc::AuthError => arr
509
+ result.arr = arr
510
+ end
511
+ write_result(result, oprot, 'get_mbt_info', seqid)
512
+ end
513
+
514
+ end
515
+
516
+ # HELPER FUNCTIONS AND STRUCTURES
517
+
518
+ class Ping_args
519
+ include ::Thrift::Struct, ::Thrift::Struct_Union
520
+
521
+ FIELDS = {
522
+
523
+ }
524
+
525
+ def struct_fields; FIELDS; end
526
+
527
+ def validate
528
+ end
529
+
530
+ ::Thrift::Struct.generate_accessors self
531
+ end
532
+
533
+ class Ping_result
534
+ include ::Thrift::Struct, ::Thrift::Struct_Union
535
+ SUCCESS = 0
536
+
537
+ FIELDS = {
538
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
539
+ }
540
+
541
+ def struct_fields; FIELDS; end
542
+
543
+ def validate
544
+ end
545
+
546
+ ::Thrift::Struct.generate_accessors self
547
+ end
548
+
549
+ class Sql_begin_args
550
+ include ::Thrift::Struct, ::Thrift::Struct_Union
551
+ TOKEN = 1
552
+
553
+ FIELDS = {
554
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'}
555
+ }
556
+
557
+ def struct_fields; FIELDS; end
558
+
559
+ def validate
560
+ end
561
+
562
+ ::Thrift::Struct.generate_accessors self
563
+ end
564
+
565
+ class Sql_begin_result
566
+ include ::Thrift::Struct, ::Thrift::Struct_Union
567
+ SUCCESS = 0
568
+ ERR = 1
569
+ ARR = 2
570
+
571
+ FIELDS = {
572
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
573
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
574
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
575
+ }
576
+
577
+ def struct_fields; FIELDS; end
578
+
579
+ def validate
580
+ end
581
+
582
+ ::Thrift::Struct.generate_accessors self
583
+ end
584
+
585
+ class Sql_commit_args
586
+ include ::Thrift::Struct, ::Thrift::Struct_Union
587
+ TOKEN = 1
588
+ RESOURCE = 2
589
+
590
+ FIELDS = {
591
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
592
+ RESOURCE => {:type => ::Thrift::Types::STRING, :name => 'resource'}
593
+ }
594
+
595
+ def struct_fields; FIELDS; end
596
+
597
+ def validate
598
+ end
599
+
600
+ ::Thrift::Struct.generate_accessors self
601
+ end
602
+
603
+ class Sql_commit_result
604
+ include ::Thrift::Struct, ::Thrift::Struct_Union
605
+ SUCCESS = 0
606
+ ERR = 1
607
+ SQLERR = 2
608
+ ARR = 3
609
+
610
+ FIELDS = {
611
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
612
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
613
+ SQLERR => {:type => ::Thrift::Types::STRUCT, :name => 'sqlerr', :class => ::Exc::SQLError},
614
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
615
+ }
616
+
617
+ def struct_fields; FIELDS; end
618
+
619
+ def validate
620
+ end
621
+
622
+ ::Thrift::Struct.generate_accessors self
623
+ end
624
+
625
+ class Sql_execute_many_args
626
+ include ::Thrift::Struct, ::Thrift::Struct_Union
627
+ TOKEN = 1
628
+ RESOURCE = 2
629
+ SQL_STMT = 3
630
+
631
+ FIELDS = {
632
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
633
+ RESOURCE => {:type => ::Thrift::Types::STRING, :name => 'resource'},
634
+ SQL_STMT => {:type => ::Thrift::Types::STRING, :name => 'sql_stmt'}
635
+ }
636
+
637
+ def struct_fields; FIELDS; end
638
+
639
+ def validate
640
+ end
641
+
642
+ ::Thrift::Struct.generate_accessors self
643
+ end
644
+
645
+ class Sql_execute_many_result
646
+ include ::Thrift::Struct, ::Thrift::Struct_Union
647
+ SUCCESS = 0
648
+ ERR = 1
649
+ SQLERR = 2
650
+ ARR = 3
651
+
652
+ FIELDS = {
653
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
654
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
655
+ SQLERR => {:type => ::Thrift::Types::STRUCT, :name => 'sqlerr', :class => ::Exc::SQLError},
656
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
657
+ }
658
+
659
+ def struct_fields; FIELDS; end
660
+
661
+ def validate
662
+ end
663
+
664
+ ::Thrift::Struct.generate_accessors self
665
+ end
666
+
667
+ class Sql_execute_args
668
+ include ::Thrift::Struct, ::Thrift::Struct_Union
669
+ TOKEN = 1
670
+ SQL_STMT = 2
671
+ AUTOCOMMIT = 3
672
+
673
+ FIELDS = {
674
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
675
+ SQL_STMT => {:type => ::Thrift::Types::STRING, :name => 'sql_stmt'},
676
+ AUTOCOMMIT => {:type => ::Thrift::Types::BOOL, :name => 'autocommit'}
677
+ }
678
+
679
+ def struct_fields; FIELDS; end
680
+
681
+ def validate
682
+ end
683
+
684
+ ::Thrift::Struct.generate_accessors self
685
+ end
686
+
687
+ class Sql_execute_result
688
+ include ::Thrift::Struct, ::Thrift::Struct_Union
689
+ SUCCESS = 0
690
+ ERR = 1
691
+ SQLERR = 2
692
+ ARR = 3
693
+
694
+ FIELDS = {
695
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
696
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
697
+ SQLERR => {:type => ::Thrift::Types::STRUCT, :name => 'sqlerr', :class => ::Exc::SQLError},
698
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
699
+ }
700
+
701
+ def struct_fields; FIELDS; end
702
+
703
+ def validate
704
+ end
705
+
706
+ ::Thrift::Struct.generate_accessors self
707
+ end
708
+
709
+ class Aux_execute_args
710
+ include ::Thrift::Struct, ::Thrift::Struct_Union
711
+ TOKEN = 1
712
+ STMT = 2
713
+ AUTOCOMMIT = 3
714
+
715
+ FIELDS = {
716
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
717
+ STMT => {:type => ::Thrift::Types::STRING, :name => 'stmt'},
718
+ AUTOCOMMIT => {:type => ::Thrift::Types::BOOL, :name => 'autocommit'}
719
+ }
720
+
721
+ def struct_fields; FIELDS; end
722
+
723
+ def validate
724
+ end
725
+
726
+ ::Thrift::Struct.generate_accessors self
727
+ end
728
+
729
+ class Aux_execute_result
730
+ include ::Thrift::Struct, ::Thrift::Struct_Union
731
+ SUCCESS = 0
732
+ ERR = 1
733
+ ARR = 2
734
+
735
+ FIELDS = {
736
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
737
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
738
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
739
+ }
740
+
741
+ def struct_fields; FIELDS; end
742
+
743
+ def validate
744
+ end
745
+
746
+ ::Thrift::Struct.generate_accessors self
747
+ end
748
+
749
+ class Assoc_execute_args
750
+ include ::Thrift::Struct, ::Thrift::Struct_Union
751
+ TOKEN = 1
752
+ STMT = 2
753
+ AUTOCOMMIT = 3
754
+
755
+ FIELDS = {
756
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
757
+ STMT => {:type => ::Thrift::Types::STRING, :name => 'stmt'},
758
+ AUTOCOMMIT => {:type => ::Thrift::Types::BOOL, :name => 'autocommit'}
759
+ }
760
+
761
+ def struct_fields; FIELDS; end
762
+
763
+ def validate
764
+ end
765
+
766
+ ::Thrift::Struct.generate_accessors self
767
+ end
768
+
769
+ class Assoc_execute_result
770
+ include ::Thrift::Struct, ::Thrift::Struct_Union
771
+ SUCCESS = 0
772
+ ERR = 1
773
+ ARR = 2
774
+
775
+ FIELDS = {
776
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
777
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ASSOCError},
778
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
779
+ }
780
+
781
+ def struct_fields; FIELDS; end
782
+
783
+ def validate
784
+ end
785
+
786
+ ::Thrift::Struct.generate_accessors self
787
+ end
788
+
789
+ class Cursor_fetch_args
790
+ include ::Thrift::Struct, ::Thrift::Struct_Union
791
+ TOKEN = 1
792
+ RESOURCE = 2
793
+ RNG = 3
794
+
795
+ FIELDS = {
796
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
797
+ RESOURCE => {:type => ::Thrift::Types::STRING, :name => 'resource'},
798
+ RNG => {:type => ::Thrift::Types::STRUCT, :name => 'rng', :class => ::Bosrv::RangeSpec}
799
+ }
800
+
801
+ def struct_fields; FIELDS; end
802
+
803
+ def validate
804
+ end
805
+
806
+ ::Thrift::Struct.generate_accessors self
807
+ end
808
+
809
+ class Cursor_fetch_result
810
+ include ::Thrift::Struct, ::Thrift::Struct_Union
811
+ SUCCESS = 0
812
+ ERR = 1
813
+ ARR = 2
814
+
815
+ FIELDS = {
816
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
817
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
818
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
819
+ }
820
+
821
+ def struct_fields; FIELDS; end
822
+
823
+ def validate
824
+ end
825
+
826
+ ::Thrift::Struct.generate_accessors self
827
+ end
828
+
829
+ class Cursor_dup_args
830
+ include ::Thrift::Struct, ::Thrift::Struct_Union
831
+ TOKEN = 1
832
+ RESOURCE = 2
833
+ COUNT = 3
834
+
835
+ FIELDS = {
836
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
837
+ RESOURCE => {:type => ::Thrift::Types::STRING, :name => 'resource'},
838
+ COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
839
+ }
840
+
841
+ def struct_fields; FIELDS; end
842
+
843
+ def validate
844
+ end
845
+
846
+ ::Thrift::Struct.generate_accessors self
847
+ end
848
+
849
+ class Cursor_dup_result
850
+ include ::Thrift::Struct, ::Thrift::Struct_Union
851
+ SUCCESS = 0
852
+ ERR = 1
853
+ ARR = 2
854
+
855
+ FIELDS = {
856
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
857
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
858
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
859
+ }
860
+
861
+ def struct_fields; FIELDS; end
862
+
863
+ def validate
864
+ end
865
+
866
+ ::Thrift::Struct.generate_accessors self
867
+ end
868
+
869
+ class Cursor_close_args
870
+ include ::Thrift::Struct, ::Thrift::Struct_Union
871
+ TOKEN = 1
872
+ RESOURCE = 2
873
+
874
+ FIELDS = {
875
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
876
+ RESOURCE => {:type => ::Thrift::Types::STRING, :name => 'resource'}
877
+ }
878
+
879
+ def struct_fields; FIELDS; end
880
+
881
+ def validate
882
+ end
883
+
884
+ ::Thrift::Struct.generate_accessors self
885
+ end
886
+
887
+ class Cursor_close_result
888
+ include ::Thrift::Struct, ::Thrift::Struct_Union
889
+
890
+ FIELDS = {
891
+
892
+ }
893
+
894
+ def struct_fields; FIELDS; end
895
+
896
+ def validate
897
+ end
898
+
899
+ ::Thrift::Struct.generate_accessors self
900
+ end
901
+
902
+ class Get_table_list_args
903
+ include ::Thrift::Struct, ::Thrift::Struct_Union
904
+ TOKEN = 1
905
+ PATH = 2
906
+
907
+ FIELDS = {
908
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
909
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
910
+ }
911
+
912
+ def struct_fields; FIELDS; end
913
+
914
+ def validate
915
+ end
916
+
917
+ ::Thrift::Struct.generate_accessors self
918
+ end
919
+
920
+ class Get_table_list_result
921
+ include ::Thrift::Struct, ::Thrift::Struct_Union
922
+ SUCCESS = 0
923
+ ERR = 1
924
+ ARR = 2
925
+
926
+ FIELDS = {
927
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
928
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
929
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
930
+ }
931
+
932
+ def struct_fields; FIELDS; end
933
+
934
+ def validate
935
+ end
936
+
937
+ ::Thrift::Struct.generate_accessors self
938
+ end
939
+
940
+ class Get_table_schema_args
941
+ include ::Thrift::Struct, ::Thrift::Struct_Union
942
+ TOKEN = 1
943
+ TABLE_NAME = 2
944
+ PATH = 3
945
+
946
+ FIELDS = {
947
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
948
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'},
949
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
950
+ }
951
+
952
+ def struct_fields; FIELDS; end
953
+
954
+ def validate
955
+ end
956
+
957
+ ::Thrift::Struct.generate_accessors self
958
+ end
959
+
960
+ class Get_table_schema_result
961
+ include ::Thrift::Struct, ::Thrift::Struct_Union
962
+ SUCCESS = 0
963
+ ERR = 1
964
+ ARR = 2
965
+
966
+ FIELDS = {
967
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
968
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
969
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
970
+ }
971
+
972
+ def struct_fields; FIELDS; end
973
+
974
+ def validate
975
+ end
976
+
977
+ ::Thrift::Struct.generate_accessors self
978
+ end
979
+
980
+ class Get_table_relation_args
981
+ include ::Thrift::Struct, ::Thrift::Struct_Union
982
+ TOKEN = 1
983
+ TABLE_NAME = 2
984
+ PATH = 3
985
+
986
+ FIELDS = {
987
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
988
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'},
989
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
990
+ }
991
+
992
+ def struct_fields; FIELDS; end
993
+
994
+ def validate
995
+ end
996
+
997
+ ::Thrift::Struct.generate_accessors self
998
+ end
999
+
1000
+ class Get_table_relation_result
1001
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1002
+ SUCCESS = 0
1003
+ ERR = 1
1004
+ ARR = 2
1005
+
1006
+ FIELDS = {
1007
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1008
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
1009
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
1010
+ }
1011
+
1012
+ def struct_fields; FIELDS; end
1013
+
1014
+ def validate
1015
+ end
1016
+
1017
+ ::Thrift::Struct.generate_accessors self
1018
+ end
1019
+
1020
+ class Get_qbo_list_args
1021
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1022
+ TOKEN = 1
1023
+ PATH = 2
1024
+
1025
+ FIELDS = {
1026
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
1027
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
1028
+ }
1029
+
1030
+ def struct_fields; FIELDS; end
1031
+
1032
+ def validate
1033
+ end
1034
+
1035
+ ::Thrift::Struct.generate_accessors self
1036
+ end
1037
+
1038
+ class Get_qbo_list_result
1039
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1040
+ SUCCESS = 0
1041
+ ERR = 1
1042
+ ARR = 2
1043
+
1044
+ FIELDS = {
1045
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1046
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
1047
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
1048
+ }
1049
+
1050
+ def struct_fields; FIELDS; end
1051
+
1052
+ def validate
1053
+ end
1054
+
1055
+ ::Thrift::Struct.generate_accessors self
1056
+ end
1057
+
1058
+ class Get_qbo_info_args
1059
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1060
+ TOKEN = 1
1061
+ TABLE_NAME = 2
1062
+ PATH = 3
1063
+
1064
+ FIELDS = {
1065
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
1066
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'},
1067
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
1068
+ }
1069
+
1070
+ def struct_fields; FIELDS; end
1071
+
1072
+ def validate
1073
+ end
1074
+
1075
+ ::Thrift::Struct.generate_accessors self
1076
+ end
1077
+
1078
+ class Get_qbo_info_result
1079
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1080
+ SUCCESS = 0
1081
+ ERR = 1
1082
+ ARR = 2
1083
+
1084
+ FIELDS = {
1085
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1086
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
1087
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
1088
+ }
1089
+
1090
+ def struct_fields; FIELDS; end
1091
+
1092
+ def validate
1093
+ end
1094
+
1095
+ ::Thrift::Struct.generate_accessors self
1096
+ end
1097
+
1098
+ class Get_mbt_list_args
1099
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1100
+ TOKEN = 1
1101
+ PATH = 2
1102
+
1103
+ FIELDS = {
1104
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
1105
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
1106
+ }
1107
+
1108
+ def struct_fields; FIELDS; end
1109
+
1110
+ def validate
1111
+ end
1112
+
1113
+ ::Thrift::Struct.generate_accessors self
1114
+ end
1115
+
1116
+ class Get_mbt_list_result
1117
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1118
+ SUCCESS = 0
1119
+ ERR = 1
1120
+ ARR = 2
1121
+
1122
+ FIELDS = {
1123
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1124
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
1125
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
1126
+ }
1127
+
1128
+ def struct_fields; FIELDS; end
1129
+
1130
+ def validate
1131
+ end
1132
+
1133
+ ::Thrift::Struct.generate_accessors self
1134
+ end
1135
+
1136
+ class Get_mbt_info_args
1137
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1138
+ TOKEN = 1
1139
+ TABLE_NAME = 2
1140
+ PATH = 3
1141
+
1142
+ FIELDS = {
1143
+ TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
1144
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'},
1145
+ PATH => {:type => ::Thrift::Types::STRING, :name => 'path'}
1146
+ }
1147
+
1148
+ def struct_fields; FIELDS; end
1149
+
1150
+ def validate
1151
+ end
1152
+
1153
+ ::Thrift::Struct.generate_accessors self
1154
+ end
1155
+
1156
+ class Get_mbt_info_result
1157
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1158
+ SUCCESS = 0
1159
+ ERR = 1
1160
+ ARR = 2
1161
+
1162
+ FIELDS = {
1163
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1164
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::Exc::ServiceError},
1165
+ ARR => {:type => ::Thrift::Types::STRUCT, :name => 'arr', :class => ::Exc::AuthError}
1166
+ }
1167
+
1168
+ def struct_fields; FIELDS; end
1169
+
1170
+ def validate
1171
+ end
1172
+
1173
+ ::Thrift::Struct.generate_accessors self
1174
+ end
1175
+
1176
+ end
1177
+
1178
+ end
@@ -0,0 +1,11 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'big_object_service_types'
9
+
10
+ module Bosrv
11
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'exception_types'
9
+
10
+
11
+ module Bosrv
12
+ class RangeSpec
13
+ include ::Thrift::Struct, ::Thrift::Struct_Union
14
+ START = 1
15
+ PAGE = 2
16
+
17
+ FIELDS = {
18
+ START => {:type => ::Thrift::Types::I64, :name => 'start', :default => -1, :optional => true},
19
+ PAGE => {:type => ::Thrift::Types::I64, :name => 'page', :default => 1000, :optional => true}
20
+ }
21
+
22
+ def struct_fields; FIELDS; end
23
+
24
+ def validate
25
+ end
26
+
27
+ ::Thrift::Struct.generate_accessors self
28
+ end
29
+
30
+ end
@@ -0,0 +1,16 @@
1
+ require 'thrift'
2
+ require_relative 'big_object_service'
3
+
4
+ module Bosrv
5
+ def Bosrv.connect(addr_info, timeout=nil)
6
+ transport = Thrift::BufferedTransport.new(
7
+ Thrift::Socket.new(*addr_info)
8
+ )
9
+ protocol = Thrift::BinaryProtocol.new(transport)
10
+ client = Bosrv::BigObjectService::Client.new(protocol)
11
+ transport.open()
12
+ yield client
13
+ ensure
14
+ transport.close()
15
+ end
16
+ end
@@ -0,0 +1,11 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'exception_types'
9
+
10
+ module Exc
11
+ end
@@ -0,0 +1,92 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Exc
10
+ class ServiceError < ::Thrift::Exception
11
+ include ::Thrift::Struct, ::Thrift::Struct_Union
12
+ WHY = 1
13
+ MISC = 2
14
+
15
+ FIELDS = {
16
+ WHY => {:type => ::Thrift::Types::STRING, :name => 'why'},
17
+ MISC => {:type => ::Thrift::Types::STRING, :name => 'misc', :optional => true}
18
+ }
19
+
20
+ def struct_fields; FIELDS; end
21
+
22
+ def validate
23
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field why is unset!') unless @why
24
+ end
25
+
26
+ ::Thrift::Struct.generate_accessors self
27
+ end
28
+
29
+ class AuthError < ::Thrift::Exception
30
+ include ::Thrift::Struct, ::Thrift::Struct_Union
31
+ WHY = 1
32
+ MISC = 2
33
+
34
+ FIELDS = {
35
+ WHY => {:type => ::Thrift::Types::STRING, :name => 'why', :default => %q"invalid auth token"},
36
+ MISC => {:type => ::Thrift::Types::STRING, :name => 'misc', :optional => true}
37
+ }
38
+
39
+ def struct_fields; FIELDS; end
40
+
41
+ def validate
42
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field why is unset!') unless @why
43
+ end
44
+
45
+ ::Thrift::Struct.generate_accessors self
46
+ end
47
+
48
+ class SQLError < ::Thrift::Exception
49
+ include ::Thrift::Struct, ::Thrift::Struct_Union
50
+ CODE = 1
51
+ WHY = 2
52
+ MISC = 3
53
+
54
+ FIELDS = {
55
+ CODE => {:type => ::Thrift::Types::I32, :name => 'code'},
56
+ WHY => {:type => ::Thrift::Types::STRING, :name => 'why'},
57
+ MISC => {:type => ::Thrift::Types::STRING, :name => 'misc', :optional => true}
58
+ }
59
+
60
+ def struct_fields; FIELDS; end
61
+
62
+ def validate
63
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field code is unset!') unless @code
64
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field why is unset!') unless @why
65
+ end
66
+
67
+ ::Thrift::Struct.generate_accessors self
68
+ end
69
+
70
+ class ASSOCError < ::Thrift::Exception
71
+ include ::Thrift::Struct, ::Thrift::Struct_Union
72
+ CODE = 1
73
+ WHY = 2
74
+ MISC = 3
75
+
76
+ FIELDS = {
77
+ CODE => {:type => ::Thrift::Types::I32, :name => 'code'},
78
+ WHY => {:type => ::Thrift::Types::STRING, :name => 'why'},
79
+ MISC => {:type => ::Thrift::Types::STRING, :name => 'misc', :optional => true}
80
+ }
81
+
82
+ def struct_fields; FIELDS; end
83
+
84
+ def validate
85
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field code is unset!') unless @code
86
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field why is unset!') unless @why
87
+ end
88
+
89
+ ::Thrift::Struct.generate_accessors self
90
+ end
91
+
92
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bosrvclient
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Jeffrey Jen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This is the BigObject service RPC client
14
+ email: yihungjen@macrodatalab.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/bosrvclient.rb
20
+ - lib/bosrvclient/big_object_service.rb
21
+ - lib/bosrvclient/big_object_service_constants.rb
22
+ - lib/bosrvclient/big_object_service_types.rb
23
+ - lib/bosrvclient/connect.rb
24
+ - lib/bosrvclient/exception_constants.rb
25
+ - lib/bosrvclient/exception_types.rb
26
+ homepage: https://bitbucket.org/macrodata/bosrvclient-ruby
27
+ licenses:
28
+ - Apache 2.0
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.2.2
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: BigObject service client
50
+ test_files: []