Subversion Repositories SmartDukaan

Rev

Rev 4008 | Rev 5407 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4008 Rev 4948
Line 41... Line 41...
41
     - ticket
41
     - ticket
42
     - activity
42
     - activity
43
    """
43
    """
44
    pass
44
    pass
45
 
45
 
-
 
46
  def unassignAgentTickets(self, assigneeId):
-
 
47
    """
-
 
48
    Parameters:
-
 
49
     - assigneeId
-
 
50
    """
-
 
51
    pass
-
 
52
 
46
  def getActivities(self, searchFilter):
53
  def getActivities(self, searchFilter):
47
    """
54
    """
48
    Parameters:
55
    Parameters:
49
     - searchFilter
56
     - searchFilter
50
    """
57
    """
Line 102... Line 109...
102
    Parameters:
109
    Parameters:
103
     - timestamp
110
     - timestamp
104
    """
111
    """
105
    pass
112
    pass
106
 
113
 
-
 
114
  def changeAgentStatus(self, status, emailId):
-
 
115
    """
-
 
116
    Parameters:
-
 
117
     - status
-
 
118
     - emailId
-
 
119
    """
-
 
120
    pass
-
 
121
 
-
 
122
  def insertAgent(self, agent, role):
-
 
123
    """
-
 
124
    Parameters:
-
 
125
     - agent
-
 
126
     - role
-
 
127
    """
-
 
128
    pass
-
 
129
 
107
 
130
 
108
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
131
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
109
  def __init__(self, iprot, oprot=None):
132
  def __init__(self, iprot, oprot=None):
110
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
133
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
111
 
134
 
Line 224... Line 247...
224
    self._iprot.readMessageEnd()
247
    self._iprot.readMessageEnd()
225
    if result.success is not None:
248
    if result.success is not None:
226
      return result.success
249
      return result.success
227
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
228
 
251
 
-
 
252
  def unassignAgentTickets(self, assigneeId):
-
 
253
    """
-
 
254
    Parameters:
-
 
255
     - assigneeId
-
 
256
    """
-
 
257
    self.send_unassignAgentTickets(assigneeId)
-
 
258
    self.recv_unassignAgentTickets()
-
 
259
 
-
 
260
  def send_unassignAgentTickets(self, assigneeId):
-
 
261
    self._oprot.writeMessageBegin('unassignAgentTickets', TMessageType.CALL, self._seqid)
-
 
262
    args = unassignAgentTickets_args()
-
 
263
    args.assigneeId = assigneeId
-
 
264
    args.write(self._oprot)
-
 
265
    self._oprot.writeMessageEnd()
-
 
266
    self._oprot.trans.flush()
-
 
267
 
-
 
268
  def recv_unassignAgentTickets(self, ):
-
 
269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
270
    if mtype == TMessageType.EXCEPTION:
-
 
271
      x = TApplicationException()
-
 
272
      x.read(self._iprot)
-
 
273
      self._iprot.readMessageEnd()
-
 
274
      raise x
-
 
275
    result = unassignAgentTickets_result()
-
 
276
    result.read(self._iprot)
-
 
277
    self._iprot.readMessageEnd()
-
 
278
    return
-
 
279
 
229
  def getActivities(self, searchFilter):
280
  def getActivities(self, searchFilter):
230
    """
281
    """
231
    Parameters:
282
    Parameters:
232
     - searchFilter
283
     - searchFilter
233
    """
284
    """
Line 487... Line 538...
487
    result = updateLastEmailProcessedTimestamp_result()
538
    result = updateLastEmailProcessedTimestamp_result()
488
    result.read(self._iprot)
539
    result.read(self._iprot)
489
    self._iprot.readMessageEnd()
540
    self._iprot.readMessageEnd()
490
    return
541
    return
491
 
542
 
-
 
543
  def changeAgentStatus(self, status, emailId):
-
 
544
    """
-
 
545
    Parameters:
-
 
546
     - status
-
 
547
     - emailId
-
 
548
    """
-
 
549
    self.send_changeAgentStatus(status, emailId)
-
 
550
    self.recv_changeAgentStatus()
-
 
551
 
-
 
552
  def send_changeAgentStatus(self, status, emailId):
-
 
553
    self._oprot.writeMessageBegin('changeAgentStatus', TMessageType.CALL, self._seqid)
