databricks-sql-connector 0.9.1__py3-none-any.whl
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.
- databricks/__init__.py +1 -0
- databricks/sql/TCLIService/TCLIService.py +3986 -0
- databricks/sql/TCLIService/__init__.py +1 -0
- databricks/sql/TCLIService/constants.py +68 -0
- databricks/sql/TCLIService/ttypes.py +7210 -0
- databricks/sql/__init__.py +28 -0
- databricks/sql/client.py +454 -0
- databricks/sql/common.py +240 -0
- databricks/sql/dbapi.py +36 -0
- databricks/sql/exc.py +72 -0
- databricks_sql_connector-0.9.1.dist-info/LICENSE +13 -0
- databricks_sql_connector-0.9.1.dist-info/METADATA +66 -0
- databricks_sql_connector-0.9.1.dist-info/NOTICE +23 -0
- databricks_sql_connector-0.9.1.dist-info/RECORD +16 -0
- databricks_sql_connector-0.9.1.dist-info/WHEEL +5 -0
- databricks_sql_connector-0.9.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,3986 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.10.0)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
# options string: py
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
|
|
10
|
+
from thrift.protocol.TProtocol import TProtocolException
|
|
11
|
+
import sys
|
|
12
|
+
import logging
|
|
13
|
+
from .ttypes import *
|
|
14
|
+
from thrift.Thrift import TProcessor
|
|
15
|
+
from thrift.transport import TTransport
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Iface(object):
|
|
19
|
+
def OpenSession(self, req):
|
|
20
|
+
"""
|
|
21
|
+
Parameters:
|
|
22
|
+
- req
|
|
23
|
+
"""
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def CloseSession(self, req):
|
|
27
|
+
"""
|
|
28
|
+
Parameters:
|
|
29
|
+
- req
|
|
30
|
+
"""
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
def GetInfo(self, req):
|
|
34
|
+
"""
|
|
35
|
+
Parameters:
|
|
36
|
+
- req
|
|
37
|
+
"""
|
|
38
|
+
pass
|
|
39
|
+
|
|
40
|
+
def ExecuteStatement(self, req):
|
|
41
|
+
"""
|
|
42
|
+
Parameters:
|
|
43
|
+
- req
|
|
44
|
+
"""
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
def GetTypeInfo(self, req):
|
|
48
|
+
"""
|
|
49
|
+
Parameters:
|
|
50
|
+
- req
|
|
51
|
+
"""
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
def GetCatalogs(self, req):
|
|
55
|
+
"""
|
|
56
|
+
Parameters:
|
|
57
|
+
- req
|
|
58
|
+
"""
|
|
59
|
+
pass
|
|
60
|
+
|
|
61
|
+
def GetSchemas(self, req):
|
|
62
|
+
"""
|
|
63
|
+
Parameters:
|
|
64
|
+
- req
|
|
65
|
+
"""
|
|
66
|
+
pass
|
|
67
|
+
|
|
68
|
+
def GetTables(self, req):
|
|
69
|
+
"""
|
|
70
|
+
Parameters:
|
|
71
|
+
- req
|
|
72
|
+
"""
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
def GetTableTypes(self, req):
|
|
76
|
+
"""
|
|
77
|
+
Parameters:
|
|
78
|
+
- req
|
|
79
|
+
"""
|
|
80
|
+
pass
|
|
81
|
+
|
|
82
|
+
def GetColumns(self, req):
|
|
83
|
+
"""
|
|
84
|
+
Parameters:
|
|
85
|
+
- req
|
|
86
|
+
"""
|
|
87
|
+
pass
|
|
88
|
+
|
|
89
|
+
def GetFunctions(self, req):
|
|
90
|
+
"""
|
|
91
|
+
Parameters:
|
|
92
|
+
- req
|
|
93
|
+
"""
|
|
94
|
+
pass
|
|
95
|
+
|
|
96
|
+
def GetPrimaryKeys(self, req):
|
|
97
|
+
"""
|
|
98
|
+
Parameters:
|
|
99
|
+
- req
|
|
100
|
+
"""
|
|
101
|
+
pass
|
|
102
|
+
|
|
103
|
+
def GetCrossReference(self, req):
|
|
104
|
+
"""
|
|
105
|
+
Parameters:
|
|
106
|
+
- req
|
|
107
|
+
"""
|
|
108
|
+
pass
|
|
109
|
+
|
|
110
|
+
def GetOperationStatus(self, req):
|
|
111
|
+
"""
|
|
112
|
+
Parameters:
|
|
113
|
+
- req
|
|
114
|
+
"""
|
|
115
|
+
pass
|
|
116
|
+
|
|
117
|
+
def CancelOperation(self, req):
|
|
118
|
+
"""
|
|
119
|
+
Parameters:
|
|
120
|
+
- req
|
|
121
|
+
"""
|
|
122
|
+
pass
|
|
123
|
+
|
|
124
|
+
def CloseOperation(self, req):
|
|
125
|
+
"""
|
|
126
|
+
Parameters:
|
|
127
|
+
- req
|
|
128
|
+
"""
|
|
129
|
+
pass
|
|
130
|
+
|
|
131
|
+
def GetResultSetMetadata(self, req):
|
|
132
|
+
"""
|
|
133
|
+
Parameters:
|
|
134
|
+
- req
|
|
135
|
+
"""
|
|
136
|
+
pass
|
|
137
|
+
|
|
138
|
+
def FetchResults(self, req):
|
|
139
|
+
"""
|
|
140
|
+
Parameters:
|
|
141
|
+
- req
|
|
142
|
+
"""
|
|
143
|
+
pass
|
|
144
|
+
|
|
145
|
+
def GetDelegationToken(self, req):
|
|
146
|
+
"""
|
|
147
|
+
Parameters:
|
|
148
|
+
- req
|
|
149
|
+
"""
|
|
150
|
+
pass
|
|
151
|
+
|
|
152
|
+
def CancelDelegationToken(self, req):
|
|
153
|
+
"""
|
|
154
|
+
Parameters:
|
|
155
|
+
- req
|
|
156
|
+
"""
|
|
157
|
+
pass
|
|
158
|
+
|
|
159
|
+
def RenewDelegationToken(self, req):
|
|
160
|
+
"""
|
|
161
|
+
Parameters:
|
|
162
|
+
- req
|
|
163
|
+
"""
|
|
164
|
+
pass
|
|
165
|
+
|
|
166
|
+
def GetLog(self, req):
|
|
167
|
+
"""
|
|
168
|
+
Parameters:
|
|
169
|
+
- req
|
|
170
|
+
"""
|
|
171
|
+
pass
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
class Client(Iface):
|
|
175
|
+
def __init__(self, iprot, oprot=None):
|
|
176
|
+
self._iprot = self._oprot = iprot
|
|
177
|
+
if oprot is not None:
|
|
178
|
+
self._oprot = oprot
|
|
179
|
+
self._seqid = 0
|
|
180
|
+
|
|
181
|
+
def OpenSession(self, req):
|
|
182
|
+
"""
|
|
183
|
+
Parameters:
|
|
184
|
+
- req
|
|
185
|
+
"""
|
|
186
|
+
self.send_OpenSession(req)
|
|
187
|
+
return self.recv_OpenSession()
|
|
188
|
+
|
|
189
|
+
def send_OpenSession(self, req):
|
|
190
|
+
self._oprot.writeMessageBegin('OpenSession', TMessageType.CALL, self._seqid)
|
|
191
|
+
args = OpenSession_args()
|
|
192
|
+
args.req = req
|
|
193
|
+
args.write(self._oprot)
|
|
194
|
+
self._oprot.writeMessageEnd()
|
|
195
|
+
self._oprot.trans.flush()
|
|
196
|
+
|
|
197
|
+
def recv_OpenSession(self):
|
|
198
|
+
iprot = self._iprot
|
|
199
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
200
|
+
if mtype == TMessageType.EXCEPTION:
|
|
201
|
+
x = TApplicationException()
|
|
202
|
+
x.read(iprot)
|
|
203
|
+
iprot.readMessageEnd()
|
|
204
|
+
raise x
|
|
205
|
+
result = OpenSession_result()
|
|
206
|
+
result.read(iprot)
|
|
207
|
+
iprot.readMessageEnd()
|
|
208
|
+
if result.success is not None:
|
|
209
|
+
return result.success
|
|
210
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result")
|
|
211
|
+
|
|
212
|
+
def CloseSession(self, req):
|
|
213
|
+
"""
|
|
214
|
+
Parameters:
|
|
215
|
+
- req
|
|
216
|
+
"""
|
|
217
|
+
self.send_CloseSession(req)
|
|
218
|
+
return self.recv_CloseSession()
|
|
219
|
+
|
|
220
|
+
def send_CloseSession(self, req):
|
|
221
|
+
self._oprot.writeMessageBegin('CloseSession', TMessageType.CALL, self._seqid)
|
|
222
|
+
args = CloseSession_args()
|
|
223
|
+
args.req = req
|
|
224
|
+
args.write(self._oprot)
|
|
225
|
+
self._oprot.writeMessageEnd()
|
|
226
|
+
self._oprot.trans.flush()
|
|
227
|
+
|
|
228
|
+
def recv_CloseSession(self):
|
|
229
|
+
iprot = self._iprot
|
|
230
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
231
|
+
if mtype == TMessageType.EXCEPTION:
|
|
232
|
+
x = TApplicationException()
|
|
233
|
+
x.read(iprot)
|
|
234
|
+
iprot.readMessageEnd()
|
|
235
|
+
raise x
|
|
236
|
+
result = CloseSession_result()
|
|
237
|
+
result.read(iprot)
|
|
238
|
+
iprot.readMessageEnd()
|
|
239
|
+
if result.success is not None:
|
|
240
|
+
return result.success
|
|
241
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result")
|
|
242
|
+
|
|
243
|
+
def GetInfo(self, req):
|
|
244
|
+
"""
|
|
245
|
+
Parameters:
|
|
246
|
+
- req
|
|
247
|
+
"""
|
|
248
|
+
self.send_GetInfo(req)
|
|
249
|
+
return self.recv_GetInfo()
|
|
250
|
+
|
|
251
|
+
def send_GetInfo(self, req):
|
|
252
|
+
self._oprot.writeMessageBegin('GetInfo', TMessageType.CALL, self._seqid)
|
|
253
|
+
args = GetInfo_args()
|
|
254
|
+
args.req = req
|
|
255
|
+
args.write(self._oprot)
|
|
256
|
+
self._oprot.writeMessageEnd()
|
|
257
|
+
self._oprot.trans.flush()
|
|
258
|
+
|
|
259
|
+
def recv_GetInfo(self):
|
|
260
|
+
iprot = self._iprot
|
|
261
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
262
|
+
if mtype == TMessageType.EXCEPTION:
|
|
263
|
+
x = TApplicationException()
|
|
264
|
+
x.read(iprot)
|
|
265
|
+
iprot.readMessageEnd()
|
|
266
|
+
raise x
|
|
267
|
+
result = GetInfo_result()
|
|
268
|
+
result.read(iprot)
|
|
269
|
+
iprot.readMessageEnd()
|
|
270
|
+
if result.success is not None:
|
|
271
|
+
return result.success
|
|
272
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result")
|
|
273
|
+
|
|
274
|
+
def ExecuteStatement(self, req):
|
|
275
|
+
"""
|
|
276
|
+
Parameters:
|
|
277
|
+
- req
|
|
278
|
+
"""
|
|
279
|
+
self.send_ExecuteStatement(req)
|
|
280
|
+
return self.recv_ExecuteStatement()
|
|
281
|
+
|
|
282
|
+
def send_ExecuteStatement(self, req):
|
|
283
|
+
self._oprot.writeMessageBegin('ExecuteStatement', TMessageType.CALL, self._seqid)
|
|
284
|
+
args = ExecuteStatement_args()
|
|
285
|
+
args.req = req
|
|
286
|
+
args.write(self._oprot)
|
|
287
|
+
self._oprot.writeMessageEnd()
|
|
288
|
+
self._oprot.trans.flush()
|
|
289
|
+
|
|
290
|
+
def recv_ExecuteStatement(self):
|
|
291
|
+
iprot = self._iprot
|
|
292
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
293
|
+
if mtype == TMessageType.EXCEPTION:
|
|
294
|
+
x = TApplicationException()
|
|
295
|
+
x.read(iprot)
|
|
296
|
+
iprot.readMessageEnd()
|
|
297
|
+
raise x
|
|
298
|
+
result = ExecuteStatement_result()
|
|
299
|
+
result.read(iprot)
|
|
300
|
+
iprot.readMessageEnd()
|
|
301
|
+
if result.success is not None:
|
|
302
|
+
return result.success
|
|
303
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result")
|
|
304
|
+
|
|
305
|
+
def GetTypeInfo(self, req):
|
|
306
|
+
"""
|
|
307
|
+
Parameters:
|
|
308
|
+
- req
|
|
309
|
+
"""
|
|
310
|
+
self.send_GetTypeInfo(req)
|
|
311
|
+
return self.recv_GetTypeInfo()
|
|
312
|
+
|
|
313
|
+
def send_GetTypeInfo(self, req):
|
|
314
|
+
self._oprot.writeMessageBegin('GetTypeInfo', TMessageType.CALL, self._seqid)
|
|
315
|
+
args = GetTypeInfo_args()
|
|
316
|
+
args.req = req
|
|
317
|
+
args.write(self._oprot)
|
|
318
|
+
self._oprot.writeMessageEnd()
|
|
319
|
+
self._oprot.trans.flush()
|
|
320
|
+
|
|
321
|
+
def recv_GetTypeInfo(self):
|
|
322
|
+
iprot = self._iprot
|
|
323
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
324
|
+
if mtype == TMessageType.EXCEPTION:
|
|
325
|
+
x = TApplicationException()
|
|
326
|
+
x.read(iprot)
|
|
327
|
+
iprot.readMessageEnd()
|
|
328
|
+
raise x
|
|
329
|
+
result = GetTypeInfo_result()
|
|
330
|
+
result.read(iprot)
|
|
331
|
+
iprot.readMessageEnd()
|
|
332
|
+
if result.success is not None:
|
|
333
|
+
return result.success
|
|
334
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result")
|
|
335
|
+
|
|
336
|
+
def GetCatalogs(self, req):
|
|
337
|
+
"""
|
|
338
|
+
Parameters:
|
|
339
|
+
- req
|
|
340
|
+
"""
|
|
341
|
+
self.send_GetCatalogs(req)
|
|
342
|
+
return self.recv_GetCatalogs()
|
|
343
|
+
|
|
344
|
+
def send_GetCatalogs(self, req):
|
|
345
|
+
self._oprot.writeMessageBegin('GetCatalogs', TMessageType.CALL, self._seqid)
|
|
346
|
+
args = GetCatalogs_args()
|
|
347
|
+
args.req = req
|
|
348
|
+
args.write(self._oprot)
|
|
349
|
+
self._oprot.writeMessageEnd()
|
|
350
|
+
self._oprot.trans.flush()
|
|
351
|
+
|
|
352
|
+
def recv_GetCatalogs(self):
|
|
353
|
+
iprot = self._iprot
|
|
354
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
355
|
+
if mtype == TMessageType.EXCEPTION:
|
|
356
|
+
x = TApplicationException()
|
|
357
|
+
x.read(iprot)
|
|
358
|
+
iprot.readMessageEnd()
|
|
359
|
+
raise x
|
|
360
|
+
result = GetCatalogs_result()
|
|
361
|
+
result.read(iprot)
|
|
362
|
+
iprot.readMessageEnd()
|
|
363
|
+
if result.success is not None:
|
|
364
|
+
return result.success
|
|
365
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result")
|
|
366
|
+
|
|
367
|
+
def GetSchemas(self, req):
|
|
368
|
+
"""
|
|
369
|
+
Parameters:
|
|
370
|
+
- req
|
|
371
|
+
"""
|
|
372
|
+
self.send_GetSchemas(req)
|
|
373
|
+
return self.recv_GetSchemas()
|
|
374
|
+
|
|
375
|
+
def send_GetSchemas(self, req):
|
|
376
|
+
self._oprot.writeMessageBegin('GetSchemas', TMessageType.CALL, self._seqid)
|
|
377
|
+
args = GetSchemas_args()
|
|
378
|
+
args.req = req
|
|
379
|
+
args.write(self._oprot)
|
|
380
|
+
self._oprot.writeMessageEnd()
|
|
381
|
+
self._oprot.trans.flush()
|
|
382
|
+
|
|
383
|
+
def recv_GetSchemas(self):
|
|
384
|
+
iprot = self._iprot
|
|
385
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
386
|
+
if mtype == TMessageType.EXCEPTION:
|
|
387
|
+
x = TApplicationException()
|
|
388
|
+
x.read(iprot)
|
|
389
|
+
iprot.readMessageEnd()
|
|
390
|
+
raise x
|
|
391
|
+
result = GetSchemas_result()
|
|
392
|
+
result.read(iprot)
|
|
393
|
+
iprot.readMessageEnd()
|
|
394
|
+
if result.success is not None:
|
|
395
|
+
return result.success
|
|
396
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result")
|
|
397
|
+
|
|
398
|
+
def GetTables(self, req):
|
|
399
|
+
"""
|
|
400
|
+
Parameters:
|
|
401
|
+
- req
|
|
402
|
+
"""
|
|
403
|
+
self.send_GetTables(req)
|
|
404
|
+
return self.recv_GetTables()
|
|
405
|
+
|
|
406
|
+
def send_GetTables(self, req):
|
|
407
|
+
self._oprot.writeMessageBegin('GetTables', TMessageType.CALL, self._seqid)
|
|
408
|
+
args = GetTables_args()
|
|
409
|
+
args.req = req
|
|
410
|
+
args.write(self._oprot)
|
|
411
|
+
self._oprot.writeMessageEnd()
|
|
412
|
+
self._oprot.trans.flush()
|
|
413
|
+
|
|
414
|
+
def recv_GetTables(self):
|
|
415
|
+
iprot = self._iprot
|
|
416
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
417
|
+
if mtype == TMessageType.EXCEPTION:
|
|
418
|
+
x = TApplicationException()
|
|
419
|
+
x.read(iprot)
|
|
420
|
+
iprot.readMessageEnd()
|
|
421
|
+
raise x
|
|
422
|
+
result = GetTables_result()
|
|
423
|
+
result.read(iprot)
|
|
424
|
+
iprot.readMessageEnd()
|
|
425
|
+
if result.success is not None:
|
|
426
|
+
return result.success
|
|
427
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTables failed: unknown result")
|
|
428
|
+
|
|
429
|
+
def GetTableTypes(self, req):
|
|
430
|
+
"""
|
|
431
|
+
Parameters:
|
|
432
|
+
- req
|
|
433
|
+
"""
|
|
434
|
+
self.send_GetTableTypes(req)
|
|
435
|
+
return self.recv_GetTableTypes()
|
|
436
|
+
|
|
437
|
+
def send_GetTableTypes(self, req):
|
|
438
|
+
self._oprot.writeMessageBegin('GetTableTypes', TMessageType.CALL, self._seqid)
|
|
439
|
+
args = GetTableTypes_args()
|
|
440
|
+
args.req = req
|
|
441
|
+
args.write(self._oprot)
|
|
442
|
+
self._oprot.writeMessageEnd()
|
|
443
|
+
self._oprot.trans.flush()
|
|
444
|
+
|
|
445
|
+
def recv_GetTableTypes(self):
|
|
446
|
+
iprot = self._iprot
|
|
447
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
448
|
+
if mtype == TMessageType.EXCEPTION:
|
|
449
|
+
x = TApplicationException()
|
|
450
|
+
x.read(iprot)
|
|
451
|
+
iprot.readMessageEnd()
|
|
452
|
+
raise x
|
|
453
|
+
result = GetTableTypes_result()
|
|
454
|
+
result.read(iprot)
|
|
455
|
+
iprot.readMessageEnd()
|
|
456
|
+
if result.success is not None:
|
|
457
|
+
return result.success
|
|
458
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result")
|
|
459
|
+
|
|
460
|
+
def GetColumns(self, req):
|
|
461
|
+
"""
|
|
462
|
+
Parameters:
|
|
463
|
+
- req
|
|
464
|
+
"""
|
|
465
|
+
self.send_GetColumns(req)
|
|
466
|
+
return self.recv_GetColumns()
|
|
467
|
+
|
|
468
|
+
def send_GetColumns(self, req):
|
|
469
|
+
self._oprot.writeMessageBegin('GetColumns', TMessageType.CALL, self._seqid)
|
|
470
|
+
args = GetColumns_args()
|
|
471
|
+
args.req = req
|
|
472
|
+
args.write(self._oprot)
|
|
473
|
+
self._oprot.writeMessageEnd()
|
|
474
|
+
self._oprot.trans.flush()
|
|
475
|
+
|
|
476
|
+
def recv_GetColumns(self):
|
|
477
|
+
iprot = self._iprot
|
|
478
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
479
|
+
if mtype == TMessageType.EXCEPTION:
|
|
480
|
+
x = TApplicationException()
|
|
481
|
+
x.read(iprot)
|
|
482
|
+
iprot.readMessageEnd()
|
|
483
|
+
raise x
|
|
484
|
+
result = GetColumns_result()
|
|
485
|
+
result.read(iprot)
|
|
486
|
+
iprot.readMessageEnd()
|
|
487
|
+
if result.success is not None:
|
|
488
|
+
return result.success
|
|
489
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result")
|
|
490
|
+
|
|
491
|
+
def GetFunctions(self, req):
|
|
492
|
+
"""
|
|
493
|
+
Parameters:
|
|
494
|
+
- req
|
|
495
|
+
"""
|
|
496
|
+
self.send_GetFunctions(req)
|
|
497
|
+
return self.recv_GetFunctions()
|
|
498
|
+
|
|
499
|
+
def send_GetFunctions(self, req):
|
|
500
|
+
self._oprot.writeMessageBegin('GetFunctions', TMessageType.CALL, self._seqid)
|
|
501
|
+
args = GetFunctions_args()
|
|
502
|
+
args.req = req
|
|
503
|
+
args.write(self._oprot)
|
|
504
|
+
self._oprot.writeMessageEnd()
|
|
505
|
+
self._oprot.trans.flush()
|
|
506
|
+
|
|
507
|
+
def recv_GetFunctions(self):
|
|
508
|
+
iprot = self._iprot
|
|
509
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
510
|
+
if mtype == TMessageType.EXCEPTION:
|
|
511
|
+
x = TApplicationException()
|
|
512
|
+
x.read(iprot)
|
|
513
|
+
iprot.readMessageEnd()
|
|
514
|
+
raise x
|
|
515
|
+
result = GetFunctions_result()
|
|
516
|
+
result.read(iprot)
|
|
517
|
+
iprot.readMessageEnd()
|
|
518
|
+
if result.success is not None:
|
|
519
|
+
return result.success
|
|
520
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result")
|
|
521
|
+
|
|
522
|
+
def GetPrimaryKeys(self, req):
|
|
523
|
+
"""
|
|
524
|
+
Parameters:
|
|
525
|
+
- req
|
|
526
|
+
"""
|
|
527
|
+
self.send_GetPrimaryKeys(req)
|
|
528
|
+
return self.recv_GetPrimaryKeys()
|
|
529
|
+
|
|
530
|
+
def send_GetPrimaryKeys(self, req):
|
|
531
|
+
self._oprot.writeMessageBegin('GetPrimaryKeys', TMessageType.CALL, self._seqid)
|
|
532
|
+
args = GetPrimaryKeys_args()
|
|
533
|
+
args.req = req
|
|
534
|
+
args.write(self._oprot)
|
|
535
|
+
self._oprot.writeMessageEnd()
|
|
536
|
+
self._oprot.trans.flush()
|
|
537
|
+
|
|
538
|
+
def recv_GetPrimaryKeys(self):
|
|
539
|
+
iprot = self._iprot
|
|
540
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
541
|
+
if mtype == TMessageType.EXCEPTION:
|
|
542
|
+
x = TApplicationException()
|
|
543
|
+
x.read(iprot)
|
|
544
|
+
iprot.readMessageEnd()
|
|
545
|
+
raise x
|
|
546
|
+
result = GetPrimaryKeys_result()
|
|
547
|
+
result.read(iprot)
|
|
548
|
+
iprot.readMessageEnd()
|
|
549
|
+
if result.success is not None:
|
|
550
|
+
return result.success
|
|
551
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetPrimaryKeys failed: unknown result")
|
|
552
|
+
|
|
553
|
+
def GetCrossReference(self, req):
|
|
554
|
+
"""
|
|
555
|
+
Parameters:
|
|
556
|
+
- req
|
|
557
|
+
"""
|
|
558
|
+
self.send_GetCrossReference(req)
|
|
559
|
+
return self.recv_GetCrossReference()
|
|
560
|
+
|
|
561
|
+
def send_GetCrossReference(self, req):
|
|
562
|
+
self._oprot.writeMessageBegin('GetCrossReference', TMessageType.CALL, self._seqid)
|
|
563
|
+
args = GetCrossReference_args()
|
|
564
|
+
args.req = req
|
|
565
|
+
args.write(self._oprot)
|
|
566
|
+
self._oprot.writeMessageEnd()
|
|
567
|
+
self._oprot.trans.flush()
|
|
568
|
+
|
|
569
|
+
def recv_GetCrossReference(self):
|
|
570
|
+
iprot = self._iprot
|
|
571
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
572
|
+
if mtype == TMessageType.EXCEPTION:
|
|
573
|
+
x = TApplicationException()
|
|
574
|
+
x.read(iprot)
|
|
575
|
+
iprot.readMessageEnd()
|
|
576
|
+
raise x
|
|
577
|
+
result = GetCrossReference_result()
|
|
578
|
+
result.read(iprot)
|
|
579
|
+
iprot.readMessageEnd()
|
|
580
|
+
if result.success is not None:
|
|
581
|
+
return result.success
|
|
582
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetCrossReference failed: unknown result")
|
|
583
|
+
|
|
584
|
+
def GetOperationStatus(self, req):
|
|
585
|
+
"""
|
|
586
|
+
Parameters:
|
|
587
|
+
- req
|
|
588
|
+
"""
|
|
589
|
+
self.send_GetOperationStatus(req)
|
|
590
|
+
return self.recv_GetOperationStatus()
|
|
591
|
+
|
|
592
|
+
def send_GetOperationStatus(self, req):
|
|
593
|
+
self._oprot.writeMessageBegin('GetOperationStatus', TMessageType.CALL, self._seqid)
|
|
594
|
+
args = GetOperationStatus_args()
|
|
595
|
+
args.req = req
|
|
596
|
+
args.write(self._oprot)
|
|
597
|
+
self._oprot.writeMessageEnd()
|
|
598
|
+
self._oprot.trans.flush()
|
|
599
|
+
|
|
600
|
+
def recv_GetOperationStatus(self):
|
|
601
|
+
iprot = self._iprot
|
|
602
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
603
|
+
if mtype == TMessageType.EXCEPTION:
|
|
604
|
+
x = TApplicationException()
|
|
605
|
+
x.read(iprot)
|
|
606
|
+
iprot.readMessageEnd()
|
|
607
|
+
raise x
|
|
608
|
+
result = GetOperationStatus_result()
|
|
609
|
+
result.read(iprot)
|
|
610
|
+
iprot.readMessageEnd()
|
|
611
|
+
if result.success is not None:
|
|
612
|
+
return result.success
|
|
613
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result")
|
|
614
|
+
|
|
615
|
+
def CancelOperation(self, req):
|
|
616
|
+
"""
|
|
617
|
+
Parameters:
|
|
618
|
+
- req
|
|
619
|
+
"""
|
|
620
|
+
self.send_CancelOperation(req)
|
|
621
|
+
return self.recv_CancelOperation()
|
|
622
|
+
|
|
623
|
+
def send_CancelOperation(self, req):
|
|
624
|
+
self._oprot.writeMessageBegin('CancelOperation', TMessageType.CALL, self._seqid)
|
|
625
|
+
args = CancelOperation_args()
|
|
626
|
+
args.req = req
|
|
627
|
+
args.write(self._oprot)
|
|
628
|
+
self._oprot.writeMessageEnd()
|
|
629
|
+
self._oprot.trans.flush()
|
|
630
|
+
|
|
631
|
+
def recv_CancelOperation(self):
|
|
632
|
+
iprot = self._iprot
|
|
633
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
634
|
+
if mtype == TMessageType.EXCEPTION:
|
|
635
|
+
x = TApplicationException()
|
|
636
|
+
x.read(iprot)
|
|
637
|
+
iprot.readMessageEnd()
|
|
638
|
+
raise x
|
|
639
|
+
result = CancelOperation_result()
|
|
640
|
+
result.read(iprot)
|
|
641
|
+
iprot.readMessageEnd()
|
|
642
|
+
if result.success is not None:
|
|
643
|
+
return result.success
|
|
644
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result")
|
|
645
|
+
|
|
646
|
+
def CloseOperation(self, req):
|
|
647
|
+
"""
|
|
648
|
+
Parameters:
|
|
649
|
+
- req
|
|
650
|
+
"""
|
|
651
|
+
self.send_CloseOperation(req)
|
|
652
|
+
return self.recv_CloseOperation()
|
|
653
|
+
|
|
654
|
+
def send_CloseOperation(self, req):
|
|
655
|
+
self._oprot.writeMessageBegin('CloseOperation', TMessageType.CALL, self._seqid)
|
|
656
|
+
args = CloseOperation_args()
|
|
657
|
+
args.req = req
|
|
658
|
+
args.write(self._oprot)
|
|
659
|
+
self._oprot.writeMessageEnd()
|
|
660
|
+
self._oprot.trans.flush()
|
|
661
|
+
|
|
662
|
+
def recv_CloseOperation(self):
|
|
663
|
+
iprot = self._iprot
|
|
664
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
665
|
+
if mtype == TMessageType.EXCEPTION:
|
|
666
|
+
x = TApplicationException()
|
|
667
|
+
x.read(iprot)
|
|
668
|
+
iprot.readMessageEnd()
|
|
669
|
+
raise x
|
|
670
|
+
result = CloseOperation_result()
|
|
671
|
+
result.read(iprot)
|
|
672
|
+
iprot.readMessageEnd()
|
|
673
|
+
if result.success is not None:
|
|
674
|
+
return result.success
|
|
675
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result")
|
|
676
|
+
|
|
677
|
+
def GetResultSetMetadata(self, req):
|
|
678
|
+
"""
|
|
679
|
+
Parameters:
|
|
680
|
+
- req
|
|
681
|
+
"""
|
|
682
|
+
self.send_GetResultSetMetadata(req)
|
|
683
|
+
return self.recv_GetResultSetMetadata()
|
|
684
|
+
|
|
685
|
+
def send_GetResultSetMetadata(self, req):
|
|
686
|
+
self._oprot.writeMessageBegin('GetResultSetMetadata', TMessageType.CALL, self._seqid)
|
|
687
|
+
args = GetResultSetMetadata_args()
|
|
688
|
+
args.req = req
|
|
689
|
+
args.write(self._oprot)
|
|
690
|
+
self._oprot.writeMessageEnd()
|
|
691
|
+
self._oprot.trans.flush()
|
|
692
|
+
|
|
693
|
+
def recv_GetResultSetMetadata(self):
|
|
694
|
+
iprot = self._iprot
|
|
695
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
696
|
+
if mtype == TMessageType.EXCEPTION:
|
|
697
|
+
x = TApplicationException()
|
|
698
|
+
x.read(iprot)
|
|
699
|
+
iprot.readMessageEnd()
|
|
700
|
+
raise x
|
|
701
|
+
result = GetResultSetMetadata_result()
|
|
702
|
+
result.read(iprot)
|
|
703
|
+
iprot.readMessageEnd()
|
|
704
|
+
if result.success is not None:
|
|
705
|
+
return result.success
|
|
706
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result")
|
|
707
|
+
|
|
708
|
+
def FetchResults(self, req):
|
|
709
|
+
"""
|
|
710
|
+
Parameters:
|
|
711
|
+
- req
|
|
712
|
+
"""
|
|
713
|
+
self.send_FetchResults(req)
|
|
714
|
+
return self.recv_FetchResults()
|
|
715
|
+
|
|
716
|
+
def send_FetchResults(self, req):
|
|
717
|
+
self._oprot.writeMessageBegin('FetchResults', TMessageType.CALL, self._seqid)
|
|
718
|
+
args = FetchResults_args()
|
|
719
|
+
args.req = req
|
|
720
|
+
args.write(self._oprot)
|
|
721
|
+
self._oprot.writeMessageEnd()
|
|
722
|
+
self._oprot.trans.flush()
|
|
723
|
+
|
|
724
|
+
def recv_FetchResults(self):
|
|
725
|
+
iprot = self._iprot
|
|
726
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
727
|
+
if mtype == TMessageType.EXCEPTION:
|
|
728
|
+
x = TApplicationException()
|
|
729
|
+
x.read(iprot)
|
|
730
|
+
iprot.readMessageEnd()
|
|
731
|
+
raise x
|
|
732
|
+
result = FetchResults_result()
|
|
733
|
+
result.read(iprot)
|
|
734
|
+
iprot.readMessageEnd()
|
|
735
|
+
if result.success is not None:
|
|
736
|
+
return result.success
|
|
737
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result")
|
|
738
|
+
|
|
739
|
+
def GetDelegationToken(self, req):
|
|
740
|
+
"""
|
|
741
|
+
Parameters:
|
|
742
|
+
- req
|
|
743
|
+
"""
|
|
744
|
+
self.send_GetDelegationToken(req)
|
|
745
|
+
return self.recv_GetDelegationToken()
|
|
746
|
+
|
|
747
|
+
def send_GetDelegationToken(self, req):
|
|
748
|
+
self._oprot.writeMessageBegin('GetDelegationToken', TMessageType.CALL, self._seqid)
|
|
749
|
+
args = GetDelegationToken_args()
|
|
750
|
+
args.req = req
|
|
751
|
+
args.write(self._oprot)
|
|
752
|
+
self._oprot.writeMessageEnd()
|
|
753
|
+
self._oprot.trans.flush()
|
|
754
|
+
|
|
755
|
+
def recv_GetDelegationToken(self):
|
|
756
|
+
iprot = self._iprot
|
|
757
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
758
|
+
if mtype == TMessageType.EXCEPTION:
|
|
759
|
+
x = TApplicationException()
|
|
760
|
+
x.read(iprot)
|
|
761
|
+
iprot.readMessageEnd()
|
|
762
|
+
raise x
|
|
763
|
+
result = GetDelegationToken_result()
|
|
764
|
+
result.read(iprot)
|
|
765
|
+
iprot.readMessageEnd()
|
|
766
|
+
if result.success is not None:
|
|
767
|
+
return result.success
|
|
768
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result")
|
|
769
|
+
|
|
770
|
+
def CancelDelegationToken(self, req):
|
|
771
|
+
"""
|
|
772
|
+
Parameters:
|
|
773
|
+
- req
|
|
774
|
+
"""
|
|
775
|
+
self.send_CancelDelegationToken(req)
|
|
776
|
+
return self.recv_CancelDelegationToken()
|
|
777
|
+
|
|
778
|
+
def send_CancelDelegationToken(self, req):
|
|
779
|
+
self._oprot.writeMessageBegin('CancelDelegationToken', TMessageType.CALL, self._seqid)
|
|
780
|
+
args = CancelDelegationToken_args()
|
|
781
|
+
args.req = req
|
|
782
|
+
args.write(self._oprot)
|
|
783
|
+
self._oprot.writeMessageEnd()
|
|
784
|
+
self._oprot.trans.flush()
|
|
785
|
+
|
|
786
|
+
def recv_CancelDelegationToken(self):
|
|
787
|
+
iprot = self._iprot
|
|
788
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
789
|
+
if mtype == TMessageType.EXCEPTION:
|
|
790
|
+
x = TApplicationException()
|
|
791
|
+
x.read(iprot)
|
|
792
|
+
iprot.readMessageEnd()
|
|
793
|
+
raise x
|
|
794
|
+
result = CancelDelegationToken_result()
|
|
795
|
+
result.read(iprot)
|
|
796
|
+
iprot.readMessageEnd()
|
|
797
|
+
if result.success is not None:
|
|
798
|
+
return result.success
|
|
799
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result")
|
|
800
|
+
|
|
801
|
+
def RenewDelegationToken(self, req):
|
|
802
|
+
"""
|
|
803
|
+
Parameters:
|
|
804
|
+
- req
|
|
805
|
+
"""
|
|
806
|
+
self.send_RenewDelegationToken(req)
|
|
807
|
+
return self.recv_RenewDelegationToken()
|
|
808
|
+
|
|
809
|
+
def send_RenewDelegationToken(self, req):
|
|
810
|
+
self._oprot.writeMessageBegin('RenewDelegationToken', TMessageType.CALL, self._seqid)
|
|
811
|
+
args = RenewDelegationToken_args()
|
|
812
|
+
args.req = req
|
|
813
|
+
args.write(self._oprot)
|
|
814
|
+
self._oprot.writeMessageEnd()
|
|
815
|
+
self._oprot.trans.flush()
|
|
816
|
+
|
|
817
|
+
def recv_RenewDelegationToken(self):
|
|
818
|
+
iprot = self._iprot
|
|
819
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
820
|
+
if mtype == TMessageType.EXCEPTION:
|
|
821
|
+
x = TApplicationException()
|
|
822
|
+
x.read(iprot)
|
|
823
|
+
iprot.readMessageEnd()
|
|
824
|
+
raise x
|
|
825
|
+
result = RenewDelegationToken_result()
|
|
826
|
+
result.read(iprot)
|
|
827
|
+
iprot.readMessageEnd()
|
|
828
|
+
if result.success is not None:
|
|
829
|
+
return result.success
|
|
830
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result")
|
|
831
|
+
|
|
832
|
+
def GetLog(self, req):
|
|
833
|
+
"""
|
|
834
|
+
Parameters:
|
|
835
|
+
- req
|
|
836
|
+
"""
|
|
837
|
+
self.send_GetLog(req)
|
|
838
|
+
return self.recv_GetLog()
|
|
839
|
+
|
|
840
|
+
def send_GetLog(self, req):
|
|
841
|
+
self._oprot.writeMessageBegin('GetLog', TMessageType.CALL, self._seqid)
|
|
842
|
+
args = GetLog_args()
|
|
843
|
+
args.req = req
|
|
844
|
+
args.write(self._oprot)
|
|
845
|
+
self._oprot.writeMessageEnd()
|
|
846
|
+
self._oprot.trans.flush()
|
|
847
|
+
|
|
848
|
+
def recv_GetLog(self):
|
|
849
|
+
iprot = self._iprot
|
|
850
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
851
|
+
if mtype == TMessageType.EXCEPTION:
|
|
852
|
+
x = TApplicationException()
|
|
853
|
+
x.read(iprot)
|
|
854
|
+
iprot.readMessageEnd()
|
|
855
|
+
raise x
|
|
856
|
+
result = GetLog_result()
|
|
857
|
+
result.read(iprot)
|
|
858
|
+
iprot.readMessageEnd()
|
|
859
|
+
if result.success is not None:
|
|
860
|
+
return result.success
|
|
861
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "GetLog failed: unknown result")
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
class Processor(Iface, TProcessor):
|
|
865
|
+
def __init__(self, handler):
|
|
866
|
+
self._handler = handler
|
|
867
|
+
self._processMap = {}
|
|
868
|
+
self._processMap["OpenSession"] = Processor.process_OpenSession
|
|
869
|
+
self._processMap["CloseSession"] = Processor.process_CloseSession
|
|
870
|
+
self._processMap["GetInfo"] = Processor.process_GetInfo
|
|
871
|
+
self._processMap["ExecuteStatement"] = Processor.process_ExecuteStatement
|
|
872
|
+
self._processMap["GetTypeInfo"] = Processor.process_GetTypeInfo
|
|
873
|
+
self._processMap["GetCatalogs"] = Processor.process_GetCatalogs
|
|
874
|
+
self._processMap["GetSchemas"] = Processor.process_GetSchemas
|
|
875
|
+
self._processMap["GetTables"] = Processor.process_GetTables
|
|
876
|
+
self._processMap["GetTableTypes"] = Processor.process_GetTableTypes
|
|
877
|
+
self._processMap["GetColumns"] = Processor.process_GetColumns
|
|
878
|
+
self._processMap["GetFunctions"] = Processor.process_GetFunctions
|
|
879
|
+
self._processMap["GetPrimaryKeys"] = Processor.process_GetPrimaryKeys
|
|
880
|
+
self._processMap["GetCrossReference"] = Processor.process_GetCrossReference
|
|
881
|
+
self._processMap["GetOperationStatus"] = Processor.process_GetOperationStatus
|
|
882
|
+
self._processMap["CancelOperation"] = Processor.process_CancelOperation
|
|
883
|
+
self._processMap["CloseOperation"] = Processor.process_CloseOperation
|
|
884
|
+
self._processMap["GetResultSetMetadata"] = Processor.process_GetResultSetMetadata
|
|
885
|
+
self._processMap["FetchResults"] = Processor.process_FetchResults
|
|
886
|
+
self._processMap["GetDelegationToken"] = Processor.process_GetDelegationToken
|
|
887
|
+
self._processMap["CancelDelegationToken"] = Processor.process_CancelDelegationToken
|
|
888
|
+
self._processMap["RenewDelegationToken"] = Processor.process_RenewDelegationToken
|
|
889
|
+
self._processMap["GetLog"] = Processor.process_GetLog
|
|
890
|
+
|
|
891
|
+
def process(self, iprot, oprot):
|
|
892
|
+
(name, type, seqid) = iprot.readMessageBegin()
|
|
893
|
+
if name not in self._processMap:
|
|
894
|
+
iprot.skip(TType.STRUCT)
|
|
895
|
+
iprot.readMessageEnd()
|
|
896
|
+
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
897
|
+
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
898
|
+
x.write(oprot)
|
|
899
|
+
oprot.writeMessageEnd()
|
|
900
|
+
oprot.trans.flush()
|
|
901
|
+
return
|
|
902
|
+
else:
|
|
903
|
+
self._processMap[name](self, seqid, iprot, oprot)
|
|
904
|
+
return True
|
|
905
|
+
|
|
906
|
+
def process_OpenSession(self, seqid, iprot, oprot):
|
|
907
|
+
args = OpenSession_args()
|
|
908
|
+
args.read(iprot)
|
|
909
|
+
iprot.readMessageEnd()
|
|
910
|
+
result = OpenSession_result()
|
|
911
|
+
try:
|
|
912
|
+
result.success = self._handler.OpenSession(args.req)
|
|
913
|
+
msg_type = TMessageType.REPLY
|
|
914
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
915
|
+
raise
|
|
916
|
+
except Exception as ex:
|
|
917
|
+
msg_type = TMessageType.EXCEPTION
|
|
918
|
+
logging.exception(ex)
|
|
919
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
920
|
+
oprot.writeMessageBegin("OpenSession", msg_type, seqid)
|
|
921
|
+
result.write(oprot)
|
|
922
|
+
oprot.writeMessageEnd()
|
|
923
|
+
oprot.trans.flush()
|
|
924
|
+
|
|
925
|
+
def process_CloseSession(self, seqid, iprot, oprot):
|
|
926
|
+
args = CloseSession_args()
|
|
927
|
+
args.read(iprot)
|
|
928
|
+
iprot.readMessageEnd()
|
|
929
|
+
result = CloseSession_result()
|
|
930
|
+
try:
|
|
931
|
+
result.success = self._handler.CloseSession(args.req)
|
|
932
|
+
msg_type = TMessageType.REPLY
|
|
933
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
934
|
+
raise
|
|
935
|
+
except Exception as ex:
|
|
936
|
+
msg_type = TMessageType.EXCEPTION
|
|
937
|
+
logging.exception(ex)
|
|
938
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
939
|
+
oprot.writeMessageBegin("CloseSession", msg_type, seqid)
|
|
940
|
+
result.write(oprot)
|
|
941
|
+
oprot.writeMessageEnd()
|
|
942
|
+
oprot.trans.flush()
|
|
943
|
+
|
|
944
|
+
def process_GetInfo(self, seqid, iprot, oprot):
|
|
945
|
+
args = GetInfo_args()
|
|
946
|
+
args.read(iprot)
|
|
947
|
+
iprot.readMessageEnd()
|
|
948
|
+
result = GetInfo_result()
|
|
949
|
+
try:
|
|
950
|
+
result.success = self._handler.GetInfo(args.req)
|
|
951
|
+
msg_type = TMessageType.REPLY
|
|
952
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
953
|
+
raise
|
|
954
|
+
except Exception as ex:
|
|
955
|
+
msg_type = TMessageType.EXCEPTION
|
|
956
|
+
logging.exception(ex)
|
|
957
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
958
|
+
oprot.writeMessageBegin("GetInfo", msg_type, seqid)
|
|
959
|
+
result.write(oprot)
|
|
960
|
+
oprot.writeMessageEnd()
|
|
961
|
+
oprot.trans.flush()
|
|
962
|
+
|
|
963
|
+
def process_ExecuteStatement(self, seqid, iprot, oprot):
|
|
964
|
+
args = ExecuteStatement_args()
|
|
965
|
+
args.read(iprot)
|
|
966
|
+
iprot.readMessageEnd()
|
|
967
|
+
result = ExecuteStatement_result()
|
|
968
|
+
try:
|
|
969
|
+
result.success = self._handler.ExecuteStatement(args.req)
|
|
970
|
+
msg_type = TMessageType.REPLY
|
|
971
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
972
|
+
raise
|
|
973
|
+
except Exception as ex:
|
|
974
|
+
msg_type = TMessageType.EXCEPTION
|
|
975
|
+
logging.exception(ex)
|
|
976
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
977
|
+
oprot.writeMessageBegin("ExecuteStatement", msg_type, seqid)
|
|
978
|
+
result.write(oprot)
|
|
979
|
+
oprot.writeMessageEnd()
|
|
980
|
+
oprot.trans.flush()
|
|
981
|
+
|
|
982
|
+
def process_GetTypeInfo(self, seqid, iprot, oprot):
|
|
983
|
+
args = GetTypeInfo_args()
|
|
984
|
+
args.read(iprot)
|
|
985
|
+
iprot.readMessageEnd()
|
|
986
|
+
result = GetTypeInfo_result()
|
|
987
|
+
try:
|
|
988
|
+
result.success = self._handler.GetTypeInfo(args.req)
|
|
989
|
+
msg_type = TMessageType.REPLY
|
|
990
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
991
|
+
raise
|
|
992
|
+
except Exception as ex:
|
|
993
|
+
msg_type = TMessageType.EXCEPTION
|
|
994
|
+
logging.exception(ex)
|
|
995
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
996
|
+
oprot.writeMessageBegin("GetTypeInfo", msg_type, seqid)
|
|
997
|
+
result.write(oprot)
|
|
998
|
+
oprot.writeMessageEnd()
|
|
999
|
+
oprot.trans.flush()
|
|
1000
|
+
|
|
1001
|
+
def process_GetCatalogs(self, seqid, iprot, oprot):
|
|
1002
|
+
args = GetCatalogs_args()
|
|
1003
|
+
args.read(iprot)
|
|
1004
|
+
iprot.readMessageEnd()
|
|
1005
|
+
result = GetCatalogs_result()
|
|
1006
|
+
try:
|
|
1007
|
+
result.success = self._handler.GetCatalogs(args.req)
|
|
1008
|
+
msg_type = TMessageType.REPLY
|
|
1009
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1010
|
+
raise
|
|
1011
|
+
except Exception as ex:
|
|
1012
|
+
msg_type = TMessageType.EXCEPTION
|
|
1013
|
+
logging.exception(ex)
|
|
1014
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1015
|
+
oprot.writeMessageBegin("GetCatalogs", msg_type, seqid)
|
|
1016
|
+
result.write(oprot)
|
|
1017
|
+
oprot.writeMessageEnd()
|
|
1018
|
+
oprot.trans.flush()
|
|
1019
|
+
|
|
1020
|
+
def process_GetSchemas(self, seqid, iprot, oprot):
|
|
1021
|
+
args = GetSchemas_args()
|
|
1022
|
+
args.read(iprot)
|
|
1023
|
+
iprot.readMessageEnd()
|
|
1024
|
+
result = GetSchemas_result()
|
|
1025
|
+
try:
|
|
1026
|
+
result.success = self._handler.GetSchemas(args.req)
|
|
1027
|
+
msg_type = TMessageType.REPLY
|
|
1028
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1029
|
+
raise
|
|
1030
|
+
except Exception as ex:
|
|
1031
|
+
msg_type = TMessageType.EXCEPTION
|
|
1032
|
+
logging.exception(ex)
|
|
1033
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1034
|
+
oprot.writeMessageBegin("GetSchemas", msg_type, seqid)
|
|
1035
|
+
result.write(oprot)
|
|
1036
|
+
oprot.writeMessageEnd()
|
|
1037
|
+
oprot.trans.flush()
|
|
1038
|
+
|
|
1039
|
+
def process_GetTables(self, seqid, iprot, oprot):
|
|
1040
|
+
args = GetTables_args()
|
|
1041
|
+
args.read(iprot)
|
|
1042
|
+
iprot.readMessageEnd()
|
|
1043
|
+
result = GetTables_result()
|
|
1044
|
+
try:
|
|
1045
|
+
result.success = self._handler.GetTables(args.req)
|
|
1046
|
+
msg_type = TMessageType.REPLY
|
|
1047
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1048
|
+
raise
|
|
1049
|
+
except Exception as ex:
|
|
1050
|
+
msg_type = TMessageType.EXCEPTION
|
|
1051
|
+
logging.exception(ex)
|
|
1052
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1053
|
+
oprot.writeMessageBegin("GetTables", msg_type, seqid)
|
|
1054
|
+
result.write(oprot)
|
|
1055
|
+
oprot.writeMessageEnd()
|
|
1056
|
+
oprot.trans.flush()
|
|
1057
|
+
|
|
1058
|
+
def process_GetTableTypes(self, seqid, iprot, oprot):
|
|
1059
|
+
args = GetTableTypes_args()
|
|
1060
|
+
args.read(iprot)
|
|
1061
|
+
iprot.readMessageEnd()
|
|
1062
|
+
result = GetTableTypes_result()
|
|
1063
|
+
try:
|
|
1064
|
+
result.success = self._handler.GetTableTypes(args.req)
|
|
1065
|
+
msg_type = TMessageType.REPLY
|
|
1066
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1067
|
+
raise
|
|
1068
|
+
except Exception as ex:
|
|
1069
|
+
msg_type = TMessageType.EXCEPTION
|
|
1070
|
+
logging.exception(ex)
|
|
1071
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1072
|
+
oprot.writeMessageBegin("GetTableTypes", msg_type, seqid)
|
|
1073
|
+
result.write(oprot)
|
|
1074
|
+
oprot.writeMessageEnd()
|
|
1075
|
+
oprot.trans.flush()
|
|
1076
|
+
|
|
1077
|
+
def process_GetColumns(self, seqid, iprot, oprot):
|
|
1078
|
+
args = GetColumns_args()
|
|
1079
|
+
args.read(iprot)
|
|
1080
|
+
iprot.readMessageEnd()
|
|
1081
|
+
result = GetColumns_result()
|
|
1082
|
+
try:
|
|
1083
|
+
result.success = self._handler.GetColumns(args.req)
|
|
1084
|
+
msg_type = TMessageType.REPLY
|
|
1085
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1086
|
+
raise
|
|
1087
|
+
except Exception as ex:
|
|
1088
|
+
msg_type = TMessageType.EXCEPTION
|
|
1089
|
+
logging.exception(ex)
|
|
1090
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1091
|
+
oprot.writeMessageBegin("GetColumns", msg_type, seqid)
|
|
1092
|
+
result.write(oprot)
|
|
1093
|
+
oprot.writeMessageEnd()
|
|
1094
|
+
oprot.trans.flush()
|
|
1095
|
+
|
|
1096
|
+
def process_GetFunctions(self, seqid, iprot, oprot):
|
|
1097
|
+
args = GetFunctions_args()
|
|
1098
|
+
args.read(iprot)
|
|
1099
|
+
iprot.readMessageEnd()
|
|
1100
|
+
result = GetFunctions_result()
|
|
1101
|
+
try:
|
|
1102
|
+
result.success = self._handler.GetFunctions(args.req)
|
|
1103
|
+
msg_type = TMessageType.REPLY
|
|
1104
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1105
|
+
raise
|
|
1106
|
+
except Exception as ex:
|
|
1107
|
+
msg_type = TMessageType.EXCEPTION
|
|
1108
|
+
logging.exception(ex)
|
|
1109
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1110
|
+
oprot.writeMessageBegin("GetFunctions", msg_type, seqid)
|
|
1111
|
+
result.write(oprot)
|
|
1112
|
+
oprot.writeMessageEnd()
|
|
1113
|
+
oprot.trans.flush()
|
|
1114
|
+
|
|
1115
|
+
def process_GetPrimaryKeys(self, seqid, iprot, oprot):
|
|
1116
|
+
args = GetPrimaryKeys_args()
|
|
1117
|
+
args.read(iprot)
|
|
1118
|
+
iprot.readMessageEnd()
|
|
1119
|
+
result = GetPrimaryKeys_result()
|
|
1120
|
+
try:
|
|
1121
|
+
result.success = self._handler.GetPrimaryKeys(args.req)
|
|
1122
|
+
msg_type = TMessageType.REPLY
|
|
1123
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1124
|
+
raise
|
|
1125
|
+
except Exception as ex:
|
|
1126
|
+
msg_type = TMessageType.EXCEPTION
|
|
1127
|
+
logging.exception(ex)
|
|
1128
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1129
|
+
oprot.writeMessageBegin("GetPrimaryKeys", msg_type, seqid)
|
|
1130
|
+
result.write(oprot)
|
|
1131
|
+
oprot.writeMessageEnd()
|
|
1132
|
+
oprot.trans.flush()
|
|
1133
|
+
|
|
1134
|
+
def process_GetCrossReference(self, seqid, iprot, oprot):
|
|
1135
|
+
args = GetCrossReference_args()
|
|
1136
|
+
args.read(iprot)
|
|
1137
|
+
iprot.readMessageEnd()
|
|
1138
|
+
result = GetCrossReference_result()
|
|
1139
|
+
try:
|
|
1140
|
+
result.success = self._handler.GetCrossReference(args.req)
|
|
1141
|
+
msg_type = TMessageType.REPLY
|
|
1142
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1143
|
+
raise
|
|
1144
|
+
except Exception as ex:
|
|
1145
|
+
msg_type = TMessageType.EXCEPTION
|
|
1146
|
+
logging.exception(ex)
|
|
1147
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1148
|
+
oprot.writeMessageBegin("GetCrossReference", msg_type, seqid)
|
|
1149
|
+
result.write(oprot)
|
|
1150
|
+
oprot.writeMessageEnd()
|
|
1151
|
+
oprot.trans.flush()
|
|
1152
|
+
|
|
1153
|
+
def process_GetOperationStatus(self, seqid, iprot, oprot):
|
|
1154
|
+
args = GetOperationStatus_args()
|
|
1155
|
+
args.read(iprot)
|
|
1156
|
+
iprot.readMessageEnd()
|
|
1157
|
+
result = GetOperationStatus_result()
|
|
1158
|
+
try:
|
|
1159
|
+
result.success = self._handler.GetOperationStatus(args.req)
|
|
1160
|
+
msg_type = TMessageType.REPLY
|
|
1161
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1162
|
+
raise
|
|
1163
|
+
except Exception as ex:
|
|
1164
|
+
msg_type = TMessageType.EXCEPTION
|
|
1165
|
+
logging.exception(ex)
|
|
1166
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1167
|
+
oprot.writeMessageBegin("GetOperationStatus", msg_type, seqid)
|
|
1168
|
+
result.write(oprot)
|
|
1169
|
+
oprot.writeMessageEnd()
|
|
1170
|
+
oprot.trans.flush()
|
|
1171
|
+
|
|
1172
|
+
def process_CancelOperation(self, seqid, iprot, oprot):
|
|
1173
|
+
args = CancelOperation_args()
|
|
1174
|
+
args.read(iprot)
|
|
1175
|
+
iprot.readMessageEnd()
|
|
1176
|
+
result = CancelOperation_result()
|
|
1177
|
+
try:
|
|
1178
|
+
result.success = self._handler.CancelOperation(args.req)
|
|
1179
|
+
msg_type = TMessageType.REPLY
|
|
1180
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1181
|
+
raise
|
|
1182
|
+
except Exception as ex:
|
|
1183
|
+
msg_type = TMessageType.EXCEPTION
|
|
1184
|
+
logging.exception(ex)
|
|
1185
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1186
|
+
oprot.writeMessageBegin("CancelOperation", msg_type, seqid)
|
|
1187
|
+
result.write(oprot)
|
|
1188
|
+
oprot.writeMessageEnd()
|
|
1189
|
+
oprot.trans.flush()
|
|
1190
|
+
|
|
1191
|
+
def process_CloseOperation(self, seqid, iprot, oprot):
|
|
1192
|
+
args = CloseOperation_args()
|
|
1193
|
+
args.read(iprot)
|
|
1194
|
+
iprot.readMessageEnd()
|
|
1195
|
+
result = CloseOperation_result()
|
|
1196
|
+
try:
|
|
1197
|
+
result.success = self._handler.CloseOperation(args.req)
|
|
1198
|
+
msg_type = TMessageType.REPLY
|
|
1199
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1200
|
+
raise
|
|
1201
|
+
except Exception as ex:
|
|
1202
|
+
msg_type = TMessageType.EXCEPTION
|
|
1203
|
+
logging.exception(ex)
|
|
1204
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1205
|
+
oprot.writeMessageBegin("CloseOperation", msg_type, seqid)
|
|
1206
|
+
result.write(oprot)
|
|
1207
|
+
oprot.writeMessageEnd()
|
|
1208
|
+
oprot.trans.flush()
|
|
1209
|
+
|
|
1210
|
+
def process_GetResultSetMetadata(self, seqid, iprot, oprot):
|
|
1211
|
+
args = GetResultSetMetadata_args()
|
|
1212
|
+
args.read(iprot)
|
|
1213
|
+
iprot.readMessageEnd()
|
|
1214
|
+
result = GetResultSetMetadata_result()
|
|
1215
|
+
try:
|
|
1216
|
+
result.success = self._handler.GetResultSetMetadata(args.req)
|
|
1217
|
+
msg_type = TMessageType.REPLY
|
|
1218
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1219
|
+
raise
|
|
1220
|
+
except Exception as ex:
|
|
1221
|
+
msg_type = TMessageType.EXCEPTION
|
|
1222
|
+
logging.exception(ex)
|
|
1223
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1224
|
+
oprot.writeMessageBegin("GetResultSetMetadata", msg_type, seqid)
|
|
1225
|
+
result.write(oprot)
|
|
1226
|
+
oprot.writeMessageEnd()
|
|
1227
|
+
oprot.trans.flush()
|
|
1228
|
+
|
|
1229
|
+
def process_FetchResults(self, seqid, iprot, oprot):
|
|
1230
|
+
args = FetchResults_args()
|
|
1231
|
+
args.read(iprot)
|
|
1232
|
+
iprot.readMessageEnd()
|
|
1233
|
+
result = FetchResults_result()
|
|
1234
|
+
try:
|
|
1235
|
+
result.success = self._handler.FetchResults(args.req)
|
|
1236
|
+
msg_type = TMessageType.REPLY
|
|
1237
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1238
|
+
raise
|
|
1239
|
+
except Exception as ex:
|
|
1240
|
+
msg_type = TMessageType.EXCEPTION
|
|
1241
|
+
logging.exception(ex)
|
|
1242
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1243
|
+
oprot.writeMessageBegin("FetchResults", msg_type, seqid)
|
|
1244
|
+
result.write(oprot)
|
|
1245
|
+
oprot.writeMessageEnd()
|
|
1246
|
+
oprot.trans.flush()
|
|
1247
|
+
|
|
1248
|
+
def process_GetDelegationToken(self, seqid, iprot, oprot):
|
|
1249
|
+
args = GetDelegationToken_args()
|
|
1250
|
+
args.read(iprot)
|
|
1251
|
+
iprot.readMessageEnd()
|
|
1252
|
+
result = GetDelegationToken_result()
|
|
1253
|
+
try:
|
|
1254
|
+
result.success = self._handler.GetDelegationToken(args.req)
|
|
1255
|
+
msg_type = TMessageType.REPLY
|
|
1256
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1257
|
+
raise
|
|
1258
|
+
except Exception as ex:
|
|
1259
|
+
msg_type = TMessageType.EXCEPTION
|
|
1260
|
+
logging.exception(ex)
|
|
1261
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1262
|
+
oprot.writeMessageBegin("GetDelegationToken", msg_type, seqid)
|
|
1263
|
+
result.write(oprot)
|
|
1264
|
+
oprot.writeMessageEnd()
|
|
1265
|
+
oprot.trans.flush()
|
|
1266
|
+
|
|
1267
|
+
def process_CancelDelegationToken(self, seqid, iprot, oprot):
|
|
1268
|
+
args = CancelDelegationToken_args()
|
|
1269
|
+
args.read(iprot)
|
|
1270
|
+
iprot.readMessageEnd()
|
|
1271
|
+
result = CancelDelegationToken_result()
|
|
1272
|
+
try:
|
|
1273
|
+
result.success = self._handler.CancelDelegationToken(args.req)
|
|
1274
|
+
msg_type = TMessageType.REPLY
|
|
1275
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1276
|
+
raise
|
|
1277
|
+
except Exception as ex:
|
|
1278
|
+
msg_type = TMessageType.EXCEPTION
|
|
1279
|
+
logging.exception(ex)
|
|
1280
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1281
|
+
oprot.writeMessageBegin("CancelDelegationToken", msg_type, seqid)
|
|
1282
|
+
result.write(oprot)
|
|
1283
|
+
oprot.writeMessageEnd()
|
|
1284
|
+
oprot.trans.flush()
|
|
1285
|
+
|
|
1286
|
+
def process_RenewDelegationToken(self, seqid, iprot, oprot):
|
|
1287
|
+
args = RenewDelegationToken_args()
|
|
1288
|
+
args.read(iprot)
|
|
1289
|
+
iprot.readMessageEnd()
|
|
1290
|
+
result = RenewDelegationToken_result()
|
|
1291
|
+
try:
|
|
1292
|
+
result.success = self._handler.RenewDelegationToken(args.req)
|
|
1293
|
+
msg_type = TMessageType.REPLY
|
|
1294
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1295
|
+
raise
|
|
1296
|
+
except Exception as ex:
|
|
1297
|
+
msg_type = TMessageType.EXCEPTION
|
|
1298
|
+
logging.exception(ex)
|
|
1299
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1300
|
+
oprot.writeMessageBegin("RenewDelegationToken", msg_type, seqid)
|
|
1301
|
+
result.write(oprot)
|
|
1302
|
+
oprot.writeMessageEnd()
|
|
1303
|
+
oprot.trans.flush()
|
|
1304
|
+
|
|
1305
|
+
def process_GetLog(self, seqid, iprot, oprot):
|
|
1306
|
+
args = GetLog_args()
|
|
1307
|
+
args.read(iprot)
|
|
1308
|
+
iprot.readMessageEnd()
|
|
1309
|
+
result = GetLog_result()
|
|
1310
|
+
try:
|
|
1311
|
+
result.success = self._handler.GetLog(args.req)
|
|
1312
|
+
msg_type = TMessageType.REPLY
|
|
1313
|
+
except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
|
|
1314
|
+
raise
|
|
1315
|
+
except Exception as ex:
|
|
1316
|
+
msg_type = TMessageType.EXCEPTION
|
|
1317
|
+
logging.exception(ex)
|
|
1318
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
1319
|
+
oprot.writeMessageBegin("GetLog", msg_type, seqid)
|
|
1320
|
+
result.write(oprot)
|
|
1321
|
+
oprot.writeMessageEnd()
|
|
1322
|
+
oprot.trans.flush()
|
|
1323
|
+
|
|
1324
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
class OpenSession_args(object):
|
|
1328
|
+
"""
|
|
1329
|
+
Attributes:
|
|
1330
|
+
- req
|
|
1331
|
+
"""
|
|
1332
|
+
|
|
1333
|
+
thrift_spec = (
|
|
1334
|
+
None, # 0
|
|
1335
|
+
(1, TType.STRUCT, 'req', (TOpenSessionReq, TOpenSessionReq.thrift_spec), None, ), # 1
|
|
1336
|
+
)
|
|
1337
|
+
|
|
1338
|
+
def __init__(self, req=None,):
|
|
1339
|
+
self.req = req
|
|
1340
|
+
|
|
1341
|
+
def read(self, iprot):
|
|
1342
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1343
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1344
|
+
return
|
|
1345
|
+
iprot.readStructBegin()
|
|
1346
|
+
while True:
|
|
1347
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1348
|
+
if ftype == TType.STOP:
|
|
1349
|
+
break
|
|
1350
|
+
if fid == 1:
|
|
1351
|
+
if ftype == TType.STRUCT:
|
|
1352
|
+
self.req = TOpenSessionReq()
|
|
1353
|
+
self.req.read(iprot)
|
|
1354
|
+
else:
|
|
1355
|
+
iprot.skip(ftype)
|
|
1356
|
+
else:
|
|
1357
|
+
iprot.skip(ftype)
|
|
1358
|
+
iprot.readFieldEnd()
|
|
1359
|
+
iprot.readStructEnd()
|
|
1360
|
+
|
|
1361
|
+
def write(self, oprot):
|
|
1362
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1363
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1364
|
+
return
|
|
1365
|
+
oprot.writeStructBegin('OpenSession_args')
|
|
1366
|
+
if self.req is not None:
|
|
1367
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
1368
|
+
self.req.write(oprot)
|
|
1369
|
+
oprot.writeFieldEnd()
|
|
1370
|
+
oprot.writeFieldStop()
|
|
1371
|
+
oprot.writeStructEnd()
|
|
1372
|
+
|
|
1373
|
+
def validate(self):
|
|
1374
|
+
return
|
|
1375
|
+
|
|
1376
|
+
def __repr__(self):
|
|
1377
|
+
L = ['%s=%r' % (key, value)
|
|
1378
|
+
for key, value in self.__dict__.items()]
|
|
1379
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1380
|
+
|
|
1381
|
+
def __eq__(self, other):
|
|
1382
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1383
|
+
|
|
1384
|
+
def __ne__(self, other):
|
|
1385
|
+
return not (self == other)
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
class OpenSession_result(object):
|
|
1389
|
+
"""
|
|
1390
|
+
Attributes:
|
|
1391
|
+
- success
|
|
1392
|
+
"""
|
|
1393
|
+
|
|
1394
|
+
thrift_spec = (
|
|
1395
|
+
(0, TType.STRUCT, 'success', (TOpenSessionResp, TOpenSessionResp.thrift_spec), None, ), # 0
|
|
1396
|
+
)
|
|
1397
|
+
|
|
1398
|
+
def __init__(self, success=None,):
|
|
1399
|
+
self.success = success
|
|
1400
|
+
|
|
1401
|
+
def read(self, iprot):
|
|
1402
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1403
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1404
|
+
return
|
|
1405
|
+
iprot.readStructBegin()
|
|
1406
|
+
while True:
|
|
1407
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1408
|
+
if ftype == TType.STOP:
|
|
1409
|
+
break
|
|
1410
|
+
if fid == 0:
|
|
1411
|
+
if ftype == TType.STRUCT:
|
|
1412
|
+
self.success = TOpenSessionResp()
|
|
1413
|
+
self.success.read(iprot)
|
|
1414
|
+
else:
|
|
1415
|
+
iprot.skip(ftype)
|
|
1416
|
+
else:
|
|
1417
|
+
iprot.skip(ftype)
|
|
1418
|
+
iprot.readFieldEnd()
|
|
1419
|
+
iprot.readStructEnd()
|
|
1420
|
+
|
|
1421
|
+
def write(self, oprot):
|
|
1422
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1423
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1424
|
+
return
|
|
1425
|
+
oprot.writeStructBegin('OpenSession_result')
|
|
1426
|
+
if self.success is not None:
|
|
1427
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
1428
|
+
self.success.write(oprot)
|
|
1429
|
+
oprot.writeFieldEnd()
|
|
1430
|
+
oprot.writeFieldStop()
|
|
1431
|
+
oprot.writeStructEnd()
|
|
1432
|
+
|
|
1433
|
+
def validate(self):
|
|
1434
|
+
return
|
|
1435
|
+
|
|
1436
|
+
def __repr__(self):
|
|
1437
|
+
L = ['%s=%r' % (key, value)
|
|
1438
|
+
for key, value in self.__dict__.items()]
|
|
1439
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1440
|
+
|
|
1441
|
+
def __eq__(self, other):
|
|
1442
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1443
|
+
|
|
1444
|
+
def __ne__(self, other):
|
|
1445
|
+
return not (self == other)
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
class CloseSession_args(object):
|
|
1449
|
+
"""
|
|
1450
|
+
Attributes:
|
|
1451
|
+
- req
|
|
1452
|
+
"""
|
|
1453
|
+
|
|
1454
|
+
thrift_spec = (
|
|
1455
|
+
None, # 0
|
|
1456
|
+
(1, TType.STRUCT, 'req', (TCloseSessionReq, TCloseSessionReq.thrift_spec), None, ), # 1
|
|
1457
|
+
)
|
|
1458
|
+
|
|
1459
|
+
def __init__(self, req=None,):
|
|
1460
|
+
self.req = req
|
|
1461
|
+
|
|
1462
|
+
def read(self, iprot):
|
|
1463
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1464
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1465
|
+
return
|
|
1466
|
+
iprot.readStructBegin()
|
|
1467
|
+
while True:
|
|
1468
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1469
|
+
if ftype == TType.STOP:
|
|
1470
|
+
break
|
|
1471
|
+
if fid == 1:
|
|
1472
|
+
if ftype == TType.STRUCT:
|
|
1473
|
+
self.req = TCloseSessionReq()
|
|
1474
|
+
self.req.read(iprot)
|
|
1475
|
+
else:
|
|
1476
|
+
iprot.skip(ftype)
|
|
1477
|
+
else:
|
|
1478
|
+
iprot.skip(ftype)
|
|
1479
|
+
iprot.readFieldEnd()
|
|
1480
|
+
iprot.readStructEnd()
|
|
1481
|
+
|
|
1482
|
+
def write(self, oprot):
|
|
1483
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1484
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1485
|
+
return
|
|
1486
|
+
oprot.writeStructBegin('CloseSession_args')
|
|
1487
|
+
if self.req is not None:
|
|
1488
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
1489
|
+
self.req.write(oprot)
|
|
1490
|
+
oprot.writeFieldEnd()
|
|
1491
|
+
oprot.writeFieldStop()
|
|
1492
|
+
oprot.writeStructEnd()
|
|
1493
|
+
|
|
1494
|
+
def validate(self):
|
|
1495
|
+
return
|
|
1496
|
+
|
|
1497
|
+
def __repr__(self):
|
|
1498
|
+
L = ['%s=%r' % (key, value)
|
|
1499
|
+
for key, value in self.__dict__.items()]
|
|
1500
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1501
|
+
|
|
1502
|
+
def __eq__(self, other):
|
|
1503
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1504
|
+
|
|
1505
|
+
def __ne__(self, other):
|
|
1506
|
+
return not (self == other)
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
class CloseSession_result(object):
|
|
1510
|
+
"""
|
|
1511
|
+
Attributes:
|
|
1512
|
+
- success
|
|
1513
|
+
"""
|
|
1514
|
+
|
|
1515
|
+
thrift_spec = (
|
|
1516
|
+
(0, TType.STRUCT, 'success', (TCloseSessionResp, TCloseSessionResp.thrift_spec), None, ), # 0
|
|
1517
|
+
)
|
|
1518
|
+
|
|
1519
|
+
def __init__(self, success=None,):
|
|
1520
|
+
self.success = success
|
|
1521
|
+
|
|
1522
|
+
def read(self, iprot):
|
|
1523
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1524
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1525
|
+
return
|
|
1526
|
+
iprot.readStructBegin()
|
|
1527
|
+
while True:
|
|
1528
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1529
|
+
if ftype == TType.STOP:
|
|
1530
|
+
break
|
|
1531
|
+
if fid == 0:
|
|
1532
|
+
if ftype == TType.STRUCT:
|
|
1533
|
+
self.success = TCloseSessionResp()
|
|
1534
|
+
self.success.read(iprot)
|
|
1535
|
+
else:
|
|
1536
|
+
iprot.skip(ftype)
|
|
1537
|
+
else:
|
|
1538
|
+
iprot.skip(ftype)
|
|
1539
|
+
iprot.readFieldEnd()
|
|
1540
|
+
iprot.readStructEnd()
|
|
1541
|
+
|
|
1542
|
+
def write(self, oprot):
|
|
1543
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1544
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1545
|
+
return
|
|
1546
|
+
oprot.writeStructBegin('CloseSession_result')
|
|
1547
|
+
if self.success is not None:
|
|
1548
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
1549
|
+
self.success.write(oprot)
|
|
1550
|
+
oprot.writeFieldEnd()
|
|
1551
|
+
oprot.writeFieldStop()
|
|
1552
|
+
oprot.writeStructEnd()
|
|
1553
|
+
|
|
1554
|
+
def validate(self):
|
|
1555
|
+
return
|
|
1556
|
+
|
|
1557
|
+
def __repr__(self):
|
|
1558
|
+
L = ['%s=%r' % (key, value)
|
|
1559
|
+
for key, value in self.__dict__.items()]
|
|
1560
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1561
|
+
|
|
1562
|
+
def __eq__(self, other):
|
|
1563
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1564
|
+
|
|
1565
|
+
def __ne__(self, other):
|
|
1566
|
+
return not (self == other)
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
class GetInfo_args(object):
|
|
1570
|
+
"""
|
|
1571
|
+
Attributes:
|
|
1572
|
+
- req
|
|
1573
|
+
"""
|
|
1574
|
+
|
|
1575
|
+
thrift_spec = (
|
|
1576
|
+
None, # 0
|
|
1577
|
+
(1, TType.STRUCT, 'req', (TGetInfoReq, TGetInfoReq.thrift_spec), None, ), # 1
|
|
1578
|
+
)
|
|
1579
|
+
|
|
1580
|
+
def __init__(self, req=None,):
|
|
1581
|
+
self.req = req
|
|
1582
|
+
|
|
1583
|
+
def read(self, iprot):
|
|
1584
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1585
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1586
|
+
return
|
|
1587
|
+
iprot.readStructBegin()
|
|
1588
|
+
while True:
|
|
1589
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1590
|
+
if ftype == TType.STOP:
|
|
1591
|
+
break
|
|
1592
|
+
if fid == 1:
|
|
1593
|
+
if ftype == TType.STRUCT:
|
|
1594
|
+
self.req = TGetInfoReq()
|
|
1595
|
+
self.req.read(iprot)
|
|
1596
|
+
else:
|
|
1597
|
+
iprot.skip(ftype)
|
|
1598
|
+
else:
|
|
1599
|
+
iprot.skip(ftype)
|
|
1600
|
+
iprot.readFieldEnd()
|
|
1601
|
+
iprot.readStructEnd()
|
|
1602
|
+
|
|
1603
|
+
def write(self, oprot):
|
|
1604
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1605
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1606
|
+
return
|
|
1607
|
+
oprot.writeStructBegin('GetInfo_args')
|
|
1608
|
+
if self.req is not None:
|
|
1609
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
1610
|
+
self.req.write(oprot)
|
|
1611
|
+
oprot.writeFieldEnd()
|
|
1612
|
+
oprot.writeFieldStop()
|
|
1613
|
+
oprot.writeStructEnd()
|
|
1614
|
+
|
|
1615
|
+
def validate(self):
|
|
1616
|
+
return
|
|
1617
|
+
|
|
1618
|
+
def __repr__(self):
|
|
1619
|
+
L = ['%s=%r' % (key, value)
|
|
1620
|
+
for key, value in self.__dict__.items()]
|
|
1621
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1622
|
+
|
|
1623
|
+
def __eq__(self, other):
|
|
1624
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1625
|
+
|
|
1626
|
+
def __ne__(self, other):
|
|
1627
|
+
return not (self == other)
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
class GetInfo_result(object):
|
|
1631
|
+
"""
|
|
1632
|
+
Attributes:
|
|
1633
|
+
- success
|
|
1634
|
+
"""
|
|
1635
|
+
|
|
1636
|
+
thrift_spec = (
|
|
1637
|
+
(0, TType.STRUCT, 'success', (TGetInfoResp, TGetInfoResp.thrift_spec), None, ), # 0
|
|
1638
|
+
)
|
|
1639
|
+
|
|
1640
|
+
def __init__(self, success=None,):
|
|
1641
|
+
self.success = success
|
|
1642
|
+
|
|
1643
|
+
def read(self, iprot):
|
|
1644
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1645
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1646
|
+
return
|
|
1647
|
+
iprot.readStructBegin()
|
|
1648
|
+
while True:
|
|
1649
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1650
|
+
if ftype == TType.STOP:
|
|
1651
|
+
break
|
|
1652
|
+
if fid == 0:
|
|
1653
|
+
if ftype == TType.STRUCT:
|
|
1654
|
+
self.success = TGetInfoResp()
|
|
1655
|
+
self.success.read(iprot)
|
|
1656
|
+
else:
|
|
1657
|
+
iprot.skip(ftype)
|
|
1658
|
+
else:
|
|
1659
|
+
iprot.skip(ftype)
|
|
1660
|
+
iprot.readFieldEnd()
|
|
1661
|
+
iprot.readStructEnd()
|
|
1662
|
+
|
|
1663
|
+
def write(self, oprot):
|
|
1664
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1665
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1666
|
+
return
|
|
1667
|
+
oprot.writeStructBegin('GetInfo_result')
|
|
1668
|
+
if self.success is not None:
|
|
1669
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
1670
|
+
self.success.write(oprot)
|
|
1671
|
+
oprot.writeFieldEnd()
|
|
1672
|
+
oprot.writeFieldStop()
|
|
1673
|
+
oprot.writeStructEnd()
|
|
1674
|
+
|
|
1675
|
+
def validate(self):
|
|
1676
|
+
return
|
|
1677
|
+
|
|
1678
|
+
def __repr__(self):
|
|
1679
|
+
L = ['%s=%r' % (key, value)
|
|
1680
|
+
for key, value in self.__dict__.items()]
|
|
1681
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1682
|
+
|
|
1683
|
+
def __eq__(self, other):
|
|
1684
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1685
|
+
|
|
1686
|
+
def __ne__(self, other):
|
|
1687
|
+
return not (self == other)
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
class ExecuteStatement_args(object):
|
|
1691
|
+
"""
|
|
1692
|
+
Attributes:
|
|
1693
|
+
- req
|
|
1694
|
+
"""
|
|
1695
|
+
|
|
1696
|
+
thrift_spec = (
|
|
1697
|
+
None, # 0
|
|
1698
|
+
(1, TType.STRUCT, 'req', (TExecuteStatementReq, TExecuteStatementReq.thrift_spec), None, ), # 1
|
|
1699
|
+
)
|
|
1700
|
+
|
|
1701
|
+
def __init__(self, req=None,):
|
|
1702
|
+
self.req = req
|
|
1703
|
+
|
|
1704
|
+
def read(self, iprot):
|
|
1705
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1706
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1707
|
+
return
|
|
1708
|
+
iprot.readStructBegin()
|
|
1709
|
+
while True:
|
|
1710
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1711
|
+
if ftype == TType.STOP:
|
|
1712
|
+
break
|
|
1713
|
+
if fid == 1:
|
|
1714
|
+
if ftype == TType.STRUCT:
|
|
1715
|
+
self.req = TExecuteStatementReq()
|
|
1716
|
+
self.req.read(iprot)
|
|
1717
|
+
else:
|
|
1718
|
+
iprot.skip(ftype)
|
|
1719
|
+
else:
|
|
1720
|
+
iprot.skip(ftype)
|
|
1721
|
+
iprot.readFieldEnd()
|
|
1722
|
+
iprot.readStructEnd()
|
|
1723
|
+
|
|
1724
|
+
def write(self, oprot):
|
|
1725
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1726
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1727
|
+
return
|
|
1728
|
+
oprot.writeStructBegin('ExecuteStatement_args')
|
|
1729
|
+
if self.req is not None:
|
|
1730
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
1731
|
+
self.req.write(oprot)
|
|
1732
|
+
oprot.writeFieldEnd()
|
|
1733
|
+
oprot.writeFieldStop()
|
|
1734
|
+
oprot.writeStructEnd()
|
|
1735
|
+
|
|
1736
|
+
def validate(self):
|
|
1737
|
+
return
|
|
1738
|
+
|
|
1739
|
+
def __repr__(self):
|
|
1740
|
+
L = ['%s=%r' % (key, value)
|
|
1741
|
+
for key, value in self.__dict__.items()]
|
|
1742
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1743
|
+
|
|
1744
|
+
def __eq__(self, other):
|
|
1745
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1746
|
+
|
|
1747
|
+
def __ne__(self, other):
|
|
1748
|
+
return not (self == other)
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
class ExecuteStatement_result(object):
|
|
1752
|
+
"""
|
|
1753
|
+
Attributes:
|
|
1754
|
+
- success
|
|
1755
|
+
"""
|
|
1756
|
+
|
|
1757
|
+
thrift_spec = (
|
|
1758
|
+
(0, TType.STRUCT, 'success', (TExecuteStatementResp, TExecuteStatementResp.thrift_spec), None, ), # 0
|
|
1759
|
+
)
|
|
1760
|
+
|
|
1761
|
+
def __init__(self, success=None,):
|
|
1762
|
+
self.success = success
|
|
1763
|
+
|
|
1764
|
+
def read(self, iprot):
|
|
1765
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1766
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1767
|
+
return
|
|
1768
|
+
iprot.readStructBegin()
|
|
1769
|
+
while True:
|
|
1770
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1771
|
+
if ftype == TType.STOP:
|
|
1772
|
+
break
|
|
1773
|
+
if fid == 0:
|
|
1774
|
+
if ftype == TType.STRUCT:
|
|
1775
|
+
self.success = TExecuteStatementResp()
|
|
1776
|
+
self.success.read(iprot)
|
|
1777
|
+
else:
|
|
1778
|
+
iprot.skip(ftype)
|
|
1779
|
+
else:
|
|
1780
|
+
iprot.skip(ftype)
|
|
1781
|
+
iprot.readFieldEnd()
|
|
1782
|
+
iprot.readStructEnd()
|
|
1783
|
+
|
|
1784
|
+
def write(self, oprot):
|
|
1785
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1786
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1787
|
+
return
|
|
1788
|
+
oprot.writeStructBegin('ExecuteStatement_result')
|
|
1789
|
+
if self.success is not None:
|
|
1790
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
1791
|
+
self.success.write(oprot)
|
|
1792
|
+
oprot.writeFieldEnd()
|
|
1793
|
+
oprot.writeFieldStop()
|
|
1794
|
+
oprot.writeStructEnd()
|
|
1795
|
+
|
|
1796
|
+
def validate(self):
|
|
1797
|
+
return
|
|
1798
|
+
|
|
1799
|
+
def __repr__(self):
|
|
1800
|
+
L = ['%s=%r' % (key, value)
|
|
1801
|
+
for key, value in self.__dict__.items()]
|
|
1802
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1803
|
+
|
|
1804
|
+
def __eq__(self, other):
|
|
1805
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1806
|
+
|
|
1807
|
+
def __ne__(self, other):
|
|
1808
|
+
return not (self == other)
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
class GetTypeInfo_args(object):
|
|
1812
|
+
"""
|
|
1813
|
+
Attributes:
|
|
1814
|
+
- req
|
|
1815
|
+
"""
|
|
1816
|
+
|
|
1817
|
+
thrift_spec = (
|
|
1818
|
+
None, # 0
|
|
1819
|
+
(1, TType.STRUCT, 'req', (TGetTypeInfoReq, TGetTypeInfoReq.thrift_spec), None, ), # 1
|
|
1820
|
+
)
|
|
1821
|
+
|
|
1822
|
+
def __init__(self, req=None,):
|
|
1823
|
+
self.req = req
|
|
1824
|
+
|
|
1825
|
+
def read(self, iprot):
|
|
1826
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1827
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1828
|
+
return
|
|
1829
|
+
iprot.readStructBegin()
|
|
1830
|
+
while True:
|
|
1831
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1832
|
+
if ftype == TType.STOP:
|
|
1833
|
+
break
|
|
1834
|
+
if fid == 1:
|
|
1835
|
+
if ftype == TType.STRUCT:
|
|
1836
|
+
self.req = TGetTypeInfoReq()
|
|
1837
|
+
self.req.read(iprot)
|
|
1838
|
+
else:
|
|
1839
|
+
iprot.skip(ftype)
|
|
1840
|
+
else:
|
|
1841
|
+
iprot.skip(ftype)
|
|
1842
|
+
iprot.readFieldEnd()
|
|
1843
|
+
iprot.readStructEnd()
|
|
1844
|
+
|
|
1845
|
+
def write(self, oprot):
|
|
1846
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1847
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1848
|
+
return
|
|
1849
|
+
oprot.writeStructBegin('GetTypeInfo_args')
|
|
1850
|
+
if self.req is not None:
|
|
1851
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
1852
|
+
self.req.write(oprot)
|
|
1853
|
+
oprot.writeFieldEnd()
|
|
1854
|
+
oprot.writeFieldStop()
|
|
1855
|
+
oprot.writeStructEnd()
|
|
1856
|
+
|
|
1857
|
+
def validate(self):
|
|
1858
|
+
return
|
|
1859
|
+
|
|
1860
|
+
def __repr__(self):
|
|
1861
|
+
L = ['%s=%r' % (key, value)
|
|
1862
|
+
for key, value in self.__dict__.items()]
|
|
1863
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1864
|
+
|
|
1865
|
+
def __eq__(self, other):
|
|
1866
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1867
|
+
|
|
1868
|
+
def __ne__(self, other):
|
|
1869
|
+
return not (self == other)
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
class GetTypeInfo_result(object):
|
|
1873
|
+
"""
|
|
1874
|
+
Attributes:
|
|
1875
|
+
- success
|
|
1876
|
+
"""
|
|
1877
|
+
|
|
1878
|
+
thrift_spec = (
|
|
1879
|
+
(0, TType.STRUCT, 'success', (TGetTypeInfoResp, TGetTypeInfoResp.thrift_spec), None, ), # 0
|
|
1880
|
+
)
|
|
1881
|
+
|
|
1882
|
+
def __init__(self, success=None,):
|
|
1883
|
+
self.success = success
|
|
1884
|
+
|
|
1885
|
+
def read(self, iprot):
|
|
1886
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1887
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1888
|
+
return
|
|
1889
|
+
iprot.readStructBegin()
|
|
1890
|
+
while True:
|
|
1891
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1892
|
+
if ftype == TType.STOP:
|
|
1893
|
+
break
|
|
1894
|
+
if fid == 0:
|
|
1895
|
+
if ftype == TType.STRUCT:
|
|
1896
|
+
self.success = TGetTypeInfoResp()
|
|
1897
|
+
self.success.read(iprot)
|
|
1898
|
+
else:
|
|
1899
|
+
iprot.skip(ftype)
|
|
1900
|
+
else:
|
|
1901
|
+
iprot.skip(ftype)
|
|
1902
|
+
iprot.readFieldEnd()
|
|
1903
|
+
iprot.readStructEnd()
|
|
1904
|
+
|
|
1905
|
+
def write(self, oprot):
|
|
1906
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1907
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1908
|
+
return
|
|
1909
|
+
oprot.writeStructBegin('GetTypeInfo_result')
|
|
1910
|
+
if self.success is not None:
|
|
1911
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
1912
|
+
self.success.write(oprot)
|
|
1913
|
+
oprot.writeFieldEnd()
|
|
1914
|
+
oprot.writeFieldStop()
|
|
1915
|
+
oprot.writeStructEnd()
|
|
1916
|
+
|
|
1917
|
+
def validate(self):
|
|
1918
|
+
return
|
|
1919
|
+
|
|
1920
|
+
def __repr__(self):
|
|
1921
|
+
L = ['%s=%r' % (key, value)
|
|
1922
|
+
for key, value in self.__dict__.items()]
|
|
1923
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1924
|
+
|
|
1925
|
+
def __eq__(self, other):
|
|
1926
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1927
|
+
|
|
1928
|
+
def __ne__(self, other):
|
|
1929
|
+
return not (self == other)
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
class GetCatalogs_args(object):
|
|
1933
|
+
"""
|
|
1934
|
+
Attributes:
|
|
1935
|
+
- req
|
|
1936
|
+
"""
|
|
1937
|
+
|
|
1938
|
+
thrift_spec = (
|
|
1939
|
+
None, # 0
|
|
1940
|
+
(1, TType.STRUCT, 'req', (TGetCatalogsReq, TGetCatalogsReq.thrift_spec), None, ), # 1
|
|
1941
|
+
)
|
|
1942
|
+
|
|
1943
|
+
def __init__(self, req=None,):
|
|
1944
|
+
self.req = req
|
|
1945
|
+
|
|
1946
|
+
def read(self, iprot):
|
|
1947
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1948
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
1949
|
+
return
|
|
1950
|
+
iprot.readStructBegin()
|
|
1951
|
+
while True:
|
|
1952
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1953
|
+
if ftype == TType.STOP:
|
|
1954
|
+
break
|
|
1955
|
+
if fid == 1:
|
|
1956
|
+
if ftype == TType.STRUCT:
|
|
1957
|
+
self.req = TGetCatalogsReq()
|
|
1958
|
+
self.req.read(iprot)
|
|
1959
|
+
else:
|
|
1960
|
+
iprot.skip(ftype)
|
|
1961
|
+
else:
|
|
1962
|
+
iprot.skip(ftype)
|
|
1963
|
+
iprot.readFieldEnd()
|
|
1964
|
+
iprot.readStructEnd()
|
|
1965
|
+
|
|
1966
|
+
def write(self, oprot):
|
|
1967
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1968
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
1969
|
+
return
|
|
1970
|
+
oprot.writeStructBegin('GetCatalogs_args')
|
|
1971
|
+
if self.req is not None:
|
|
1972
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
1973
|
+
self.req.write(oprot)
|
|
1974
|
+
oprot.writeFieldEnd()
|
|
1975
|
+
oprot.writeFieldStop()
|
|
1976
|
+
oprot.writeStructEnd()
|
|
1977
|
+
|
|
1978
|
+
def validate(self):
|
|
1979
|
+
return
|
|
1980
|
+
|
|
1981
|
+
def __repr__(self):
|
|
1982
|
+
L = ['%s=%r' % (key, value)
|
|
1983
|
+
for key, value in self.__dict__.items()]
|
|
1984
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1985
|
+
|
|
1986
|
+
def __eq__(self, other):
|
|
1987
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1988
|
+
|
|
1989
|
+
def __ne__(self, other):
|
|
1990
|
+
return not (self == other)
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
class GetCatalogs_result(object):
|
|
1994
|
+
"""
|
|
1995
|
+
Attributes:
|
|
1996
|
+
- success
|
|
1997
|
+
"""
|
|
1998
|
+
|
|
1999
|
+
thrift_spec = (
|
|
2000
|
+
(0, TType.STRUCT, 'success', (TGetCatalogsResp, TGetCatalogsResp.thrift_spec), None, ), # 0
|
|
2001
|
+
)
|
|
2002
|
+
|
|
2003
|
+
def __init__(self, success=None,):
|
|
2004
|
+
self.success = success
|
|
2005
|
+
|
|
2006
|
+
def read(self, iprot):
|
|
2007
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2008
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2009
|
+
return
|
|
2010
|
+
iprot.readStructBegin()
|
|
2011
|
+
while True:
|
|
2012
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2013
|
+
if ftype == TType.STOP:
|
|
2014
|
+
break
|
|
2015
|
+
if fid == 0:
|
|
2016
|
+
if ftype == TType.STRUCT:
|
|
2017
|
+
self.success = TGetCatalogsResp()
|
|
2018
|
+
self.success.read(iprot)
|
|
2019
|
+
else:
|
|
2020
|
+
iprot.skip(ftype)
|
|
2021
|
+
else:
|
|
2022
|
+
iprot.skip(ftype)
|
|
2023
|
+
iprot.readFieldEnd()
|
|
2024
|
+
iprot.readStructEnd()
|
|
2025
|
+
|
|
2026
|
+
def write(self, oprot):
|
|
2027
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2028
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2029
|
+
return
|
|
2030
|
+
oprot.writeStructBegin('GetCatalogs_result')
|
|
2031
|
+
if self.success is not None:
|
|
2032
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2033
|
+
self.success.write(oprot)
|
|
2034
|
+
oprot.writeFieldEnd()
|
|
2035
|
+
oprot.writeFieldStop()
|
|
2036
|
+
oprot.writeStructEnd()
|
|
2037
|
+
|
|
2038
|
+
def validate(self):
|
|
2039
|
+
return
|
|
2040
|
+
|
|
2041
|
+
def __repr__(self):
|
|
2042
|
+
L = ['%s=%r' % (key, value)
|
|
2043
|
+
for key, value in self.__dict__.items()]
|
|
2044
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2045
|
+
|
|
2046
|
+
def __eq__(self, other):
|
|
2047
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2048
|
+
|
|
2049
|
+
def __ne__(self, other):
|
|
2050
|
+
return not (self == other)
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
class GetSchemas_args(object):
|
|
2054
|
+
"""
|
|
2055
|
+
Attributes:
|
|
2056
|
+
- req
|
|
2057
|
+
"""
|
|
2058
|
+
|
|
2059
|
+
thrift_spec = (
|
|
2060
|
+
None, # 0
|
|
2061
|
+
(1, TType.STRUCT, 'req', (TGetSchemasReq, TGetSchemasReq.thrift_spec), None, ), # 1
|
|
2062
|
+
)
|
|
2063
|
+
|
|
2064
|
+
def __init__(self, req=None,):
|
|
2065
|
+
self.req = req
|
|
2066
|
+
|
|
2067
|
+
def read(self, iprot):
|
|
2068
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2069
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2070
|
+
return
|
|
2071
|
+
iprot.readStructBegin()
|
|
2072
|
+
while True:
|
|
2073
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2074
|
+
if ftype == TType.STOP:
|
|
2075
|
+
break
|
|
2076
|
+
if fid == 1:
|
|
2077
|
+
if ftype == TType.STRUCT:
|
|
2078
|
+
self.req = TGetSchemasReq()
|
|
2079
|
+
self.req.read(iprot)
|
|
2080
|
+
else:
|
|
2081
|
+
iprot.skip(ftype)
|
|
2082
|
+
else:
|
|
2083
|
+
iprot.skip(ftype)
|
|
2084
|
+
iprot.readFieldEnd()
|
|
2085
|
+
iprot.readStructEnd()
|
|
2086
|
+
|
|
2087
|
+
def write(self, oprot):
|
|
2088
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2089
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2090
|
+
return
|
|
2091
|
+
oprot.writeStructBegin('GetSchemas_args')
|
|
2092
|
+
if self.req is not None:
|
|
2093
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2094
|
+
self.req.write(oprot)
|
|
2095
|
+
oprot.writeFieldEnd()
|
|
2096
|
+
oprot.writeFieldStop()
|
|
2097
|
+
oprot.writeStructEnd()
|
|
2098
|
+
|
|
2099
|
+
def validate(self):
|
|
2100
|
+
return
|
|
2101
|
+
|
|
2102
|
+
def __repr__(self):
|
|
2103
|
+
L = ['%s=%r' % (key, value)
|
|
2104
|
+
for key, value in self.__dict__.items()]
|
|
2105
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2106
|
+
|
|
2107
|
+
def __eq__(self, other):
|
|
2108
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2109
|
+
|
|
2110
|
+
def __ne__(self, other):
|
|
2111
|
+
return not (self == other)
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
class GetSchemas_result(object):
|
|
2115
|
+
"""
|
|
2116
|
+
Attributes:
|
|
2117
|
+
- success
|
|
2118
|
+
"""
|
|
2119
|
+
|
|
2120
|
+
thrift_spec = (
|
|
2121
|
+
(0, TType.STRUCT, 'success', (TGetSchemasResp, TGetSchemasResp.thrift_spec), None, ), # 0
|
|
2122
|
+
)
|
|
2123
|
+
|
|
2124
|
+
def __init__(self, success=None,):
|
|
2125
|
+
self.success = success
|
|
2126
|
+
|
|
2127
|
+
def read(self, iprot):
|
|
2128
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2129
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2130
|
+
return
|
|
2131
|
+
iprot.readStructBegin()
|
|
2132
|
+
while True:
|
|
2133
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2134
|
+
if ftype == TType.STOP:
|
|
2135
|
+
break
|
|
2136
|
+
if fid == 0:
|
|
2137
|
+
if ftype == TType.STRUCT:
|
|
2138
|
+
self.success = TGetSchemasResp()
|
|
2139
|
+
self.success.read(iprot)
|
|
2140
|
+
else:
|
|
2141
|
+
iprot.skip(ftype)
|
|
2142
|
+
else:
|
|
2143
|
+
iprot.skip(ftype)
|
|
2144
|
+
iprot.readFieldEnd()
|
|
2145
|
+
iprot.readStructEnd()
|
|
2146
|
+
|
|
2147
|
+
def write(self, oprot):
|
|
2148
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2149
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2150
|
+
return
|
|
2151
|
+
oprot.writeStructBegin('GetSchemas_result')
|
|
2152
|
+
if self.success is not None:
|
|
2153
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2154
|
+
self.success.write(oprot)
|
|
2155
|
+
oprot.writeFieldEnd()
|
|
2156
|
+
oprot.writeFieldStop()
|
|
2157
|
+
oprot.writeStructEnd()
|
|
2158
|
+
|
|
2159
|
+
def validate(self):
|
|
2160
|
+
return
|
|
2161
|
+
|
|
2162
|
+
def __repr__(self):
|
|
2163
|
+
L = ['%s=%r' % (key, value)
|
|
2164
|
+
for key, value in self.__dict__.items()]
|
|
2165
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2166
|
+
|
|
2167
|
+
def __eq__(self, other):
|
|
2168
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2169
|
+
|
|
2170
|
+
def __ne__(self, other):
|
|
2171
|
+
return not (self == other)
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
class GetTables_args(object):
|
|
2175
|
+
"""
|
|
2176
|
+
Attributes:
|
|
2177
|
+
- req
|
|
2178
|
+
"""
|
|
2179
|
+
|
|
2180
|
+
thrift_spec = (
|
|
2181
|
+
None, # 0
|
|
2182
|
+
(1, TType.STRUCT, 'req', (TGetTablesReq, TGetTablesReq.thrift_spec), None, ), # 1
|
|
2183
|
+
)
|
|
2184
|
+
|
|
2185
|
+
def __init__(self, req=None,):
|
|
2186
|
+
self.req = req
|
|
2187
|
+
|
|
2188
|
+
def read(self, iprot):
|
|
2189
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2190
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2191
|
+
return
|
|
2192
|
+
iprot.readStructBegin()
|
|
2193
|
+
while True:
|
|
2194
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2195
|
+
if ftype == TType.STOP:
|
|
2196
|
+
break
|
|
2197
|
+
if fid == 1:
|
|
2198
|
+
if ftype == TType.STRUCT:
|
|
2199
|
+
self.req = TGetTablesReq()
|
|
2200
|
+
self.req.read(iprot)
|
|
2201
|
+
else:
|
|
2202
|
+
iprot.skip(ftype)
|
|
2203
|
+
else:
|
|
2204
|
+
iprot.skip(ftype)
|
|
2205
|
+
iprot.readFieldEnd()
|
|
2206
|
+
iprot.readStructEnd()
|
|
2207
|
+
|
|
2208
|
+
def write(self, oprot):
|
|
2209
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2210
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2211
|
+
return
|
|
2212
|
+
oprot.writeStructBegin('GetTables_args')
|
|
2213
|
+
if self.req is not None:
|
|
2214
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2215
|
+
self.req.write(oprot)
|
|
2216
|
+
oprot.writeFieldEnd()
|
|
2217
|
+
oprot.writeFieldStop()
|
|
2218
|
+
oprot.writeStructEnd()
|
|
2219
|
+
|
|
2220
|
+
def validate(self):
|
|
2221
|
+
return
|
|
2222
|
+
|
|
2223
|
+
def __repr__(self):
|
|
2224
|
+
L = ['%s=%r' % (key, value)
|
|
2225
|
+
for key, value in self.__dict__.items()]
|
|
2226
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2227
|
+
|
|
2228
|
+
def __eq__(self, other):
|
|
2229
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2230
|
+
|
|
2231
|
+
def __ne__(self, other):
|
|
2232
|
+
return not (self == other)
|
|
2233
|
+
|
|
2234
|
+
|
|
2235
|
+
class GetTables_result(object):
|
|
2236
|
+
"""
|
|
2237
|
+
Attributes:
|
|
2238
|
+
- success
|
|
2239
|
+
"""
|
|
2240
|
+
|
|
2241
|
+
thrift_spec = (
|
|
2242
|
+
(0, TType.STRUCT, 'success', (TGetTablesResp, TGetTablesResp.thrift_spec), None, ), # 0
|
|
2243
|
+
)
|
|
2244
|
+
|
|
2245
|
+
def __init__(self, success=None,):
|
|
2246
|
+
self.success = success
|
|
2247
|
+
|
|
2248
|
+
def read(self, iprot):
|
|
2249
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2250
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2251
|
+
return
|
|
2252
|
+
iprot.readStructBegin()
|
|
2253
|
+
while True:
|
|
2254
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2255
|
+
if ftype == TType.STOP:
|
|
2256
|
+
break
|
|
2257
|
+
if fid == 0:
|
|
2258
|
+
if ftype == TType.STRUCT:
|
|
2259
|
+
self.success = TGetTablesResp()
|
|
2260
|
+
self.success.read(iprot)
|
|
2261
|
+
else:
|
|
2262
|
+
iprot.skip(ftype)
|
|
2263
|
+
else:
|
|
2264
|
+
iprot.skip(ftype)
|
|
2265
|
+
iprot.readFieldEnd()
|
|
2266
|
+
iprot.readStructEnd()
|
|
2267
|
+
|
|
2268
|
+
def write(self, oprot):
|
|
2269
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2270
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2271
|
+
return
|
|
2272
|
+
oprot.writeStructBegin('GetTables_result')
|
|
2273
|
+
if self.success is not None:
|
|
2274
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2275
|
+
self.success.write(oprot)
|
|
2276
|
+
oprot.writeFieldEnd()
|
|
2277
|
+
oprot.writeFieldStop()
|
|
2278
|
+
oprot.writeStructEnd()
|
|
2279
|
+
|
|
2280
|
+
def validate(self):
|
|
2281
|
+
return
|
|
2282
|
+
|
|
2283
|
+
def __repr__(self):
|
|
2284
|
+
L = ['%s=%r' % (key, value)
|
|
2285
|
+
for key, value in self.__dict__.items()]
|
|
2286
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2287
|
+
|
|
2288
|
+
def __eq__(self, other):
|
|
2289
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2290
|
+
|
|
2291
|
+
def __ne__(self, other):
|
|
2292
|
+
return not (self == other)
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
class GetTableTypes_args(object):
|
|
2296
|
+
"""
|
|
2297
|
+
Attributes:
|
|
2298
|
+
- req
|
|
2299
|
+
"""
|
|
2300
|
+
|
|
2301
|
+
thrift_spec = (
|
|
2302
|
+
None, # 0
|
|
2303
|
+
(1, TType.STRUCT, 'req', (TGetTableTypesReq, TGetTableTypesReq.thrift_spec), None, ), # 1
|
|
2304
|
+
)
|
|
2305
|
+
|
|
2306
|
+
def __init__(self, req=None,):
|
|
2307
|
+
self.req = req
|
|
2308
|
+
|
|
2309
|
+
def read(self, iprot):
|
|
2310
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2311
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2312
|
+
return
|
|
2313
|
+
iprot.readStructBegin()
|
|
2314
|
+
while True:
|
|
2315
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2316
|
+
if ftype == TType.STOP:
|
|
2317
|
+
break
|
|
2318
|
+
if fid == 1:
|
|
2319
|
+
if ftype == TType.STRUCT:
|
|
2320
|
+
self.req = TGetTableTypesReq()
|
|
2321
|
+
self.req.read(iprot)
|
|
2322
|
+
else:
|
|
2323
|
+
iprot.skip(ftype)
|
|
2324
|
+
else:
|
|
2325
|
+
iprot.skip(ftype)
|
|
2326
|
+
iprot.readFieldEnd()
|
|
2327
|
+
iprot.readStructEnd()
|
|
2328
|
+
|
|
2329
|
+
def write(self, oprot):
|
|
2330
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2331
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2332
|
+
return
|
|
2333
|
+
oprot.writeStructBegin('GetTableTypes_args')
|
|
2334
|
+
if self.req is not None:
|
|
2335
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2336
|
+
self.req.write(oprot)
|
|
2337
|
+
oprot.writeFieldEnd()
|
|
2338
|
+
oprot.writeFieldStop()
|
|
2339
|
+
oprot.writeStructEnd()
|
|
2340
|
+
|
|
2341
|
+
def validate(self):
|
|
2342
|
+
return
|
|
2343
|
+
|
|
2344
|
+
def __repr__(self):
|
|
2345
|
+
L = ['%s=%r' % (key, value)
|
|
2346
|
+
for key, value in self.__dict__.items()]
|
|
2347
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2348
|
+
|
|
2349
|
+
def __eq__(self, other):
|
|
2350
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2351
|
+
|
|
2352
|
+
def __ne__(self, other):
|
|
2353
|
+
return not (self == other)
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
class GetTableTypes_result(object):
|
|
2357
|
+
"""
|
|
2358
|
+
Attributes:
|
|
2359
|
+
- success
|
|
2360
|
+
"""
|
|
2361
|
+
|
|
2362
|
+
thrift_spec = (
|
|
2363
|
+
(0, TType.STRUCT, 'success', (TGetTableTypesResp, TGetTableTypesResp.thrift_spec), None, ), # 0
|
|
2364
|
+
)
|
|
2365
|
+
|
|
2366
|
+
def __init__(self, success=None,):
|
|
2367
|
+
self.success = success
|
|
2368
|
+
|
|
2369
|
+
def read(self, iprot):
|
|
2370
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2371
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2372
|
+
return
|
|
2373
|
+
iprot.readStructBegin()
|
|
2374
|
+
while True:
|
|
2375
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2376
|
+
if ftype == TType.STOP:
|
|
2377
|
+
break
|
|
2378
|
+
if fid == 0:
|
|
2379
|
+
if ftype == TType.STRUCT:
|
|
2380
|
+
self.success = TGetTableTypesResp()
|
|
2381
|
+
self.success.read(iprot)
|
|
2382
|
+
else:
|
|
2383
|
+
iprot.skip(ftype)
|
|
2384
|
+
else:
|
|
2385
|
+
iprot.skip(ftype)
|
|
2386
|
+
iprot.readFieldEnd()
|
|
2387
|
+
iprot.readStructEnd()
|
|
2388
|
+
|
|
2389
|
+
def write(self, oprot):
|
|
2390
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2391
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2392
|
+
return
|
|
2393
|
+
oprot.writeStructBegin('GetTableTypes_result')
|
|
2394
|
+
if self.success is not None:
|
|
2395
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2396
|
+
self.success.write(oprot)
|
|
2397
|
+
oprot.writeFieldEnd()
|
|
2398
|
+
oprot.writeFieldStop()
|
|
2399
|
+
oprot.writeStructEnd()
|
|
2400
|
+
|
|
2401
|
+
def validate(self):
|
|
2402
|
+
return
|
|
2403
|
+
|
|
2404
|
+
def __repr__(self):
|
|
2405
|
+
L = ['%s=%r' % (key, value)
|
|
2406
|
+
for key, value in self.__dict__.items()]
|
|
2407
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2408
|
+
|
|
2409
|
+
def __eq__(self, other):
|
|
2410
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2411
|
+
|
|
2412
|
+
def __ne__(self, other):
|
|
2413
|
+
return not (self == other)
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
class GetColumns_args(object):
|
|
2417
|
+
"""
|
|
2418
|
+
Attributes:
|
|
2419
|
+
- req
|
|
2420
|
+
"""
|
|
2421
|
+
|
|
2422
|
+
thrift_spec = (
|
|
2423
|
+
None, # 0
|
|
2424
|
+
(1, TType.STRUCT, 'req', (TGetColumnsReq, TGetColumnsReq.thrift_spec), None, ), # 1
|
|
2425
|
+
)
|
|
2426
|
+
|
|
2427
|
+
def __init__(self, req=None,):
|
|
2428
|
+
self.req = req
|
|
2429
|
+
|
|
2430
|
+
def read(self, iprot):
|
|
2431
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2432
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2433
|
+
return
|
|
2434
|
+
iprot.readStructBegin()
|
|
2435
|
+
while True:
|
|
2436
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2437
|
+
if ftype == TType.STOP:
|
|
2438
|
+
break
|
|
2439
|
+
if fid == 1:
|
|
2440
|
+
if ftype == TType.STRUCT:
|
|
2441
|
+
self.req = TGetColumnsReq()
|
|
2442
|
+
self.req.read(iprot)
|
|
2443
|
+
else:
|
|
2444
|
+
iprot.skip(ftype)
|
|
2445
|
+
else:
|
|
2446
|
+
iprot.skip(ftype)
|
|
2447
|
+
iprot.readFieldEnd()
|
|
2448
|
+
iprot.readStructEnd()
|
|
2449
|
+
|
|
2450
|
+
def write(self, oprot):
|
|
2451
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2452
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2453
|
+
return
|
|
2454
|
+
oprot.writeStructBegin('GetColumns_args')
|
|
2455
|
+
if self.req is not None:
|
|
2456
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2457
|
+
self.req.write(oprot)
|
|
2458
|
+
oprot.writeFieldEnd()
|
|
2459
|
+
oprot.writeFieldStop()
|
|
2460
|
+
oprot.writeStructEnd()
|
|
2461
|
+
|
|
2462
|
+
def validate(self):
|
|
2463
|
+
return
|
|
2464
|
+
|
|
2465
|
+
def __repr__(self):
|
|
2466
|
+
L = ['%s=%r' % (key, value)
|
|
2467
|
+
for key, value in self.__dict__.items()]
|
|
2468
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2469
|
+
|
|
2470
|
+
def __eq__(self, other):
|
|
2471
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2472
|
+
|
|
2473
|
+
def __ne__(self, other):
|
|
2474
|
+
return not (self == other)
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
class GetColumns_result(object):
|
|
2478
|
+
"""
|
|
2479
|
+
Attributes:
|
|
2480
|
+
- success
|
|
2481
|
+
"""
|
|
2482
|
+
|
|
2483
|
+
thrift_spec = (
|
|
2484
|
+
(0, TType.STRUCT, 'success', (TGetColumnsResp, TGetColumnsResp.thrift_spec), None, ), # 0
|
|
2485
|
+
)
|
|
2486
|
+
|
|
2487
|
+
def __init__(self, success=None,):
|
|
2488
|
+
self.success = success
|
|
2489
|
+
|
|
2490
|
+
def read(self, iprot):
|
|
2491
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2492
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2493
|
+
return
|
|
2494
|
+
iprot.readStructBegin()
|
|
2495
|
+
while True:
|
|
2496
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2497
|
+
if ftype == TType.STOP:
|
|
2498
|
+
break
|
|
2499
|
+
if fid == 0:
|
|
2500
|
+
if ftype == TType.STRUCT:
|
|
2501
|
+
self.success = TGetColumnsResp()
|
|
2502
|
+
self.success.read(iprot)
|
|
2503
|
+
else:
|
|
2504
|
+
iprot.skip(ftype)
|
|
2505
|
+
else:
|
|
2506
|
+
iprot.skip(ftype)
|
|
2507
|
+
iprot.readFieldEnd()
|
|
2508
|
+
iprot.readStructEnd()
|
|
2509
|
+
|
|
2510
|
+
def write(self, oprot):
|
|
2511
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2512
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2513
|
+
return
|
|
2514
|
+
oprot.writeStructBegin('GetColumns_result')
|
|
2515
|
+
if self.success is not None:
|
|
2516
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2517
|
+
self.success.write(oprot)
|
|
2518
|
+
oprot.writeFieldEnd()
|
|
2519
|
+
oprot.writeFieldStop()
|
|
2520
|
+
oprot.writeStructEnd()
|
|
2521
|
+
|
|
2522
|
+
def validate(self):
|
|
2523
|
+
return
|
|
2524
|
+
|
|
2525
|
+
def __repr__(self):
|
|
2526
|
+
L = ['%s=%r' % (key, value)
|
|
2527
|
+
for key, value in self.__dict__.items()]
|
|
2528
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2529
|
+
|
|
2530
|
+
def __eq__(self, other):
|
|
2531
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2532
|
+
|
|
2533
|
+
def __ne__(self, other):
|
|
2534
|
+
return not (self == other)
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
class GetFunctions_args(object):
|
|
2538
|
+
"""
|
|
2539
|
+
Attributes:
|
|
2540
|
+
- req
|
|
2541
|
+
"""
|
|
2542
|
+
|
|
2543
|
+
thrift_spec = (
|
|
2544
|
+
None, # 0
|
|
2545
|
+
(1, TType.STRUCT, 'req', (TGetFunctionsReq, TGetFunctionsReq.thrift_spec), None, ), # 1
|
|
2546
|
+
)
|
|
2547
|
+
|
|
2548
|
+
def __init__(self, req=None,):
|
|
2549
|
+
self.req = req
|
|
2550
|
+
|
|
2551
|
+
def read(self, iprot):
|
|
2552
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2553
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2554
|
+
return
|
|
2555
|
+
iprot.readStructBegin()
|
|
2556
|
+
while True:
|
|
2557
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2558
|
+
if ftype == TType.STOP:
|
|
2559
|
+
break
|
|
2560
|
+
if fid == 1:
|
|
2561
|
+
if ftype == TType.STRUCT:
|
|
2562
|
+
self.req = TGetFunctionsReq()
|
|
2563
|
+
self.req.read(iprot)
|
|
2564
|
+
else:
|
|
2565
|
+
iprot.skip(ftype)
|
|
2566
|
+
else:
|
|
2567
|
+
iprot.skip(ftype)
|
|
2568
|
+
iprot.readFieldEnd()
|
|
2569
|
+
iprot.readStructEnd()
|
|
2570
|
+
|
|
2571
|
+
def write(self, oprot):
|
|
2572
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2573
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2574
|
+
return
|
|
2575
|
+
oprot.writeStructBegin('GetFunctions_args')
|
|
2576
|
+
if self.req is not None:
|
|
2577
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2578
|
+
self.req.write(oprot)
|
|
2579
|
+
oprot.writeFieldEnd()
|
|
2580
|
+
oprot.writeFieldStop()
|
|
2581
|
+
oprot.writeStructEnd()
|
|
2582
|
+
|
|
2583
|
+
def validate(self):
|
|
2584
|
+
return
|
|
2585
|
+
|
|
2586
|
+
def __repr__(self):
|
|
2587
|
+
L = ['%s=%r' % (key, value)
|
|
2588
|
+
for key, value in self.__dict__.items()]
|
|
2589
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2590
|
+
|
|
2591
|
+
def __eq__(self, other):
|
|
2592
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2593
|
+
|
|
2594
|
+
def __ne__(self, other):
|
|
2595
|
+
return not (self == other)
|
|
2596
|
+
|
|
2597
|
+
|
|
2598
|
+
class GetFunctions_result(object):
|
|
2599
|
+
"""
|
|
2600
|
+
Attributes:
|
|
2601
|
+
- success
|
|
2602
|
+
"""
|
|
2603
|
+
|
|
2604
|
+
thrift_spec = (
|
|
2605
|
+
(0, TType.STRUCT, 'success', (TGetFunctionsResp, TGetFunctionsResp.thrift_spec), None, ), # 0
|
|
2606
|
+
)
|
|
2607
|
+
|
|
2608
|
+
def __init__(self, success=None,):
|
|
2609
|
+
self.success = success
|
|
2610
|
+
|
|
2611
|
+
def read(self, iprot):
|
|
2612
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2613
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2614
|
+
return
|
|
2615
|
+
iprot.readStructBegin()
|
|
2616
|
+
while True:
|
|
2617
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2618
|
+
if ftype == TType.STOP:
|
|
2619
|
+
break
|
|
2620
|
+
if fid == 0:
|
|
2621
|
+
if ftype == TType.STRUCT:
|
|
2622
|
+
self.success = TGetFunctionsResp()
|
|
2623
|
+
self.success.read(iprot)
|
|
2624
|
+
else:
|
|
2625
|
+
iprot.skip(ftype)
|
|
2626
|
+
else:
|
|
2627
|
+
iprot.skip(ftype)
|
|
2628
|
+
iprot.readFieldEnd()
|
|
2629
|
+
iprot.readStructEnd()
|
|
2630
|
+
|
|
2631
|
+
def write(self, oprot):
|
|
2632
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2633
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2634
|
+
return
|
|
2635
|
+
oprot.writeStructBegin('GetFunctions_result')
|
|
2636
|
+
if self.success is not None:
|
|
2637
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2638
|
+
self.success.write(oprot)
|
|
2639
|
+
oprot.writeFieldEnd()
|
|
2640
|
+
oprot.writeFieldStop()
|
|
2641
|
+
oprot.writeStructEnd()
|
|
2642
|
+
|
|
2643
|
+
def validate(self):
|
|
2644
|
+
return
|
|
2645
|
+
|
|
2646
|
+
def __repr__(self):
|
|
2647
|
+
L = ['%s=%r' % (key, value)
|
|
2648
|
+
for key, value in self.__dict__.items()]
|
|
2649
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2650
|
+
|
|
2651
|
+
def __eq__(self, other):
|
|
2652
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2653
|
+
|
|
2654
|
+
def __ne__(self, other):
|
|
2655
|
+
return not (self == other)
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
class GetPrimaryKeys_args(object):
|
|
2659
|
+
"""
|
|
2660
|
+
Attributes:
|
|
2661
|
+
- req
|
|
2662
|
+
"""
|
|
2663
|
+
|
|
2664
|
+
thrift_spec = (
|
|
2665
|
+
None, # 0
|
|
2666
|
+
(1, TType.STRUCT, 'req', (TGetPrimaryKeysReq, TGetPrimaryKeysReq.thrift_spec), None, ), # 1
|
|
2667
|
+
)
|
|
2668
|
+
|
|
2669
|
+
def __init__(self, req=None,):
|
|
2670
|
+
self.req = req
|
|
2671
|
+
|
|
2672
|
+
def read(self, iprot):
|
|
2673
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2674
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2675
|
+
return
|
|
2676
|
+
iprot.readStructBegin()
|
|
2677
|
+
while True:
|
|
2678
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2679
|
+
if ftype == TType.STOP:
|
|
2680
|
+
break
|
|
2681
|
+
if fid == 1:
|
|
2682
|
+
if ftype == TType.STRUCT:
|
|
2683
|
+
self.req = TGetPrimaryKeysReq()
|
|
2684
|
+
self.req.read(iprot)
|
|
2685
|
+
else:
|
|
2686
|
+
iprot.skip(ftype)
|
|
2687
|
+
else:
|
|
2688
|
+
iprot.skip(ftype)
|
|
2689
|
+
iprot.readFieldEnd()
|
|
2690
|
+
iprot.readStructEnd()
|
|
2691
|
+
|
|
2692
|
+
def write(self, oprot):
|
|
2693
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2694
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2695
|
+
return
|
|
2696
|
+
oprot.writeStructBegin('GetPrimaryKeys_args')
|
|
2697
|
+
if self.req is not None:
|
|
2698
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2699
|
+
self.req.write(oprot)
|
|
2700
|
+
oprot.writeFieldEnd()
|
|
2701
|
+
oprot.writeFieldStop()
|
|
2702
|
+
oprot.writeStructEnd()
|
|
2703
|
+
|
|
2704
|
+
def validate(self):
|
|
2705
|
+
return
|
|
2706
|
+
|
|
2707
|
+
def __repr__(self):
|
|
2708
|
+
L = ['%s=%r' % (key, value)
|
|
2709
|
+
for key, value in self.__dict__.items()]
|
|
2710
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2711
|
+
|
|
2712
|
+
def __eq__(self, other):
|
|
2713
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2714
|
+
|
|
2715
|
+
def __ne__(self, other):
|
|
2716
|
+
return not (self == other)
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
class GetPrimaryKeys_result(object):
|
|
2720
|
+
"""
|
|
2721
|
+
Attributes:
|
|
2722
|
+
- success
|
|
2723
|
+
"""
|
|
2724
|
+
|
|
2725
|
+
thrift_spec = (
|
|
2726
|
+
(0, TType.STRUCT, 'success', (TGetPrimaryKeysResp, TGetPrimaryKeysResp.thrift_spec), None, ), # 0
|
|
2727
|
+
)
|
|
2728
|
+
|
|
2729
|
+
def __init__(self, success=None,):
|
|
2730
|
+
self.success = success
|
|
2731
|
+
|
|
2732
|
+
def read(self, iprot):
|
|
2733
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2734
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2735
|
+
return
|
|
2736
|
+
iprot.readStructBegin()
|
|
2737
|
+
while True:
|
|
2738
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2739
|
+
if ftype == TType.STOP:
|
|
2740
|
+
break
|
|
2741
|
+
if fid == 0:
|
|
2742
|
+
if ftype == TType.STRUCT:
|
|
2743
|
+
self.success = TGetPrimaryKeysResp()
|
|
2744
|
+
self.success.read(iprot)
|
|
2745
|
+
else:
|
|
2746
|
+
iprot.skip(ftype)
|
|
2747
|
+
else:
|
|
2748
|
+
iprot.skip(ftype)
|
|
2749
|
+
iprot.readFieldEnd()
|
|
2750
|
+
iprot.readStructEnd()
|
|
2751
|
+
|
|
2752
|
+
def write(self, oprot):
|
|
2753
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2754
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2755
|
+
return
|
|
2756
|
+
oprot.writeStructBegin('GetPrimaryKeys_result')
|
|
2757
|
+
if self.success is not None:
|
|
2758
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2759
|
+
self.success.write(oprot)
|
|
2760
|
+
oprot.writeFieldEnd()
|
|
2761
|
+
oprot.writeFieldStop()
|
|
2762
|
+
oprot.writeStructEnd()
|
|
2763
|
+
|
|
2764
|
+
def validate(self):
|
|
2765
|
+
return
|
|
2766
|
+
|
|
2767
|
+
def __repr__(self):
|
|
2768
|
+
L = ['%s=%r' % (key, value)
|
|
2769
|
+
for key, value in self.__dict__.items()]
|
|
2770
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2771
|
+
|
|
2772
|
+
def __eq__(self, other):
|
|
2773
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2774
|
+
|
|
2775
|
+
def __ne__(self, other):
|
|
2776
|
+
return not (self == other)
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
class GetCrossReference_args(object):
|
|
2780
|
+
"""
|
|
2781
|
+
Attributes:
|
|
2782
|
+
- req
|
|
2783
|
+
"""
|
|
2784
|
+
|
|
2785
|
+
thrift_spec = (
|
|
2786
|
+
None, # 0
|
|
2787
|
+
(1, TType.STRUCT, 'req', (TGetCrossReferenceReq, TGetCrossReferenceReq.thrift_spec), None, ), # 1
|
|
2788
|
+
)
|
|
2789
|
+
|
|
2790
|
+
def __init__(self, req=None,):
|
|
2791
|
+
self.req = req
|
|
2792
|
+
|
|
2793
|
+
def read(self, iprot):
|
|
2794
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2795
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2796
|
+
return
|
|
2797
|
+
iprot.readStructBegin()
|
|
2798
|
+
while True:
|
|
2799
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2800
|
+
if ftype == TType.STOP:
|
|
2801
|
+
break
|
|
2802
|
+
if fid == 1:
|
|
2803
|
+
if ftype == TType.STRUCT:
|
|
2804
|
+
self.req = TGetCrossReferenceReq()
|
|
2805
|
+
self.req.read(iprot)
|
|
2806
|
+
else:
|
|
2807
|
+
iprot.skip(ftype)
|
|
2808
|
+
else:
|
|
2809
|
+
iprot.skip(ftype)
|
|
2810
|
+
iprot.readFieldEnd()
|
|
2811
|
+
iprot.readStructEnd()
|
|
2812
|
+
|
|
2813
|
+
def write(self, oprot):
|
|
2814
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2815
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2816
|
+
return
|
|
2817
|
+
oprot.writeStructBegin('GetCrossReference_args')
|
|
2818
|
+
if self.req is not None:
|
|
2819
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2820
|
+
self.req.write(oprot)
|
|
2821
|
+
oprot.writeFieldEnd()
|
|
2822
|
+
oprot.writeFieldStop()
|
|
2823
|
+
oprot.writeStructEnd()
|
|
2824
|
+
|
|
2825
|
+
def validate(self):
|
|
2826
|
+
return
|
|
2827
|
+
|
|
2828
|
+
def __repr__(self):
|
|
2829
|
+
L = ['%s=%r' % (key, value)
|
|
2830
|
+
for key, value in self.__dict__.items()]
|
|
2831
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2832
|
+
|
|
2833
|
+
def __eq__(self, other):
|
|
2834
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2835
|
+
|
|
2836
|
+
def __ne__(self, other):
|
|
2837
|
+
return not (self == other)
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
class GetCrossReference_result(object):
|
|
2841
|
+
"""
|
|
2842
|
+
Attributes:
|
|
2843
|
+
- success
|
|
2844
|
+
"""
|
|
2845
|
+
|
|
2846
|
+
thrift_spec = (
|
|
2847
|
+
(0, TType.STRUCT, 'success', (TGetCrossReferenceResp, TGetCrossReferenceResp.thrift_spec), None, ), # 0
|
|
2848
|
+
)
|
|
2849
|
+
|
|
2850
|
+
def __init__(self, success=None,):
|
|
2851
|
+
self.success = success
|
|
2852
|
+
|
|
2853
|
+
def read(self, iprot):
|
|
2854
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2855
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2856
|
+
return
|
|
2857
|
+
iprot.readStructBegin()
|
|
2858
|
+
while True:
|
|
2859
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2860
|
+
if ftype == TType.STOP:
|
|
2861
|
+
break
|
|
2862
|
+
if fid == 0:
|
|
2863
|
+
if ftype == TType.STRUCT:
|
|
2864
|
+
self.success = TGetCrossReferenceResp()
|
|
2865
|
+
self.success.read(iprot)
|
|
2866
|
+
else:
|
|
2867
|
+
iprot.skip(ftype)
|
|
2868
|
+
else:
|
|
2869
|
+
iprot.skip(ftype)
|
|
2870
|
+
iprot.readFieldEnd()
|
|
2871
|
+
iprot.readStructEnd()
|
|
2872
|
+
|
|
2873
|
+
def write(self, oprot):
|
|
2874
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2875
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2876
|
+
return
|
|
2877
|
+
oprot.writeStructBegin('GetCrossReference_result')
|
|
2878
|
+
if self.success is not None:
|
|
2879
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
2880
|
+
self.success.write(oprot)
|
|
2881
|
+
oprot.writeFieldEnd()
|
|
2882
|
+
oprot.writeFieldStop()
|
|
2883
|
+
oprot.writeStructEnd()
|
|
2884
|
+
|
|
2885
|
+
def validate(self):
|
|
2886
|
+
return
|
|
2887
|
+
|
|
2888
|
+
def __repr__(self):
|
|
2889
|
+
L = ['%s=%r' % (key, value)
|
|
2890
|
+
for key, value in self.__dict__.items()]
|
|
2891
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2892
|
+
|
|
2893
|
+
def __eq__(self, other):
|
|
2894
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2895
|
+
|
|
2896
|
+
def __ne__(self, other):
|
|
2897
|
+
return not (self == other)
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
class GetOperationStatus_args(object):
|
|
2901
|
+
"""
|
|
2902
|
+
Attributes:
|
|
2903
|
+
- req
|
|
2904
|
+
"""
|
|
2905
|
+
|
|
2906
|
+
thrift_spec = (
|
|
2907
|
+
None, # 0
|
|
2908
|
+
(1, TType.STRUCT, 'req', (TGetOperationStatusReq, TGetOperationStatusReq.thrift_spec), None, ), # 1
|
|
2909
|
+
)
|
|
2910
|
+
|
|
2911
|
+
def __init__(self, req=None,):
|
|
2912
|
+
self.req = req
|
|
2913
|
+
|
|
2914
|
+
def read(self, iprot):
|
|
2915
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2916
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2917
|
+
return
|
|
2918
|
+
iprot.readStructBegin()
|
|
2919
|
+
while True:
|
|
2920
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2921
|
+
if ftype == TType.STOP:
|
|
2922
|
+
break
|
|
2923
|
+
if fid == 1:
|
|
2924
|
+
if ftype == TType.STRUCT:
|
|
2925
|
+
self.req = TGetOperationStatusReq()
|
|
2926
|
+
self.req.read(iprot)
|
|
2927
|
+
else:
|
|
2928
|
+
iprot.skip(ftype)
|
|
2929
|
+
else:
|
|
2930
|
+
iprot.skip(ftype)
|
|
2931
|
+
iprot.readFieldEnd()
|
|
2932
|
+
iprot.readStructEnd()
|
|
2933
|
+
|
|
2934
|
+
def write(self, oprot):
|
|
2935
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2936
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2937
|
+
return
|
|
2938
|
+
oprot.writeStructBegin('GetOperationStatus_args')
|
|
2939
|
+
if self.req is not None:
|
|
2940
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
2941
|
+
self.req.write(oprot)
|
|
2942
|
+
oprot.writeFieldEnd()
|
|
2943
|
+
oprot.writeFieldStop()
|
|
2944
|
+
oprot.writeStructEnd()
|
|
2945
|
+
|
|
2946
|
+
def validate(self):
|
|
2947
|
+
return
|
|
2948
|
+
|
|
2949
|
+
def __repr__(self):
|
|
2950
|
+
L = ['%s=%r' % (key, value)
|
|
2951
|
+
for key, value in self.__dict__.items()]
|
|
2952
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
2953
|
+
|
|
2954
|
+
def __eq__(self, other):
|
|
2955
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
2956
|
+
|
|
2957
|
+
def __ne__(self, other):
|
|
2958
|
+
return not (self == other)
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
class GetOperationStatus_result(object):
|
|
2962
|
+
"""
|
|
2963
|
+
Attributes:
|
|
2964
|
+
- success
|
|
2965
|
+
"""
|
|
2966
|
+
|
|
2967
|
+
thrift_spec = (
|
|
2968
|
+
(0, TType.STRUCT, 'success', (TGetOperationStatusResp, TGetOperationStatusResp.thrift_spec), None, ), # 0
|
|
2969
|
+
)
|
|
2970
|
+
|
|
2971
|
+
def __init__(self, success=None,):
|
|
2972
|
+
self.success = success
|
|
2973
|
+
|
|
2974
|
+
def read(self, iprot):
|
|
2975
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
2976
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
2977
|
+
return
|
|
2978
|
+
iprot.readStructBegin()
|
|
2979
|
+
while True:
|
|
2980
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
2981
|
+
if ftype == TType.STOP:
|
|
2982
|
+
break
|
|
2983
|
+
if fid == 0:
|
|
2984
|
+
if ftype == TType.STRUCT:
|
|
2985
|
+
self.success = TGetOperationStatusResp()
|
|
2986
|
+
self.success.read(iprot)
|
|
2987
|
+
else:
|
|
2988
|
+
iprot.skip(ftype)
|
|
2989
|
+
else:
|
|
2990
|
+
iprot.skip(ftype)
|
|
2991
|
+
iprot.readFieldEnd()
|
|
2992
|
+
iprot.readStructEnd()
|
|
2993
|
+
|
|
2994
|
+
def write(self, oprot):
|
|
2995
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
2996
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
2997
|
+
return
|
|
2998
|
+
oprot.writeStructBegin('GetOperationStatus_result')
|
|
2999
|
+
if self.success is not None:
|
|
3000
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3001
|
+
self.success.write(oprot)
|
|
3002
|
+
oprot.writeFieldEnd()
|
|
3003
|
+
oprot.writeFieldStop()
|
|
3004
|
+
oprot.writeStructEnd()
|
|
3005
|
+
|
|
3006
|
+
def validate(self):
|
|
3007
|
+
return
|
|
3008
|
+
|
|
3009
|
+
def __repr__(self):
|
|
3010
|
+
L = ['%s=%r' % (key, value)
|
|
3011
|
+
for key, value in self.__dict__.items()]
|
|
3012
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3013
|
+
|
|
3014
|
+
def __eq__(self, other):
|
|
3015
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3016
|
+
|
|
3017
|
+
def __ne__(self, other):
|
|
3018
|
+
return not (self == other)
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
class CancelOperation_args(object):
|
|
3022
|
+
"""
|
|
3023
|
+
Attributes:
|
|
3024
|
+
- req
|
|
3025
|
+
"""
|
|
3026
|
+
|
|
3027
|
+
thrift_spec = (
|
|
3028
|
+
None, # 0
|
|
3029
|
+
(1, TType.STRUCT, 'req', (TCancelOperationReq, TCancelOperationReq.thrift_spec), None, ), # 1
|
|
3030
|
+
)
|
|
3031
|
+
|
|
3032
|
+
def __init__(self, req=None,):
|
|
3033
|
+
self.req = req
|
|
3034
|
+
|
|
3035
|
+
def read(self, iprot):
|
|
3036
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3037
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3038
|
+
return
|
|
3039
|
+
iprot.readStructBegin()
|
|
3040
|
+
while True:
|
|
3041
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3042
|
+
if ftype == TType.STOP:
|
|
3043
|
+
break
|
|
3044
|
+
if fid == 1:
|
|
3045
|
+
if ftype == TType.STRUCT:
|
|
3046
|
+
self.req = TCancelOperationReq()
|
|
3047
|
+
self.req.read(iprot)
|
|
3048
|
+
else:
|
|
3049
|
+
iprot.skip(ftype)
|
|
3050
|
+
else:
|
|
3051
|
+
iprot.skip(ftype)
|
|
3052
|
+
iprot.readFieldEnd()
|
|
3053
|
+
iprot.readStructEnd()
|
|
3054
|
+
|
|
3055
|
+
def write(self, oprot):
|
|
3056
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3057
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3058
|
+
return
|
|
3059
|
+
oprot.writeStructBegin('CancelOperation_args')
|
|
3060
|
+
if self.req is not None:
|
|
3061
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3062
|
+
self.req.write(oprot)
|
|
3063
|
+
oprot.writeFieldEnd()
|
|
3064
|
+
oprot.writeFieldStop()
|
|
3065
|
+
oprot.writeStructEnd()
|
|
3066
|
+
|
|
3067
|
+
def validate(self):
|
|
3068
|
+
return
|
|
3069
|
+
|
|
3070
|
+
def __repr__(self):
|
|
3071
|
+
L = ['%s=%r' % (key, value)
|
|
3072
|
+
for key, value in self.__dict__.items()]
|
|
3073
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3074
|
+
|
|
3075
|
+
def __eq__(self, other):
|
|
3076
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3077
|
+
|
|
3078
|
+
def __ne__(self, other):
|
|
3079
|
+
return not (self == other)
|
|
3080
|
+
|
|
3081
|
+
|
|
3082
|
+
class CancelOperation_result(object):
|
|
3083
|
+
"""
|
|
3084
|
+
Attributes:
|
|
3085
|
+
- success
|
|
3086
|
+
"""
|
|
3087
|
+
|
|
3088
|
+
thrift_spec = (
|
|
3089
|
+
(0, TType.STRUCT, 'success', (TCancelOperationResp, TCancelOperationResp.thrift_spec), None, ), # 0
|
|
3090
|
+
)
|
|
3091
|
+
|
|
3092
|
+
def __init__(self, success=None,):
|
|
3093
|
+
self.success = success
|
|
3094
|
+
|
|
3095
|
+
def read(self, iprot):
|
|
3096
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3097
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3098
|
+
return
|
|
3099
|
+
iprot.readStructBegin()
|
|
3100
|
+
while True:
|
|
3101
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3102
|
+
if ftype == TType.STOP:
|
|
3103
|
+
break
|
|
3104
|
+
if fid == 0:
|
|
3105
|
+
if ftype == TType.STRUCT:
|
|
3106
|
+
self.success = TCancelOperationResp()
|
|
3107
|
+
self.success.read(iprot)
|
|
3108
|
+
else:
|
|
3109
|
+
iprot.skip(ftype)
|
|
3110
|
+
else:
|
|
3111
|
+
iprot.skip(ftype)
|
|
3112
|
+
iprot.readFieldEnd()
|
|
3113
|
+
iprot.readStructEnd()
|
|
3114
|
+
|
|
3115
|
+
def write(self, oprot):
|
|
3116
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3117
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3118
|
+
return
|
|
3119
|
+
oprot.writeStructBegin('CancelOperation_result')
|
|
3120
|
+
if self.success is not None:
|
|
3121
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3122
|
+
self.success.write(oprot)
|
|
3123
|
+
oprot.writeFieldEnd()
|
|
3124
|
+
oprot.writeFieldStop()
|
|
3125
|
+
oprot.writeStructEnd()
|
|
3126
|
+
|
|
3127
|
+
def validate(self):
|
|
3128
|
+
return
|
|
3129
|
+
|
|
3130
|
+
def __repr__(self):
|
|
3131
|
+
L = ['%s=%r' % (key, value)
|
|
3132
|
+
for key, value in self.__dict__.items()]
|
|
3133
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3134
|
+
|
|
3135
|
+
def __eq__(self, other):
|
|
3136
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3137
|
+
|
|
3138
|
+
def __ne__(self, other):
|
|
3139
|
+
return not (self == other)
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
class CloseOperation_args(object):
|
|
3143
|
+
"""
|
|
3144
|
+
Attributes:
|
|
3145
|
+
- req
|
|
3146
|
+
"""
|
|
3147
|
+
|
|
3148
|
+
thrift_spec = (
|
|
3149
|
+
None, # 0
|
|
3150
|
+
(1, TType.STRUCT, 'req', (TCloseOperationReq, TCloseOperationReq.thrift_spec), None, ), # 1
|
|
3151
|
+
)
|
|
3152
|
+
|
|
3153
|
+
def __init__(self, req=None,):
|
|
3154
|
+
self.req = req
|
|
3155
|
+
|
|
3156
|
+
def read(self, iprot):
|
|
3157
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3158
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3159
|
+
return
|
|
3160
|
+
iprot.readStructBegin()
|
|
3161
|
+
while True:
|
|
3162
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3163
|
+
if ftype == TType.STOP:
|
|
3164
|
+
break
|
|
3165
|
+
if fid == 1:
|
|
3166
|
+
if ftype == TType.STRUCT:
|
|
3167
|
+
self.req = TCloseOperationReq()
|
|
3168
|
+
self.req.read(iprot)
|
|
3169
|
+
else:
|
|
3170
|
+
iprot.skip(ftype)
|
|
3171
|
+
else:
|
|
3172
|
+
iprot.skip(ftype)
|
|
3173
|
+
iprot.readFieldEnd()
|
|
3174
|
+
iprot.readStructEnd()
|
|
3175
|
+
|
|
3176
|
+
def write(self, oprot):
|
|
3177
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3178
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3179
|
+
return
|
|
3180
|
+
oprot.writeStructBegin('CloseOperation_args')
|
|
3181
|
+
if self.req is not None:
|
|
3182
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3183
|
+
self.req.write(oprot)
|
|
3184
|
+
oprot.writeFieldEnd()
|
|
3185
|
+
oprot.writeFieldStop()
|
|
3186
|
+
oprot.writeStructEnd()
|
|
3187
|
+
|
|
3188
|
+
def validate(self):
|
|
3189
|
+
return
|
|
3190
|
+
|
|
3191
|
+
def __repr__(self):
|
|
3192
|
+
L = ['%s=%r' % (key, value)
|
|
3193
|
+
for key, value in self.__dict__.items()]
|
|
3194
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3195
|
+
|
|
3196
|
+
def __eq__(self, other):
|
|
3197
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3198
|
+
|
|
3199
|
+
def __ne__(self, other):
|
|
3200
|
+
return not (self == other)
|
|
3201
|
+
|
|
3202
|
+
|
|
3203
|
+
class CloseOperation_result(object):
|
|
3204
|
+
"""
|
|
3205
|
+
Attributes:
|
|
3206
|
+
- success
|
|
3207
|
+
"""
|
|
3208
|
+
|
|
3209
|
+
thrift_spec = (
|
|
3210
|
+
(0, TType.STRUCT, 'success', (TCloseOperationResp, TCloseOperationResp.thrift_spec), None, ), # 0
|
|
3211
|
+
)
|
|
3212
|
+
|
|
3213
|
+
def __init__(self, success=None,):
|
|
3214
|
+
self.success = success
|
|
3215
|
+
|
|
3216
|
+
def read(self, iprot):
|
|
3217
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3218
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3219
|
+
return
|
|
3220
|
+
iprot.readStructBegin()
|
|
3221
|
+
while True:
|
|
3222
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3223
|
+
if ftype == TType.STOP:
|
|
3224
|
+
break
|
|
3225
|
+
if fid == 0:
|
|
3226
|
+
if ftype == TType.STRUCT:
|
|
3227
|
+
self.success = TCloseOperationResp()
|
|
3228
|
+
self.success.read(iprot)
|
|
3229
|
+
else:
|
|
3230
|
+
iprot.skip(ftype)
|
|
3231
|
+
else:
|
|
3232
|
+
iprot.skip(ftype)
|
|
3233
|
+
iprot.readFieldEnd()
|
|
3234
|
+
iprot.readStructEnd()
|
|
3235
|
+
|
|
3236
|
+
def write(self, oprot):
|
|
3237
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3238
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3239
|
+
return
|
|
3240
|
+
oprot.writeStructBegin('CloseOperation_result')
|
|
3241
|
+
if self.success is not None:
|
|
3242
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3243
|
+
self.success.write(oprot)
|
|
3244
|
+
oprot.writeFieldEnd()
|
|
3245
|
+
oprot.writeFieldStop()
|
|
3246
|
+
oprot.writeStructEnd()
|
|
3247
|
+
|
|
3248
|
+
def validate(self):
|
|
3249
|
+
return
|
|
3250
|
+
|
|
3251
|
+
def __repr__(self):
|
|
3252
|
+
L = ['%s=%r' % (key, value)
|
|
3253
|
+
for key, value in self.__dict__.items()]
|
|
3254
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3255
|
+
|
|
3256
|
+
def __eq__(self, other):
|
|
3257
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3258
|
+
|
|
3259
|
+
def __ne__(self, other):
|
|
3260
|
+
return not (self == other)
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
class GetResultSetMetadata_args(object):
|
|
3264
|
+
"""
|
|
3265
|
+
Attributes:
|
|
3266
|
+
- req
|
|
3267
|
+
"""
|
|
3268
|
+
|
|
3269
|
+
thrift_spec = (
|
|
3270
|
+
None, # 0
|
|
3271
|
+
(1, TType.STRUCT, 'req', (TGetResultSetMetadataReq, TGetResultSetMetadataReq.thrift_spec), None, ), # 1
|
|
3272
|
+
)
|
|
3273
|
+
|
|
3274
|
+
def __init__(self, req=None,):
|
|
3275
|
+
self.req = req
|
|
3276
|
+
|
|
3277
|
+
def read(self, iprot):
|
|
3278
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3279
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3280
|
+
return
|
|
3281
|
+
iprot.readStructBegin()
|
|
3282
|
+
while True:
|
|
3283
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3284
|
+
if ftype == TType.STOP:
|
|
3285
|
+
break
|
|
3286
|
+
if fid == 1:
|
|
3287
|
+
if ftype == TType.STRUCT:
|
|
3288
|
+
self.req = TGetResultSetMetadataReq()
|
|
3289
|
+
self.req.read(iprot)
|
|
3290
|
+
else:
|
|
3291
|
+
iprot.skip(ftype)
|
|
3292
|
+
else:
|
|
3293
|
+
iprot.skip(ftype)
|
|
3294
|
+
iprot.readFieldEnd()
|
|
3295
|
+
iprot.readStructEnd()
|
|
3296
|
+
|
|
3297
|
+
def write(self, oprot):
|
|
3298
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3299
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3300
|
+
return
|
|
3301
|
+
oprot.writeStructBegin('GetResultSetMetadata_args')
|
|
3302
|
+
if self.req is not None:
|
|
3303
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3304
|
+
self.req.write(oprot)
|
|
3305
|
+
oprot.writeFieldEnd()
|
|
3306
|
+
oprot.writeFieldStop()
|
|
3307
|
+
oprot.writeStructEnd()
|
|
3308
|
+
|
|
3309
|
+
def validate(self):
|
|
3310
|
+
return
|
|
3311
|
+
|
|
3312
|
+
def __repr__(self):
|
|
3313
|
+
L = ['%s=%r' % (key, value)
|
|
3314
|
+
for key, value in self.__dict__.items()]
|
|
3315
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3316
|
+
|
|
3317
|
+
def __eq__(self, other):
|
|
3318
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3319
|
+
|
|
3320
|
+
def __ne__(self, other):
|
|
3321
|
+
return not (self == other)
|
|
3322
|
+
|
|
3323
|
+
|
|
3324
|
+
class GetResultSetMetadata_result(object):
|
|
3325
|
+
"""
|
|
3326
|
+
Attributes:
|
|
3327
|
+
- success
|
|
3328
|
+
"""
|
|
3329
|
+
|
|
3330
|
+
thrift_spec = (
|
|
3331
|
+
(0, TType.STRUCT, 'success', (TGetResultSetMetadataResp, TGetResultSetMetadataResp.thrift_spec), None, ), # 0
|
|
3332
|
+
)
|
|
3333
|
+
|
|
3334
|
+
def __init__(self, success=None,):
|
|
3335
|
+
self.success = success
|
|
3336
|
+
|
|
3337
|
+
def read(self, iprot):
|
|
3338
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3339
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3340
|
+
return
|
|
3341
|
+
iprot.readStructBegin()
|
|
3342
|
+
while True:
|
|
3343
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3344
|
+
if ftype == TType.STOP:
|
|
3345
|
+
break
|
|
3346
|
+
if fid == 0:
|
|
3347
|
+
if ftype == TType.STRUCT:
|
|
3348
|
+
self.success = TGetResultSetMetadataResp()
|
|
3349
|
+
self.success.read(iprot)
|
|
3350
|
+
else:
|
|
3351
|
+
iprot.skip(ftype)
|
|
3352
|
+
else:
|
|
3353
|
+
iprot.skip(ftype)
|
|
3354
|
+
iprot.readFieldEnd()
|
|
3355
|
+
iprot.readStructEnd()
|
|
3356
|
+
|
|
3357
|
+
def write(self, oprot):
|
|
3358
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3359
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3360
|
+
return
|
|
3361
|
+
oprot.writeStructBegin('GetResultSetMetadata_result')
|
|
3362
|
+
if self.success is not None:
|
|
3363
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3364
|
+
self.success.write(oprot)
|
|
3365
|
+
oprot.writeFieldEnd()
|
|
3366
|
+
oprot.writeFieldStop()
|
|
3367
|
+
oprot.writeStructEnd()
|
|
3368
|
+
|
|
3369
|
+
def validate(self):
|
|
3370
|
+
return
|
|
3371
|
+
|
|
3372
|
+
def __repr__(self):
|
|
3373
|
+
L = ['%s=%r' % (key, value)
|
|
3374
|
+
for key, value in self.__dict__.items()]
|
|
3375
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3376
|
+
|
|
3377
|
+
def __eq__(self, other):
|
|
3378
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3379
|
+
|
|
3380
|
+
def __ne__(self, other):
|
|
3381
|
+
return not (self == other)
|
|
3382
|
+
|
|
3383
|
+
|
|
3384
|
+
class FetchResults_args(object):
|
|
3385
|
+
"""
|
|
3386
|
+
Attributes:
|
|
3387
|
+
- req
|
|
3388
|
+
"""
|
|
3389
|
+
|
|
3390
|
+
thrift_spec = (
|
|
3391
|
+
None, # 0
|
|
3392
|
+
(1, TType.STRUCT, 'req', (TFetchResultsReq, TFetchResultsReq.thrift_spec), None, ), # 1
|
|
3393
|
+
)
|
|
3394
|
+
|
|
3395
|
+
def __init__(self, req=None,):
|
|
3396
|
+
self.req = req
|
|
3397
|
+
|
|
3398
|
+
def read(self, iprot):
|
|
3399
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3400
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3401
|
+
return
|
|
3402
|
+
iprot.readStructBegin()
|
|
3403
|
+
while True:
|
|
3404
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3405
|
+
if ftype == TType.STOP:
|
|
3406
|
+
break
|
|
3407
|
+
if fid == 1:
|
|
3408
|
+
if ftype == TType.STRUCT:
|
|
3409
|
+
self.req = TFetchResultsReq()
|
|
3410
|
+
self.req.read(iprot)
|
|
3411
|
+
else:
|
|
3412
|
+
iprot.skip(ftype)
|
|
3413
|
+
else:
|
|
3414
|
+
iprot.skip(ftype)
|
|
3415
|
+
iprot.readFieldEnd()
|
|
3416
|
+
iprot.readStructEnd()
|
|
3417
|
+
|
|
3418
|
+
def write(self, oprot):
|
|
3419
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3420
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3421
|
+
return
|
|
3422
|
+
oprot.writeStructBegin('FetchResults_args')
|
|
3423
|
+
if self.req is not None:
|
|
3424
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3425
|
+
self.req.write(oprot)
|
|
3426
|
+
oprot.writeFieldEnd()
|
|
3427
|
+
oprot.writeFieldStop()
|
|
3428
|
+
oprot.writeStructEnd()
|
|
3429
|
+
|
|
3430
|
+
def validate(self):
|
|
3431
|
+
return
|
|
3432
|
+
|
|
3433
|
+
def __repr__(self):
|
|
3434
|
+
L = ['%s=%r' % (key, value)
|
|
3435
|
+
for key, value in self.__dict__.items()]
|
|
3436
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3437
|
+
|
|
3438
|
+
def __eq__(self, other):
|
|
3439
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3440
|
+
|
|
3441
|
+
def __ne__(self, other):
|
|
3442
|
+
return not (self == other)
|
|
3443
|
+
|
|
3444
|
+
|
|
3445
|
+
class FetchResults_result(object):
|
|
3446
|
+
"""
|
|
3447
|
+
Attributes:
|
|
3448
|
+
- success
|
|
3449
|
+
"""
|
|
3450
|
+
|
|
3451
|
+
thrift_spec = (
|
|
3452
|
+
(0, TType.STRUCT, 'success', (TFetchResultsResp, TFetchResultsResp.thrift_spec), None, ), # 0
|
|
3453
|
+
)
|
|
3454
|
+
|
|
3455
|
+
def __init__(self, success=None,):
|
|
3456
|
+
self.success = success
|
|
3457
|
+
|
|
3458
|
+
def read(self, iprot):
|
|
3459
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3460
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3461
|
+
return
|
|
3462
|
+
iprot.readStructBegin()
|
|
3463
|
+
while True:
|
|
3464
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3465
|
+
if ftype == TType.STOP:
|
|
3466
|
+
break
|
|
3467
|
+
if fid == 0:
|
|
3468
|
+
if ftype == TType.STRUCT:
|
|
3469
|
+
self.success = TFetchResultsResp()
|
|
3470
|
+
self.success.read(iprot)
|
|
3471
|
+
else:
|
|
3472
|
+
iprot.skip(ftype)
|
|
3473
|
+
else:
|
|
3474
|
+
iprot.skip(ftype)
|
|
3475
|
+
iprot.readFieldEnd()
|
|
3476
|
+
iprot.readStructEnd()
|
|
3477
|
+
|
|
3478
|
+
def write(self, oprot):
|
|
3479
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3480
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3481
|
+
return
|
|
3482
|
+
oprot.writeStructBegin('FetchResults_result')
|
|
3483
|
+
if self.success is not None:
|
|
3484
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3485
|
+
self.success.write(oprot)
|
|
3486
|
+
oprot.writeFieldEnd()
|
|
3487
|
+
oprot.writeFieldStop()
|
|
3488
|
+
oprot.writeStructEnd()
|
|
3489
|
+
|
|
3490
|
+
def validate(self):
|
|
3491
|
+
return
|
|
3492
|
+
|
|
3493
|
+
def __repr__(self):
|
|
3494
|
+
L = ['%s=%r' % (key, value)
|
|
3495
|
+
for key, value in self.__dict__.items()]
|
|
3496
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3497
|
+
|
|
3498
|
+
def __eq__(self, other):
|
|
3499
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3500
|
+
|
|
3501
|
+
def __ne__(self, other):
|
|
3502
|
+
return not (self == other)
|
|
3503
|
+
|
|
3504
|
+
|
|
3505
|
+
class GetDelegationToken_args(object):
|
|
3506
|
+
"""
|
|
3507
|
+
Attributes:
|
|
3508
|
+
- req
|
|
3509
|
+
"""
|
|
3510
|
+
|
|
3511
|
+
thrift_spec = (
|
|
3512
|
+
None, # 0
|
|
3513
|
+
(1, TType.STRUCT, 'req', (TGetDelegationTokenReq, TGetDelegationTokenReq.thrift_spec), None, ), # 1
|
|
3514
|
+
)
|
|
3515
|
+
|
|
3516
|
+
def __init__(self, req=None,):
|
|
3517
|
+
self.req = req
|
|
3518
|
+
|
|
3519
|
+
def read(self, iprot):
|
|
3520
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3521
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3522
|
+
return
|
|
3523
|
+
iprot.readStructBegin()
|
|
3524
|
+
while True:
|
|
3525
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3526
|
+
if ftype == TType.STOP:
|
|
3527
|
+
break
|
|
3528
|
+
if fid == 1:
|
|
3529
|
+
if ftype == TType.STRUCT:
|
|
3530
|
+
self.req = TGetDelegationTokenReq()
|
|
3531
|
+
self.req.read(iprot)
|
|
3532
|
+
else:
|
|
3533
|
+
iprot.skip(ftype)
|
|
3534
|
+
else:
|
|
3535
|
+
iprot.skip(ftype)
|
|
3536
|
+
iprot.readFieldEnd()
|
|
3537
|
+
iprot.readStructEnd()
|
|
3538
|
+
|
|
3539
|
+
def write(self, oprot):
|
|
3540
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3541
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3542
|
+
return
|
|
3543
|
+
oprot.writeStructBegin('GetDelegationToken_args')
|
|
3544
|
+
if self.req is not None:
|
|
3545
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3546
|
+
self.req.write(oprot)
|
|
3547
|
+
oprot.writeFieldEnd()
|
|
3548
|
+
oprot.writeFieldStop()
|
|
3549
|
+
oprot.writeStructEnd()
|
|
3550
|
+
|
|
3551
|
+
def validate(self):
|
|
3552
|
+
return
|
|
3553
|
+
|
|
3554
|
+
def __repr__(self):
|
|
3555
|
+
L = ['%s=%r' % (key, value)
|
|
3556
|
+
for key, value in self.__dict__.items()]
|
|
3557
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3558
|
+
|
|
3559
|
+
def __eq__(self, other):
|
|
3560
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3561
|
+
|
|
3562
|
+
def __ne__(self, other):
|
|
3563
|
+
return not (self == other)
|
|
3564
|
+
|
|
3565
|
+
|
|
3566
|
+
class GetDelegationToken_result(object):
|
|
3567
|
+
"""
|
|
3568
|
+
Attributes:
|
|
3569
|
+
- success
|
|
3570
|
+
"""
|
|
3571
|
+
|
|
3572
|
+
thrift_spec = (
|
|
3573
|
+
(0, TType.STRUCT, 'success', (TGetDelegationTokenResp, TGetDelegationTokenResp.thrift_spec), None, ), # 0
|
|
3574
|
+
)
|
|
3575
|
+
|
|
3576
|
+
def __init__(self, success=None,):
|
|
3577
|
+
self.success = success
|
|
3578
|
+
|
|
3579
|
+
def read(self, iprot):
|
|
3580
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3581
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3582
|
+
return
|
|
3583
|
+
iprot.readStructBegin()
|
|
3584
|
+
while True:
|
|
3585
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3586
|
+
if ftype == TType.STOP:
|
|
3587
|
+
break
|
|
3588
|
+
if fid == 0:
|
|
3589
|
+
if ftype == TType.STRUCT:
|
|
3590
|
+
self.success = TGetDelegationTokenResp()
|
|
3591
|
+
self.success.read(iprot)
|
|
3592
|
+
else:
|
|
3593
|
+
iprot.skip(ftype)
|
|
3594
|
+
else:
|
|
3595
|
+
iprot.skip(ftype)
|
|
3596
|
+
iprot.readFieldEnd()
|
|
3597
|
+
iprot.readStructEnd()
|
|
3598
|
+
|
|
3599
|
+
def write(self, oprot):
|
|
3600
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3601
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3602
|
+
return
|
|
3603
|
+
oprot.writeStructBegin('GetDelegationToken_result')
|
|
3604
|
+
if self.success is not None:
|
|
3605
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3606
|
+
self.success.write(oprot)
|
|
3607
|
+
oprot.writeFieldEnd()
|
|
3608
|
+
oprot.writeFieldStop()
|
|
3609
|
+
oprot.writeStructEnd()
|
|
3610
|
+
|
|
3611
|
+
def validate(self):
|
|
3612
|
+
return
|
|
3613
|
+
|
|
3614
|
+
def __repr__(self):
|
|
3615
|
+
L = ['%s=%r' % (key, value)
|
|
3616
|
+
for key, value in self.__dict__.items()]
|
|
3617
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3618
|
+
|
|
3619
|
+
def __eq__(self, other):
|
|
3620
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3621
|
+
|
|
3622
|
+
def __ne__(self, other):
|
|
3623
|
+
return not (self == other)
|
|
3624
|
+
|
|
3625
|
+
|
|
3626
|
+
class CancelDelegationToken_args(object):
|
|
3627
|
+
"""
|
|
3628
|
+
Attributes:
|
|
3629
|
+
- req
|
|
3630
|
+
"""
|
|
3631
|
+
|
|
3632
|
+
thrift_spec = (
|
|
3633
|
+
None, # 0
|
|
3634
|
+
(1, TType.STRUCT, 'req', (TCancelDelegationTokenReq, TCancelDelegationTokenReq.thrift_spec), None, ), # 1
|
|
3635
|
+
)
|
|
3636
|
+
|
|
3637
|
+
def __init__(self, req=None,):
|
|
3638
|
+
self.req = req
|
|
3639
|
+
|
|
3640
|
+
def read(self, iprot):
|
|
3641
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3642
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3643
|
+
return
|
|
3644
|
+
iprot.readStructBegin()
|
|
3645
|
+
while True:
|
|
3646
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3647
|
+
if ftype == TType.STOP:
|
|
3648
|
+
break
|
|
3649
|
+
if fid == 1:
|
|
3650
|
+
if ftype == TType.STRUCT:
|
|
3651
|
+
self.req = TCancelDelegationTokenReq()
|
|
3652
|
+
self.req.read(iprot)
|
|
3653
|
+
else:
|
|
3654
|
+
iprot.skip(ftype)
|
|
3655
|
+
else:
|
|
3656
|
+
iprot.skip(ftype)
|
|
3657
|
+
iprot.readFieldEnd()
|
|
3658
|
+
iprot.readStructEnd()
|
|
3659
|
+
|
|
3660
|
+
def write(self, oprot):
|
|
3661
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3662
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3663
|
+
return
|
|
3664
|
+
oprot.writeStructBegin('CancelDelegationToken_args')
|
|
3665
|
+
if self.req is not None:
|
|
3666
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3667
|
+
self.req.write(oprot)
|
|
3668
|
+
oprot.writeFieldEnd()
|
|
3669
|
+
oprot.writeFieldStop()
|
|
3670
|
+
oprot.writeStructEnd()
|
|
3671
|
+
|
|
3672
|
+
def validate(self):
|
|
3673
|
+
return
|
|
3674
|
+
|
|
3675
|
+
def __repr__(self):
|
|
3676
|
+
L = ['%s=%r' % (key, value)
|
|
3677
|
+
for key, value in self.__dict__.items()]
|
|
3678
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3679
|
+
|
|
3680
|
+
def __eq__(self, other):
|
|
3681
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3682
|
+
|
|
3683
|
+
def __ne__(self, other):
|
|
3684
|
+
return not (self == other)
|
|
3685
|
+
|
|
3686
|
+
|
|
3687
|
+
class CancelDelegationToken_result(object):
|
|
3688
|
+
"""
|
|
3689
|
+
Attributes:
|
|
3690
|
+
- success
|
|
3691
|
+
"""
|
|
3692
|
+
|
|
3693
|
+
thrift_spec = (
|
|
3694
|
+
(0, TType.STRUCT, 'success', (TCancelDelegationTokenResp, TCancelDelegationTokenResp.thrift_spec), None, ), # 0
|
|
3695
|
+
)
|
|
3696
|
+
|
|
3697
|
+
def __init__(self, success=None,):
|
|
3698
|
+
self.success = success
|
|
3699
|
+
|
|
3700
|
+
def read(self, iprot):
|
|
3701
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3702
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3703
|
+
return
|
|
3704
|
+
iprot.readStructBegin()
|
|
3705
|
+
while True:
|
|
3706
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3707
|
+
if ftype == TType.STOP:
|
|
3708
|
+
break
|
|
3709
|
+
if fid == 0:
|
|
3710
|
+
if ftype == TType.STRUCT:
|
|
3711
|
+
self.success = TCancelDelegationTokenResp()
|
|
3712
|
+
self.success.read(iprot)
|
|
3713
|
+
else:
|
|
3714
|
+
iprot.skip(ftype)
|
|
3715
|
+
else:
|
|
3716
|
+
iprot.skip(ftype)
|
|
3717
|
+
iprot.readFieldEnd()
|
|
3718
|
+
iprot.readStructEnd()
|
|
3719
|
+
|
|
3720
|
+
def write(self, oprot):
|
|
3721
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3722
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3723
|
+
return
|
|
3724
|
+
oprot.writeStructBegin('CancelDelegationToken_result')
|
|
3725
|
+
if self.success is not None:
|
|
3726
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3727
|
+
self.success.write(oprot)
|
|
3728
|
+
oprot.writeFieldEnd()
|
|
3729
|
+
oprot.writeFieldStop()
|
|
3730
|
+
oprot.writeStructEnd()
|
|
3731
|
+
|
|
3732
|
+
def validate(self):
|
|
3733
|
+
return
|
|
3734
|
+
|
|
3735
|
+
def __repr__(self):
|
|
3736
|
+
L = ['%s=%r' % (key, value)
|
|
3737
|
+
for key, value in self.__dict__.items()]
|
|
3738
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3739
|
+
|
|
3740
|
+
def __eq__(self, other):
|
|
3741
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3742
|
+
|
|
3743
|
+
def __ne__(self, other):
|
|
3744
|
+
return not (self == other)
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
class RenewDelegationToken_args(object):
|
|
3748
|
+
"""
|
|
3749
|
+
Attributes:
|
|
3750
|
+
- req
|
|
3751
|
+
"""
|
|
3752
|
+
|
|
3753
|
+
thrift_spec = (
|
|
3754
|
+
None, # 0
|
|
3755
|
+
(1, TType.STRUCT, 'req', (TRenewDelegationTokenReq, TRenewDelegationTokenReq.thrift_spec), None, ), # 1
|
|
3756
|
+
)
|
|
3757
|
+
|
|
3758
|
+
def __init__(self, req=None,):
|
|
3759
|
+
self.req = req
|
|
3760
|
+
|
|
3761
|
+
def read(self, iprot):
|
|
3762
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3763
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3764
|
+
return
|
|
3765
|
+
iprot.readStructBegin()
|
|
3766
|
+
while True:
|
|
3767
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3768
|
+
if ftype == TType.STOP:
|
|
3769
|
+
break
|
|
3770
|
+
if fid == 1:
|
|
3771
|
+
if ftype == TType.STRUCT:
|
|
3772
|
+
self.req = TRenewDelegationTokenReq()
|
|
3773
|
+
self.req.read(iprot)
|
|
3774
|
+
else:
|
|
3775
|
+
iprot.skip(ftype)
|
|
3776
|
+
else:
|
|
3777
|
+
iprot.skip(ftype)
|
|
3778
|
+
iprot.readFieldEnd()
|
|
3779
|
+
iprot.readStructEnd()
|
|
3780
|
+
|
|
3781
|
+
def write(self, oprot):
|
|
3782
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3783
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3784
|
+
return
|
|
3785
|
+
oprot.writeStructBegin('RenewDelegationToken_args')
|
|
3786
|
+
if self.req is not None:
|
|
3787
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3788
|
+
self.req.write(oprot)
|
|
3789
|
+
oprot.writeFieldEnd()
|
|
3790
|
+
oprot.writeFieldStop()
|
|
3791
|
+
oprot.writeStructEnd()
|
|
3792
|
+
|
|
3793
|
+
def validate(self):
|
|
3794
|
+
return
|
|
3795
|
+
|
|
3796
|
+
def __repr__(self):
|
|
3797
|
+
L = ['%s=%r' % (key, value)
|
|
3798
|
+
for key, value in self.__dict__.items()]
|
|
3799
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3800
|
+
|
|
3801
|
+
def __eq__(self, other):
|
|
3802
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3803
|
+
|
|
3804
|
+
def __ne__(self, other):
|
|
3805
|
+
return not (self == other)
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
class RenewDelegationToken_result(object):
|
|
3809
|
+
"""
|
|
3810
|
+
Attributes:
|
|
3811
|
+
- success
|
|
3812
|
+
"""
|
|
3813
|
+
|
|
3814
|
+
thrift_spec = (
|
|
3815
|
+
(0, TType.STRUCT, 'success', (TRenewDelegationTokenResp, TRenewDelegationTokenResp.thrift_spec), None, ), # 0
|
|
3816
|
+
)
|
|
3817
|
+
|
|
3818
|
+
def __init__(self, success=None,):
|
|
3819
|
+
self.success = success
|
|
3820
|
+
|
|
3821
|
+
def read(self, iprot):
|
|
3822
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3823
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3824
|
+
return
|
|
3825
|
+
iprot.readStructBegin()
|
|
3826
|
+
while True:
|
|
3827
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3828
|
+
if ftype == TType.STOP:
|
|
3829
|
+
break
|
|
3830
|
+
if fid == 0:
|
|
3831
|
+
if ftype == TType.STRUCT:
|
|
3832
|
+
self.success = TRenewDelegationTokenResp()
|
|
3833
|
+
self.success.read(iprot)
|
|
3834
|
+
else:
|
|
3835
|
+
iprot.skip(ftype)
|
|
3836
|
+
else:
|
|
3837
|
+
iprot.skip(ftype)
|
|
3838
|
+
iprot.readFieldEnd()
|
|
3839
|
+
iprot.readStructEnd()
|
|
3840
|
+
|
|
3841
|
+
def write(self, oprot):
|
|
3842
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3843
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3844
|
+
return
|
|
3845
|
+
oprot.writeStructBegin('RenewDelegationToken_result')
|
|
3846
|
+
if self.success is not None:
|
|
3847
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3848
|
+
self.success.write(oprot)
|
|
3849
|
+
oprot.writeFieldEnd()
|
|
3850
|
+
oprot.writeFieldStop()
|
|
3851
|
+
oprot.writeStructEnd()
|
|
3852
|
+
|
|
3853
|
+
def validate(self):
|
|
3854
|
+
return
|
|
3855
|
+
|
|
3856
|
+
def __repr__(self):
|
|
3857
|
+
L = ['%s=%r' % (key, value)
|
|
3858
|
+
for key, value in self.__dict__.items()]
|
|
3859
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3860
|
+
|
|
3861
|
+
def __eq__(self, other):
|
|
3862
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3863
|
+
|
|
3864
|
+
def __ne__(self, other):
|
|
3865
|
+
return not (self == other)
|
|
3866
|
+
|
|
3867
|
+
|
|
3868
|
+
class GetLog_args(object):
|
|
3869
|
+
"""
|
|
3870
|
+
Attributes:
|
|
3871
|
+
- req
|
|
3872
|
+
"""
|
|
3873
|
+
|
|
3874
|
+
thrift_spec = (
|
|
3875
|
+
None, # 0
|
|
3876
|
+
(1, TType.STRUCT, 'req', (TGetLogReq, TGetLogReq.thrift_spec), None, ), # 1
|
|
3877
|
+
)
|
|
3878
|
+
|
|
3879
|
+
def __init__(self, req=None,):
|
|
3880
|
+
self.req = req
|
|
3881
|
+
|
|
3882
|
+
def read(self, iprot):
|
|
3883
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3884
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3885
|
+
return
|
|
3886
|
+
iprot.readStructBegin()
|
|
3887
|
+
while True:
|
|
3888
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3889
|
+
if ftype == TType.STOP:
|
|
3890
|
+
break
|
|
3891
|
+
if fid == 1:
|
|
3892
|
+
if ftype == TType.STRUCT:
|
|
3893
|
+
self.req = TGetLogReq()
|
|
3894
|
+
self.req.read(iprot)
|
|
3895
|
+
else:
|
|
3896
|
+
iprot.skip(ftype)
|
|
3897
|
+
else:
|
|
3898
|
+
iprot.skip(ftype)
|
|
3899
|
+
iprot.readFieldEnd()
|
|
3900
|
+
iprot.readStructEnd()
|
|
3901
|
+
|
|
3902
|
+
def write(self, oprot):
|
|
3903
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3904
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3905
|
+
return
|
|
3906
|
+
oprot.writeStructBegin('GetLog_args')
|
|
3907
|
+
if self.req is not None:
|
|
3908
|
+
oprot.writeFieldBegin('req', TType.STRUCT, 1)
|
|
3909
|
+
self.req.write(oprot)
|
|
3910
|
+
oprot.writeFieldEnd()
|
|
3911
|
+
oprot.writeFieldStop()
|
|
3912
|
+
oprot.writeStructEnd()
|
|
3913
|
+
|
|
3914
|
+
def validate(self):
|
|
3915
|
+
return
|
|
3916
|
+
|
|
3917
|
+
def __repr__(self):
|
|
3918
|
+
L = ['%s=%r' % (key, value)
|
|
3919
|
+
for key, value in self.__dict__.items()]
|
|
3920
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3921
|
+
|
|
3922
|
+
def __eq__(self, other):
|
|
3923
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3924
|
+
|
|
3925
|
+
def __ne__(self, other):
|
|
3926
|
+
return not (self == other)
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
class GetLog_result(object):
|
|
3930
|
+
"""
|
|
3931
|
+
Attributes:
|
|
3932
|
+
- success
|
|
3933
|
+
"""
|
|
3934
|
+
|
|
3935
|
+
thrift_spec = (
|
|
3936
|
+
(0, TType.STRUCT, 'success', (TGetLogResp, TGetLogResp.thrift_spec), None, ), # 0
|
|
3937
|
+
)
|
|
3938
|
+
|
|
3939
|
+
def __init__(self, success=None,):
|
|
3940
|
+
self.success = success
|
|
3941
|
+
|
|
3942
|
+
def read(self, iprot):
|
|
3943
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
3944
|
+
iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
|
|
3945
|
+
return
|
|
3946
|
+
iprot.readStructBegin()
|
|
3947
|
+
while True:
|
|
3948
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
3949
|
+
if ftype == TType.STOP:
|
|
3950
|
+
break
|
|
3951
|
+
if fid == 0:
|
|
3952
|
+
if ftype == TType.STRUCT:
|
|
3953
|
+
self.success = TGetLogResp()
|
|
3954
|
+
self.success.read(iprot)
|
|
3955
|
+
else:
|
|
3956
|
+
iprot.skip(ftype)
|
|
3957
|
+
else:
|
|
3958
|
+
iprot.skip(ftype)
|
|
3959
|
+
iprot.readFieldEnd()
|
|
3960
|
+
iprot.readStructEnd()
|
|
3961
|
+
|
|
3962
|
+
def write(self, oprot):
|
|
3963
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
3964
|
+
oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
|
|
3965
|
+
return
|
|
3966
|
+
oprot.writeStructBegin('GetLog_result')
|
|
3967
|
+
if self.success is not None:
|
|
3968
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
3969
|
+
self.success.write(oprot)
|
|
3970
|
+
oprot.writeFieldEnd()
|
|
3971
|
+
oprot.writeFieldStop()
|
|
3972
|
+
oprot.writeStructEnd()
|
|
3973
|
+
|
|
3974
|
+
def validate(self):
|
|
3975
|
+
return
|
|
3976
|
+
|
|
3977
|
+
def __repr__(self):
|
|
3978
|
+
L = ['%s=%r' % (key, value)
|
|
3979
|
+
for key, value in self.__dict__.items()]
|
|
3980
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
3981
|
+
|
|
3982
|
+
def __eq__(self, other):
|
|
3983
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
3984
|
+
|
|
3985
|
+
def __ne__(self, other):
|
|
3986
|
+
return not (self == other)
|