Subversion Repositories SmartDukaan

Rev

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

Rev 8139 Rev 8168
Line 715... Line 715...
715
    Parameters:
715
    Parameters:
716
     - itemId
716
     - itemId
717
    """
717
    """
718
    pass
718
    pass
719
 
719
 
720
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime):
720
  def updateAmazonItemDetails(self, amazonlisted):
721
    """
721
    """
722
    Parameters:
722
    Parameters:
723
     - itemId
-
 
724
     - fbaPrice
723
     - amazonlisted
725
     - sellingPrice
-
 
726
     - isFba
-
 
727
     - isNonFba
-
 
728
     - isInventoryOverride
-
 
729
     - handlingTime
-
 
730
     - isCustomTime
-
 
731
    """
724
    """
732
    pass
725
    pass
733
 
726
 
734
  def addAmazonItem(self, amazonlisted):
727
  def addAmazonItem(self, amazonlisted):
735
    """
728
    """
Line 788... Line 781...
788
     - offset
781
     - offset
789
     - limit
782
     - limit
790
    """
783
    """
791
    pass
784
    pass
792
 
785
 
-
 
786
  def updateAmazonAttributesInBulk(self, amazonlisted):
-
 
787
    """
-
 
788
    Parameters:
-
 
789
     - amazonlisted
-
 
790
    """
-
 
791
    pass
-
 
792
 
793
 
793
 
794
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
794
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
795
  def __init__(self, iprot, oprot=None):
795
  def __init__(self, iprot, oprot=None):
796
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
796
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
797
 
797
 
Line 3706... Line 3706...
3706
    self._iprot.readMessageEnd()
3706
    self._iprot.readMessageEnd()
3707
    if result.success is not None:
3707
    if result.success is not None:
3708
      return result.success
3708
      return result.success
3709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
3709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
3710
 
3710
 
3711
  def updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime):
3711
  def updateAmazonItemDetails(self, amazonlisted):
3712
    """
3712
    """
3713
    Parameters:
3713
    Parameters:
3714
     - itemId
-
 
3715
     - fbaPrice
3714
     - amazonlisted
3716
     - sellingPrice
-
 
3717
     - isFba
-
 
3718
     - isNonFba
-
 
3719
     - isInventoryOverride
-
 
3720
     - handlingTime
-
 
3721
     - isCustomTime
-
 
3722
    """
3715
    """
3723
    self.send_updateAmazonItemDetails(itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime)
3716
    self.send_updateAmazonItemDetails(amazonlisted)
3724
    self.recv_updateAmazonItemDetails()
3717
    self.recv_updateAmazonItemDetails()
3725
 
3718
 
3726
  def send_updateAmazonItemDetails(self, itemId, fbaPrice, sellingPrice, isFba, isNonFba, isInventoryOverride, handlingTime, isCustomTime):
3719
  def send_updateAmazonItemDetails(self, amazonlisted):
3727
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
3720
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
3728
    args = updateAmazonItemDetails_args()
3721
    args = updateAmazonItemDetails_args()
3729
    args.itemId = itemId
-
 
3730
    args.fbaPrice = fbaPrice
-
 
3731
    args.sellingPrice = sellingPrice
-
 
3732
    args.isFba = isFba
-
 
3733
    args.isNonFba = isNonFba
-
 
3734
    args.isInventoryOverride = isInventoryOverride
-
 
3735
    args.handlingTime = handlingTime
3722
    args.amazonlisted = amazonlisted
3736
    args.isCustomTime = isCustomTime
-
 
3737
    args.write(self._oprot)
3723
    args.write(self._oprot)
3738
    self._oprot.writeMessageEnd()
3724
    self._oprot.writeMessageEnd()
3739
    self._oprot.trans.flush()
3725
    self._oprot.trans.flush()
3740
 
3726
 
3741
  def recv_updateAmazonItemDetails(self, ):
3727
  def recv_updateAmazonItemDetails(self, ):
Line 4032... Line 4018...
4032
    self._iprot.readMessageEnd()
4018
    self._iprot.readMessageEnd()
4033
    if result.success is not None:
4019
    if result.success is not None:
4034
      return result.success
4020
      return result.success
4035
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4021
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4036
 
4022
 
-
 
4023
  def updateAmazonAttributesInBulk(self, amazonlisted):
-
 