-
 
554
    args = changeAgentStatus_args()
-
 
555
    args.status = status
-
 
556
    args.emailId = emailId
-
 
557
    args.write(self._oprot)
-
 
558
    self._oprot.writeMessageEnd()
-
 
559
    self._oprot.trans.flush()
-
 
560
 
-
 
561
  def recv_changeAgentStatus(self, ):
-
 
562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
563
    if mtype == TMessageType.EXCEPTION:
-
 
564
      x = TApplicationException()
-
 
565
      x.read(self._iprot)
-
 
566
      self._iprot.readMessageEnd()
-
 
567
      raise x
-
 
568
    result = changeAgentStatus_result()
-
 
569
    result.read(self._iprot)
-
 
570
    self._iprot.readMessageEnd()
-
 
571
    return
-
 
572
 
-
 
573
  def insertAgent(self, agent, role):
-
 
574
    """
-
 
575
    Parameters:
-
 
576
     - agent
-
 
577
     - role
-
 
578
    """
-
 
579
    self.send_insertAgent(agent, role)
-
 
580
    self.recv_insertAgent()
-
 
581
 
-
 
582
  def send_insertAgent(self, agent, role):
-
 
583
    self._oprot.writeMessageBegin('insertAgent', TMessageType.CALL, self._seqid)
-
 
584
    args = insertAgent_args()
-
 
585
    args.agent = agent
-
 
586
    args.role = role
-
 
587
    args.write(self._oprot)
-
 
588
    self._oprot.writeMessageEnd()
-
 
589
    self._oprot.trans.flush()
-
 
590
 
-
 
591
  def recv_insertAgent(self, ):
-
 
592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
593
    if mtype == TMessageType.EXCEPTION:
-
 
594
      x = TApplicationException()
-
 
595
      x.read(self._iprot)
-
 
596
      self._iprot.readMessageEnd()
-
 
597
      raise x
-
 
598
    result = insertAgent_result()
-
 
599
    result.read(self._iprot)
-
 
600
    self._iprot.readMessageEnd()
-
 
601
    return
-
 
602
 
492
 
603
 
493
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
604
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
494
  def __init__(self, handler):
605
  def __init__(self, handler):
495
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
606
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
496
    self._processMap["getTickets"] = Processor.process_getTickets
607
    self._processMap["getTickets"] = Processor.process_getTickets
497
    self._processMap["getUnassignedTickets"] = Processor.process_getUnassignedTickets
608
    self._processMap["getUnassignedTickets"] = Processor.process_getUnassignedTickets
498
    self._processMap["updateTicket"] = Processor.process_updateTicket
609
    self._processMap["updateTicket"] = Processor.process_updateTicket
499
    self._processMap["insertTicket"] = Processor.process_insertTicket
610
    self._processMap["insertTicket"] = Processor.process_insertTicket
-
 
611
    self._processMap["unassignAgentTickets"] = Processor.process_unassignAgentTickets
500
    self._processMap["getActivities"] = Processor.process_getActivities
612
    self._processMap["getActivities"] = Processor.process_getActivities
501
    self._processMap["insertActivity"] = Processor.process_insertActivity
613
    self._processMap["insertActivity"] = Processor.process_insertActivity
502
    self._processMap["markAsRead"] = Processor.process_markAsRead
614
    self._processMap["markAsRead"] = Processor.process_markAsRead
503
    self._processMap["getAgents"] = Processor.process_getAgents
615
    self._processMap["getAgents"] = Processor.process_getAgents
504
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
616
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
505
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
617
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
506
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
618
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
507
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
619
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
508
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
620
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
-
 
621
    self._processMap["changeAgentStatus"] = Processor.process_changeAgentStatus
-
 
622
    self._processMap["insertAgent"] = Processor.process_insertAgent
509
 
623
 
510
  def process(self, iprot, oprot):
624
  def process(self, iprot, oprot):
511
    (name, type, seqid) = iprot.readMessageBegin()
625
    (name, type, seqid) = iprot.readMessageBegin()
512
    if name not in self._processMap:
626
    if name not in self._processMap:
513
      iprot.skip(TType.STRUCT)
627
      iprot.skip(TType.STRUCT)
Line 564... Line 678...
564
    oprot.writeMessageBegin("insertTicket", TMessageType.REPLY, seqid)
678
    oprot.writeMessageBegin("insertTicket", TMessageType.REPLY, seqid)
565
    result.write(oprot)
679
    result.write(oprot)
566
    oprot.writeMessageEnd()
680
    oprot.writeMessageEnd()
567
    oprot.trans.flush()
681
    oprot.trans.flush()
568
 
682
 
-
 
683
  def process_unassignAgentTickets(self, seqid, iprot, oprot):
-
 
684
    args = unassignAgentTickets_args()
-
 
685
    args.read(iprot)
-
 
686
    iprot.readMessageEnd()
-
 
687
    result = unassignAgentTickets_result()
-
 
688
    self._handler.unassignAgentTickets(args.assigneeId)
-
 
689
    oprot.writeMessageBegin("unassignAgentTickets", TMessageType.REPLY, seqid)
-
 
690
    result.write(oprot)
-
 
691
    oprot.writeMessageEnd()
-
 
692
    oprot.trans.flush()
-
 
693
 
569
  def process_getActivities(self, seqid, iprot, oprot):
694
  def process_getActivities(self, seqid, iprot, oprot):
570
    args = getActivities_args()
695
    args = getActivities_args()
571
    args.read(iprot)
696
    args.read(iprot)
572
    iprot.readMessageEnd()
697
    iprot.readMessageEnd()
573
    result = getActivities_result()
698
    result = getActivities_result()