4024
    """
-
 
4025
    Parameters:
-
 
4026
     - amazonlisted
-
 
4027
    """
-
 
4028
    self.send_updateAmazonAttributesInBulk(amazonlisted)
-
 
4029
    return self.recv_updateAmazonAttributesInBulk()
-
 
4030
 
-
 
4031
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
-
 
4032
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
-
 
4033
    args = updateAmazonAttributesInBulk_args()
-
 
4034
    args.amazonlisted = amazonlisted
-
 
4035
    args.write(self._oprot)
-
 
4036
    self._oprot.writeMessageEnd()
-
 
4037
    self._oprot.trans.flush()
-
 
4038
 
-
 
4039
  def recv_updateAmazonAttributesInBulk(self, ):
-
 
4040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4041
    if mtype == TMessageType.EXCEPTION:
-
 
4042
      x = TApplicationException()
-
 
4043
      x.read(self._iprot)
-
 
4044
      self._iprot.readMessageEnd()
-
 
4045
      raise x
-
 
4046
    result = updateAmazonAttributesInBulk_result()
-
 
4047
    result.read(self._iprot)
-
 
4048
    self._iprot.readMessageEnd()
-
 
4049
    if result.success is not None:
-
 
4050
      return result.success
-
 
4051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
-
 
4052
 
4037
 
4053
 
4038
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4054
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4039
  def __init__(self, handler):
4055
  def __init__(self, handler):
4040
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4056
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4041
    self._processMap["addItem"] = Processor.process_addItem
4057
    self._processMap["addItem"] = Processor.process_addItem
Line 4139... Line 4155...
4139
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
4155
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
4140
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
4156
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
4141
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
4157
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
4142
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
4158
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
4143
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4159
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
-
 
4160
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4144
 
4161
 
4145
  def process(self, iprot, oprot):
4162
  def process(self, iprot, oprot):
4146
    (name, type, seqid) = iprot.readMessageBegin()
4163
    (name, type, seqid) = iprot.readMessageBegin()
4147
    if name not in self._processMap:
4164
    if name not in self._processMap:
4148
      iprot.skip(TType.STRUCT)
4165
      iprot.skip(TType.STRUCT)
Line 5286... Line 5303...
5286
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
5303
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
5287
    args = updateAmazonItemDetails_args()
5304
    args = updateAmazonItemDetails_args()
5288
    args.read(iprot)
5305
    args.read(iprot)
5289
    iprot.readMessageEnd()
5306
    iprot.readMessageEnd()
5290
    result = updateAmazonItemDetails_result()
5307
    result = updateAmazonItemDetails_result()
5291
    self._handler.updateAmazonItemDetails(args.itemId, args.fbaPrice, args.sellingPrice, args.isFba, args.isNonFba, args.isInventoryOverride, args.handlingTime, args.isCustomTime)
5308
    self._handler.updateAmazonItemDetails(args.amazonlisted)
5292
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
5309
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
5293
    result.write(oprot)
5310
    result.write(oprot)
5294
    oprot.writeMessageEnd()
5311
    oprot.writeMessageEnd()
5295
    oprot.trans.flush()
5312
    oprot.trans.flush()
5296
 
5313
 
Line 5402... Line 5419...
5402
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
5419
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
5403
    result.write(oprot)
5420
    result.write(oprot)
5404
    oprot.writeMessageEnd()
5421
    oprot.writeMessageEnd()
5405
    oprot.trans.flush()
5422
    oprot.trans.flush()
5406
 
5423
 
-
 
5424
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
-
 
5425
    args = updateAmazonAttributesInBulk_args()
-
 
5426
    args.read(iprot)
-
 
5427
    iprot.readMessageEnd()
-
 
5428
    result = updateAmazonAttributesInBulk_result()
-
 
5429
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
-
 
5430
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
-
 
5431
    result.write(oprot)
-
 
5432
    oprot.writeMessageEnd()
-
 
5433
    oprot.trans.flush()
-
 
5434
 
5407
 
5435
 
5408
# HELPER FUNCTIONS AND STRUCTURES
5436
# HELPER FUNCTIONS AND STRUCTURES
5409
 
5437
 
5410
class addItem_args:
5438
class addItem_args:
5411
  """
5439
  """
Line 17478... Line 17506...
17478
    return not (self == other)
17506
    return not (self == other)
17479
 
17507
 