Line 663... Line 788...
663
    oprot.writeMessageBegin("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
788
    oprot.writeMessageBegin("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
664
    result.write(oprot)
789
    result.write(oprot)
665
    oprot.writeMessageEnd()
790
    oprot.writeMessageEnd()
666
    oprot.trans.flush()
791
    oprot.trans.flush()
667
 
792
 
-
 
793
  def process_changeAgentStatus(self, seqid, iprot, oprot):
-
 
794
    args = changeAgentStatus_args()
-
 
795
    args.read(iprot)
-
 
796
    iprot.readMessageEnd()
-
 
797
    result = changeAgentStatus_result()
-
 
798
    self._handler.changeAgentStatus(args.status, args.emailId)
-
 
799
    oprot.writeMessageBegin("changeAgentStatus", TMessageType.REPLY, seqid)
-
 
800
    result.write(oprot)
-
 
801
    oprot.writeMessageEnd()
-
 
802
    oprot.trans.flush()
-
 
803
 
-
 
804
  def process_insertAgent(self, seqid, iprot, oprot):
-
 
805
    args = insertAgent_args()
-
 
806
    args.read(iprot)
-
 
807
    iprot.readMessageEnd()
-
 
808
    result = insertAgent_result()
-
 
809
    self._handler.insertAgent(args.agent, args.role)
-
 
810
    oprot.writeMessageBegin("insertAgent", TMessageType.REPLY, seqid)
-
 
811
    result.write(oprot)
-
 
812
    oprot.writeMessageEnd()
-
 
813
    oprot.trans.flush()
-
 
814
 
668
 
815
 
669
# HELPER FUNCTIONS AND STRUCTURES
816
# HELPER FUNCTIONS AND STRUCTURES
670
 
817
 
671
class getTickets_args:
818
class getTickets_args:
672
  """
819
  """
Line 1154... Line 1301...
1154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1155
 
1302
 
1156
  def __ne__(self, other):
1303
  def __ne__(self, other):
1157
    return not (self == other)
1304
    return not (self == other)
1158
 
1305
 
-
 
1306
class unassignAgentTickets_args:
-
 
1307
  """
-
 
1308
  Attributes:
-
 
1309
   - assigneeId
-
 
1310
  """
-
 
1311
 
-
 
1312
  thrift_spec = (
-
 
1313
    None, # 0
-
 
1314
    (1, TType.I32, 'assigneeId', None, None, ), # 1
-
 
1315
  )
-
 
1316
 
-
 
1317
  def __init__(self, assigneeId=None,):
-
 
1318
    self.assigneeId = assigneeId
-
 
1319
 
-
 
1320
  def read(self, iprot):
-
 
1321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1323
      return
-
 
1324
    iprot.readStructBegin()
-
 
1325
    while True:
-
 
1326
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1327
      if ftype == TType.STOP:
-
 
1328
        break
-
 
1329
      if fid == 1:
-
 
1330
        if ftype == TType.I32:
-
 
1331
          self.assigneeId = iprot.readI32();
-
 
1332
        else:
-
 
1333
          iprot.skip(ftype)
-
 
1334
      else:
-
 
1335
        iprot.skip(ftype)
-
 
1336
      iprot.readFieldEnd()
-
 
1337
    iprot.readStructEnd()
-
 
1338
 
-
 
1339
  def write(self, oprot):
-
 
1340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1342
      return
-
 
1343
    oprot.writeStructBegin('unassignAgentTickets_args')
-
 
1344
    if self.assigneeId is not None:
-
 
1345
      oprot.writeFieldBegin('assigneeId', TType.I32, 1)
-
 
1346
      oprot.writeI32(self.assigneeId)
-
 
1347
      oprot.writeFieldEnd()
-
 
1348
    oprot.writeFieldStop()
-
 
1349
    oprot.writeStructEnd()
-
 
1350
 
-
 
1351
  def validate(self):
-
 
1352
    return
-
 
1353
 
-
 
1354
 
-
 
1355
  def __repr__(self):
-
 
1356
    L = ['%s=%r' % (key, value)
-
 
1357
      for key, value in self.__dict__.iteritems()]
-
 
1358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1359
 
-
 
1360
  def __eq__(self, other):
-
 
1361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1362
 
-
 
1363
  def __ne__(self, other):
-
 
1364
    return not (self == other)
-
 
1365
 
-
 
1366
class unassignAgentTickets_result:
-
 
1367
 
-
 
1368
  thrift_spec = (
-
 
1369
  )
-
 
1370
 
-
 
1371
  def read(self, iprot):
-
 
1372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1374
      return
-
 
1375
    iprot.readStructBegin()
-
 
1376
    while True:
-
 
1377
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1378
      if ftype == TType.STOP:
-
 
1379
        break
-
 
1380
      else:
-
 
1381
        iprot.skip(ftype)
-
 
1382
      iprot.readFieldEnd()
-
 
1383
    iprot.readStructEnd()
-
 
1384
 
-
 
1385
  def write(self, oprot):
-
 
1386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1388
      return
-
 
1389
    oprot.writeStructBegin('unassignAgentTickets_result')
-
 
1390
    oprot.writeFieldStop()
-
 
1391
    oprot.writeStructEnd()
-
 
1392
 
-
 
1393
  def validate(self):
-
 
1394
    return
-
 
1395
 
-
 
1396
 
-
 
1397
  def __repr__(self):
-
 
1398
    L = ['%s=%r' % (key, value)
-
 
1399
      for key, value in self.__dict__.iteritems()]
-
 
1400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1401
 
-
 
1402
  def __eq__(self, other):
-
 
1403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1404
 
-
 
1405
  def __ne__(self, other):
-
 
1406
    return not (self == other)
-
 
1407
 
1159
class getActivities_args:
1408
class getActivities_args:
1160
  """
1409
  """
1161
  Attributes:
1410
  Attributes:
1162
   - searchFilter
1411
   - searchFilter
1163
  """
1412
  """
Line 2204... Line 2453...
2204
    oprot.writeFieldStop()
2453
    oprot.writeFieldStop()
2205
    oprot.writeStructEnd()
2454
    oprot.writeStructEnd()
2206
 
2455
 
2207
  def validate(self):
2456
  def validate(self):
2208
    return
2457
    return
-
 
2458
 
-
 
2459
 
-
 
2460
  def __repr__(self):
-
 
2461
    L = ['%s=%r' % (key, value)
-
 
2462
      for key, value in self.__dict__.iteritems()]
-
 
2463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2464
 
-
 
2465
  def __eq__(self, other):
-
 
2466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2467
 
-
 
2468
  def __ne__(self, other):
-
 
2469
    return not (self == other)
-
 
2470
 
-
 
2471
class changeAgentStatus_args:
-
 
2472
  """
-
 
2473
  Attributes:
-
 
2474
   - status
-
 
2475
   - emailId
-
 
2476
  """
-
 
2477
 
-
 
2478
  thrift_spec = (
-
 
2479
    None, # 0
-
 
2480
    (1, TType.BOOL, 'status', None, None, ), # 1
-
 
2481
    (2, TType.STRING, 'emailId', None, None, ), # 2
-
 
2482
  )
-
 
2483
 
-
 
2484
  def __init__(self, status=None, emailId=None,):
-
 
2485
    self.status = status
-
 
2486
    self.emailId = emailId
-
 
2487
 
-
 
2488
  def read(self, iprot):
-
 
2489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2491
      return
-
 
2492
    iprot.readStructBegin()
-
 
2493
    while True:
-
 
2494
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2495
      if ftype == TType.STOP:
-
 
2496
        break
-
 
2497
      if fid == 1:
-
 
2498
        if ftype == TType.BOOL:
-
 
2499
          self.status = iprot.readBool();
-
 
2500
        else:
-
 
2501
          iprot.skip(ftype)
-
 
2502
      elif fid == 2:
-
 
2503
        if ftype == TType.STRING:
-
 
2504
          self.emailId = iprot.readString();
-
 
2505
        else:
-
 
2506
          iprot.skip(ftype)
-
 
2507
      else:
-
 
2508
        iprot.skip(ftype)
-
 
2509
      iprot.readFieldEnd()
-
 
2510
    iprot.readStructEnd()
-
 
2511
 
-
 
2512
  def write(self, oprot):
-
 
2513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2515
      return
-
 
2516
    oprot.writeStructBegin('changeAgentStatus_args')
-
 
2517
    if self.status is not None:
-
 
2518
      oprot.writeFieldBegin('status', TType.BOOL, 1)
-
 
2519
      oprot.writeBool(self.status)
-
 
2520
      oprot.writeFieldEnd()
-
 
2521
    if self.emailId is not None:
-
 
2522
      oprot.writeFieldBegin('emailId', TType.STRING, 2)
-
 
2523
      oprot.writeString(self.emailId)
-
 
2524
      oprot.writeFieldEnd()
-
 
2525
    oprot.writeFieldStop()
-
 
2526
    oprot.writeStructEnd()
-
 
2527
 
-
 
2528
  def validate(self):
-
 
2529
    return
-
 
2530
 
-
 
2531
 
-
 
2532
  def __repr__(self):
-
 
2533
    L = ['%s=%r' % (key, value)
-
 
2534
      for key, value in self.__dict__.iteritems()]
-
 
2535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2536
 
-
 
2537
  def __eq__(self, other):
-
 
2538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2539
 
-
 
2540
  def __ne__(self, other):
-
 
2541
    return not (self == other)
-
 
2542
 
-
 
2543
class changeAgentStatus_result:
-
 
2544
 
-
 
2545
  thrift_spec = (
-
 
2546
  )
-
 
2547
 
-
 
2548
  def read(self, iprot):
-
 
2549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2551
      return
-
 
2552
    iprot.readStructBegin()
-
 
2553
    while True:
-
 
2554
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2555
      if ftype == TType.STOP:
-
 
2556
        break
-
 
2557
      else:
-
 
2558
        iprot.skip(ftype)
-
 
2559
      iprot.readFieldEnd()
-
 
2560
    iprot.readStructEnd()
-
 
2561
 
-
 
2562
  def write(self, oprot):
-
 
2563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2565
      return
-
 
2566
    oprot.writeStructBegin('changeAgentStatus_result')
-
 
2567
    oprot.writeFieldStop()
-
 
2568
    oprot.writeStructEnd()
-
 
2569
 
-
 
2570
  def validate(self):
-
 
2571
    return
-
 
2572
 
-
 
2573
 
-
 
2574
  def __repr__(self):
-
 
2575
    L = ['%s=%r' % (key, value)
-
 
2576
      for key, value in self.__dict__.iteritems()]
-
 
2577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2578
 
-
 
2579
  def __eq__(self, other):
-
 
2580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2581
 
-
 
2582
  def __ne__(self, other):
-
 
2583
    return not (self == other)
-
 
2584
 
-
 
2585
class insertAgent_args:
-
 
2586
  """
-
 
2587
  Attributes:
-
 
2588
   - agent
-
 
2589
   - role
-
 
2590
  """
-
 
2591
 
-
 
2592
  thrift_spec = (
-
 
2593
    None, # 0
-
 
2594
    (1, TType.STRUCT, 'agent', (Agent, Agent.thrift_spec), None, ), # 1
-
 
2595
    (2, TType.LIST, 'role', (TType.STRING,None), None, ), # 2
-
 
2596
  )
-
 
2597
 
-
 
2598
  def __init__(self, agent=None, role=None,):
-
 
2599
    self.agent = agent
-
 
2600
    self.role = role
-
 
2601
 
-
 
2602
  def read(self, iprot):
-
 
2603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2605
      return
-
 
2606
    iprot.readStructBegin()
-
 
2607
    while True:
-
 
2608
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2609
      if ftype == TType.STOP:
-
 
2610
        break
-
 
2611
      if fid == 1:
-
 
2612
        if ftype == TType.STRUCT:
-
 
2613
          self.agent = Agent()
-
 
2614
          self.agent.read(iprot)
-
 
2615
        else:
-
 
2616
          iprot.skip(ftype)
-
 
2617
      elif fid == 2:
-
 
2618
        if ftype == TType.LIST:
-
 
2619
          self.role = []
-
 
2620
          (_etype66, _size63) = iprot.readListBegin()
-
 
2621
          for _i67 in xrange(_size63):
-
 
2622
            _elem68 = iprot.readString();
-
 
2623
            self.role.append(_elem68)
-
 
2624
          iprot.readListEnd()
-
 
2625
        else:
-
 
2626
          iprot.skip(ftype)
-
 
2627
      else:
-
 
2628
        iprot.skip(ftype)
-
 
2629
      iprot.readFieldEnd()
-
 
2630
    iprot.readStructEnd()
-
 
2631
 
-
 
2632
  def write(self, oprot):
-
 
2633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2635
      return
-
 
2636
    oprot.writeStructBegin('insertAgent_args')
-
 
2637
    if self.agent is not None:
-
 
2638
      oprot.writeFieldBegin('agent', TType.STRUCT, 1)
-
 
2639
      self.agent.write(oprot)
-
 
2640
      oprot.writeFieldEnd()
-
 
2641
    if self.role is not None:
-
 
2642
      oprot.writeFieldBegin('role', TType.LIST, 2)
-
 
2643
      oprot.writeListBegin(TType.STRING, len(self.role))
-
 
2644
      for iter69 in self.role:
-
 
2645
        oprot.writeString(iter69)
-
 
2646
      oprot.writeListEnd()
-
 
2647
      oprot.writeFieldEnd()
-
 
2648
    oprot.writeFieldStop()
-
 
2649
    oprot.writeStructEnd()
-
 
2650
 
-
 
2651
  def validate(self):
-
 
2652
    return
-
 
2653
 
-
 
2654
 
-
 
2655
  def __repr__(self):
-
 
2656
    L = ['%s=%r' % (key, value)
-
 
2657
      for key, value in self.__dict__.iteritems()]
-
 
2658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2659
 
-
 
2660
  def __eq__(self, other):
-
 
2661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2662
 
-
 
2663
  def __ne__(self, other):
-
 
2664
    return not (self == other)
-
 
2665
 
-
 
2666
class insertAgent_result:
-
 
2667
 
-
 
2668
  thrift_spec = (
-
 
2669
  )
-
 
2670
 
-
 
2671
  def read(self, iprot):
-
 
2672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2674
      return
-
 
2675
    iprot.readStructBegin()
-
 
2676
    while True:
-
 
2677
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2678
      if ftype == TType.STOP:
-
 
2679
        break
-
 
2680
      else:
-
 
2681
        iprot.skip(ftype)
-
 
2682
      iprot.readFieldEnd()
-
 
2683
    iprot.readStructEnd()
-
 
2684
 
-
 
2685
  def write(self, oprot):
-
 
2686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2688
      return
-
 
2689
    oprot.writeStructBegin('insertAgent_result')
-
 
2690
    oprot.writeFieldStop()
-
 
2691
    oprot.writeStructEnd()
-
 
2692
 
-
 
2693
  def validate(self):
-
 
2694
    return
2209
 
2695
 
2210
 
2696
 
2211
  def __repr__(self):
2697
  def __repr__(self):
2212
    L = ['%s=%r' % (key, value)
2698
    L = ['%s=%r' % (key, value)
2213
      for key, value in self.__dict__.iteritems()]
2699
      for key, value in self.__dict__.iteritems()]