17480
class updateAmazonItemDetails_args:
17508
class updateAmazonItemDetails_args:
17481
  """
17509
  """
17482
  Attributes:
17510
  Attributes:
17483
   - itemId
-
 
17484
   - fbaPrice
-
 
17485
   - sellingPrice
-
 
17486
   - isFba
-
 
17487
   - isNonFba
-
 
17488
   - isInventoryOverride
-
 
17489
   - handlingTime
17511
   - amazonlisted
17490
   - isCustomTime
-
 
17491
  """
17512
  """
17492
 
17513
 
17493
  thrift_spec = (
17514
  thrift_spec = (
17494
    None, # 0
17515
    None, # 0
17495
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
17496
    (2, TType.DOUBLE, 'fbaPrice', None, None, ), # 2
-
 
17497
    (3, TType.DOUBLE, 'sellingPrice', None, None, ), # 3
-
 
17498
    (4, TType.BOOL, 'isFba', None, None, ), # 4
-
 
17499
    (5, TType.BOOL, 'isNonFba', None, None, ), # 5
-
 
17500
    (6, TType.BOOL, 'isInventoryOverride', None, None, ), # 6
17516
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
17501
    (7, TType.I64, 'handlingTime', None, None, ), # 7
-
 
17502
    (8, TType.BOOL, 'isCustomTime', None, None, ), # 8
-
 
17503
  )
17517
  )
17504
 
17518
 
17505
  def __init__(self, itemId=None, fbaPrice=None, sellingPrice=None, isFba=None, isNonFba=None, isInventoryOverride=None, handlingTime=None, isCustomTime=None,):
-
 
17506
    self.itemId = itemId
-
 
17507
    self.fbaPrice = fbaPrice
-
 
17508
    self.sellingPrice = sellingPrice
-
 
17509
    self.isFba = isFba
-
 
17510
    self.isNonFba = isNonFba
17519
  def __init__(self, amazonlisted=None,):
17511
    self.isInventoryOverride = isInventoryOverride
-
 
17512
    self.handlingTime = handlingTime
17520
    self.amazonlisted = amazonlisted
17513
    self.isCustomTime = isCustomTime
-
 
17514
 
17521
 
17515
  def read(self, iprot):
17522
  def read(self, iprot):
17516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17518
      return
17525
      return
Line 17520... Line 17527...
17520
    while True:
17527
    while True:
17521
      (fname, ftype, fid) = iprot.readFieldBegin()
17528
      (fname, ftype, fid) = iprot.readFieldBegin()
17522
      if ftype == TType.STOP:
17529
      if ftype == TType.STOP:
17523
        break
17530
        break
17524
      if fid == 1:
17531
      if fid == 1:
17525
        if ftype == TType.I64:
17532
        if ftype == TType.STRUCT:
17526
          self.itemId = iprot.readI64();
17533
          self.amazonlisted = Amazonlisted()
17527
        else:
-
 
17528
          iprot.skip(ftype)
-
 
17529
      elif fid == 2:
-
 
17530
        if ftype == TType.DOUBLE:
-
 
17531
          self.fbaPrice = iprot.readDouble();
-
 
17532
        else:
-
 
17533
          iprot.skip(ftype)
-
 
17534
      elif fid == 3:
-
 
17535
        if ftype == TType.DOUBLE:
-
 
17536
          self.sellingPrice = iprot.readDouble();
-
 
17537
        else:
-
 
17538
          iprot.skip(ftype)
-
 
17539
      elif fid == 4:
-
 
17540
        if ftype == TType.BOOL:
-
 
17541
          self.isFba = iprot.readBool();
17534
          self.amazonlisted.read(iprot)
17542
        else:
-
 
17543
          iprot.skip(ftype)
-
 
17544
      elif fid == 5:
-
 
17545
        if ftype == TType.BOOL:
-
 
17546
          self.isNonFba = iprot.readBool();
-
 
17547
        else:
-
 
17548
          iprot.skip(ftype)
-
 
17549
      elif fid == 6:
-
 
17550
        if ftype == TType.BOOL:
-
 
17551
          self.isInventoryOverride = iprot.readBool();
-
 
17552
        else:
-
 
17553
          iprot.skip(ftype)
-
 
17554
      elif fid == 7:
-
 
17555
        if ftype == TType.I64:
-
 
17556
          self.handlingTime = iprot.readI64();
-
 
17557
        else:
-
 
17558
          iprot.skip(ftype)
-
 
17559
      elif fid == 8:
-
 
17560
        if ftype == TType.BOOL:
-
 
17561
          self.isCustomTime = iprot.readBool();
-
 
17562
        else:
17535
        else:
17563
          iprot.skip(ftype)
17536
          iprot.skip(ftype)
17564
      else:
17537
      else:
17565
        iprot.skip(ftype)
17538
        iprot.skip(ftype)
17566
      iprot.readFieldEnd()
17539
      iprot.readFieldEnd()
Line 17569... Line 17542...
17569
  def write(self, oprot):
17542
  def write(self, oprot):
17570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17572
      return
17545
      return
17573
    oprot.writeStructBegin('updateAmazonItemDetails_args')
17546
    oprot.writeStructBegin('updateAmazonItemDetails_args')
17574
    if self.itemId is not None:
-
 
17575
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
17576
      oprot.writeI64(self.itemId)
-
 
17577
      oprot.writeFieldEnd()
-
 
17578
    if self.fbaPrice is not None:
17547
    if self.amazonlisted is not None:
17579
      oprot.writeFieldBegin('fbaPrice', TType.DOUBLE, 2)
17548
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
17580
      oprot.writeDouble(self.fbaPrice)
-
 
17581
      oprot.writeFieldEnd()
-
 
17582
    if self.sellingPrice is not None:
-
 
17583
      oprot.writeFieldBegin('sellingPrice', TType.DOUBLE, 3)
-
 
17584
      oprot.writeDouble(self.sellingPrice)
-
 
17585
      oprot.writeFieldEnd()
-
 
17586
    if self.isFba is not None:
-
 
17587
      oprot.writeFieldBegin('isFba', TType.BOOL, 4)
-
 
17588
      oprot.writeBool(self.isFba)
-
 
17589
      oprot.writeFieldEnd()
-
 
17590
    if self.isNonFba is not None:
-
 
17591
      oprot.writeFieldBegin('isNonFba', TType.BOOL, 5)
-
 
17592
      oprot.writeBool(self.isNonFba)
-
 
17593
      oprot.writeFieldEnd()
-
 
17594
    if self.isInventoryOverride is not None:
-
 
17595
      oprot.writeFieldBegin('isInventoryOverride', TType.BOOL, 6)
-
 
17596
      oprot.writeBool(self.isInventoryOverride)
-
 
17597
      oprot.writeFieldEnd()
-
 
17598
    if self.handlingTime is not None:
17549
      self.amazonlisted.write(oprot)
17599
      oprot.writeFieldBegin('handlingTime', TType.I64, 7)
-
 
17600
      oprot.writeI64(self.handlingTime)
-
 
17601
      oprot.writeFieldEnd()
-
 
17602
    if self.isCustomTime is not None:
-
 
17603
      oprot.writeFieldBegin('isCustomTime', TType.BOOL, 8)
-
 
17604
      oprot.writeBool(self.isCustomTime)
-
 
17605
      oprot.writeFieldEnd()
17550
      oprot.writeFieldEnd()
17606
    oprot.writeFieldStop()
17551
    oprot.writeFieldStop()
17607
    oprot.writeStructEnd()
17552
    oprot.writeStructEnd()
17608
 
17553
 
17609
  def validate(self):
17554
  def validate(self):
Line 18830... Line 18775...
18830
      oprot.writeFieldEnd()
18775
      oprot.writeFieldEnd()
18831
    oprot.writeFieldStop()
18776
    oprot.writeFieldStop()
18832
    oprot.writeStructEnd()
18777
    oprot.writeStructEnd()
18833
 
18778
 
18834
  def validate(self):
18779
  def validate(self):
-
 
18780
    return
-
 
18781
 
-
 
18782
 
-
 
18783
  def __repr__(self):
-
 
18784
    L = ['%s=%r' % (key, value)
-
 
18785
      for key, value in self.__dict__.iteritems()]
-
 
18786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
18787
 
-
 
18788
  def __eq__(self, other):
-
 
18789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
18790
 
-
 
18791
  def __ne__(self, other):
-
 
18792
    return not (self == other)
-
 
18793
 
-
 
18794
class updateAmazonAttributesInBulk_args:
-
 
18795
  """
-
 
18796
  Attributes:
-
 
18797
   - amazonlisted
-
 
18798
  """
-
 
18799
 
-
 
18800
  thrift_spec = (
-
 
18801
    None, # 0
-
 
18802
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
-
 
18803
  )
-
 
18804
 
-
 
18805
  def __init__(self, amazonlisted=None,):
-
 
18806
    self.amazonlisted = amazonlisted
-
 
18807
 
-
 
18808
  def read(self, iprot):
-
 
18809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
18810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
18811
      return
-
 
18812
    iprot.readStructBegin()
-
 
18813
    while True:
-
 
18814
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
18815
      if ftype == TType.STOP:
-
 
18816
        break
-
 
18817
      if fid == 1:
-
 
18818
        if ftype == TType.MAP:
-
 
18819
          self.amazonlisted = {}
-
 
18820
          (_ktype387, _vtype388, _size386 ) = iprot.readMapBegin() 
-
 
18821
          for _i390 in xrange(_size386):
-
 
18822
            _key391 = iprot.readI64();
-
 
18823
            _val392 = Amazonlisted()
-
 
18824
            _val392.read(iprot)
-
 
18825
            self.amazonlisted[_key391] = _val392
-
 
18826
          iprot.readMapEnd()
-
 
18827
        else:
-
 
18828
          iprot.skip(ftype)
-
 
18829
      else:
-
 
18830
        iprot.skip(ftype)
-
 
18831
      iprot.readFieldEnd()
-
 
18832
    iprot.readStructEnd()
-
 
18833
 
-
 
18834
  def write(self, oprot):
-
 
18835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
18836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
18837
      return
-
 
18838
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
-
 
18839
    if self.amazonlisted is not None:
-
 
18840
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
-
 
18841
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
-
 
18842
      for kiter393,viter394 in self.amazonlisted.items():
-
 
18843
        oprot.writeI64(kiter393)
-
 
18844
        viter394.write(oprot)
-
 
18845
      oprot.writeMapEnd()
-
 
18846
      oprot.writeFieldEnd()
-
 
18847
    oprot.writeFieldStop()
-
 
18848
    oprot.writeStructEnd()
-
 
18849
 
-
 
18850
  def validate(self):
-
 
18851
    return
-
 
18852
 
-
 
18853
 
-
 
18854
  def __repr__(self):
-
 
18855
    L = ['%s=%r' % (key, value)
-
 
18856
      for key, value in self.__dict__.iteritems()]
-
 
18857
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
18858
 
-
 
18859
  def __eq__(self, other):
-
 
18860
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
18861
 
-
 
18862
  def __ne__(self, other):
-
 
18863
    return not (self == other)
-
 
18864
 
-
 
18865
class updateAmazonAttributesInBulk_result:
-
 
18866
  """
-
 
18867
  Attributes:
-
 
18868
   - success
-
 
18869
  """
-
 
18870
 
-
 
18871
  thrift_spec = (
-
 
18872
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
18873
  )
-
 
18874
 
-
 
18875
  def __init__(self, success=None,):
-
 
18876
    self.success = success
-
 
18877
 
-
 
18878
  def read(self, iprot):
-
 
18879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
18880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
18881
      return
-
 
18882
    iprot.readStructBegin()
-
 
18883
    while True:
-
 
18884
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
18885
      if ftype == TType.STOP:
-
 
18886
        break
-
 
18887
      if fid == 0:
-
 
18888
        if ftype == TType.BOOL:
-
 
18889
          self.success = iprot.readBool();
-
 
18890
        else:
-
 
18891
          iprot.skip(ftype)
-
 
18892
      else:
-
 
18893
        iprot.skip(ftype)
-
 
18894
      iprot.readFieldEnd()
-
 
18895
    iprot.readStructEnd()
-
 
18896
 
-
 
18897
  def write(self, oprot):
-
 
18898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
18899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
18900
      return
-
 
18901
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
-
 
18902
    if self.success is not None:
-
 
18903
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
18904
      oprot.writeBool(self.success)
-
 
18905
      oprot.writeFieldEnd()
-
 
18906
    oprot.writeFieldStop()
-
 
18907
    oprot.writeStructEnd()
-
 
18908
 
-
 
18909
  def validate(self):
18835
    return
18910
    return
18836
 
18911
 
18837
 
18912
 
18838
  def __repr__(self):
18913
  def __repr__(self):
18839
    L = ['%s=%r' % (key, value)
18914
    L = ['%s=%r' % (key, value)