tencentcloud-sdk-python-intl-en 3.0.1194__py2.py3-none-any.whl → 3.0.1195__py2.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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

@@ -0,0 +1,915 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class DescribeFabricBlockRequest(AbstractModel):
22
+ """DescribeFabricBlock request structure.
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _ClusterId: Cluster ID, which can be obtained from the blockchain cluster details or in the list.
29
+ :type ClusterId: str
30
+ :param _ChannelId: Channel ID, which can be obtained from the channel list or channel detail.
31
+ :type ChannelId: str
32
+ :param _BlockHeight: Block height, starting from 0.
33
+ :type BlockHeight: int
34
+ """
35
+ self._ClusterId = None
36
+ self._ChannelId = None
37
+ self._BlockHeight = None
38
+
39
+ @property
40
+ def ClusterId(self):
41
+ """Cluster ID, which can be obtained from the blockchain cluster details or in the list.
42
+ :rtype: str
43
+ """
44
+ return self._ClusterId
45
+
46
+ @ClusterId.setter
47
+ def ClusterId(self, ClusterId):
48
+ self._ClusterId = ClusterId
49
+
50
+ @property
51
+ def ChannelId(self):
52
+ """Channel ID, which can be obtained from the channel list or channel detail.
53
+ :rtype: str
54
+ """
55
+ return self._ChannelId
56
+
57
+ @ChannelId.setter
58
+ def ChannelId(self, ChannelId):
59
+ self._ChannelId = ChannelId
60
+
61
+ @property
62
+ def BlockHeight(self):
63
+ """Block height, starting from 0.
64
+ :rtype: int
65
+ """
66
+ return self._BlockHeight
67
+
68
+ @BlockHeight.setter
69
+ def BlockHeight(self, BlockHeight):
70
+ self._BlockHeight = BlockHeight
71
+
72
+
73
+ def _deserialize(self, params):
74
+ self._ClusterId = params.get("ClusterId")
75
+ self._ChannelId = params.get("ChannelId")
76
+ self._BlockHeight = params.get("BlockHeight")
77
+ memeber_set = set(params.keys())
78
+ for name, value in vars(self).items():
79
+ property_name = name[1:]
80
+ if property_name in memeber_set:
81
+ memeber_set.remove(property_name)
82
+ if len(memeber_set) > 0:
83
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
84
+
85
+
86
+
87
+ class DescribeFabricBlockResponse(AbstractModel):
88
+ """DescribeFabricBlock response structure.
89
+
90
+ """
91
+
92
+ def __init__(self):
93
+ r"""
94
+ :param _BlockHeight: Block height.
95
+ :type BlockHeight: int
96
+ :param _BlockHash: Block Hash.
97
+ :type BlockHash: str
98
+ :param _PreBlockHash: Pre-Block Hash.
99
+ :type PreBlockHash: str
100
+ :param _TxCount: The number of transactions in a block.
101
+ :type TxCount: int
102
+ :param _TransactionList: Transaction list in the block.
103
+ :type TransactionList: list of Transaction
104
+ :param _CreateTimestamp: Creation Timestamp
105
+ :type CreateTimestamp: str
106
+ :param _ProposerOrg: Proposal organization.
107
+ :type ProposerOrg: str
108
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
109
+ :type RequestId: str
110
+ """
111
+ self._BlockHeight = None
112
+ self._BlockHash = None
113
+ self._PreBlockHash = None
114
+ self._TxCount = None
115
+ self._TransactionList = None
116
+ self._CreateTimestamp = None
117
+ self._ProposerOrg = None
118
+ self._RequestId = None
119
+
120
+ @property
121
+ def BlockHeight(self):
122
+ """Block height.
123
+ :rtype: int
124
+ """
125
+ return self._BlockHeight
126
+
127
+ @BlockHeight.setter
128
+ def BlockHeight(self, BlockHeight):
129
+ self._BlockHeight = BlockHeight
130
+
131
+ @property
132
+ def BlockHash(self):
133
+ """Block Hash.
134
+ :rtype: str
135
+ """
136
+ return self._BlockHash
137
+
138
+ @BlockHash.setter
139
+ def BlockHash(self, BlockHash):
140
+ self._BlockHash = BlockHash
141
+
142
+ @property
143
+ def PreBlockHash(self):
144
+ """Pre-Block Hash.
145
+ :rtype: str
146
+ """
147
+ return self._PreBlockHash
148
+
149
+ @PreBlockHash.setter
150
+ def PreBlockHash(self, PreBlockHash):
151
+ self._PreBlockHash = PreBlockHash
152
+
153
+ @property
154
+ def TxCount(self):
155
+ """The number of transactions in a block.
156
+ :rtype: int
157
+ """
158
+ return self._TxCount
159
+
160
+ @TxCount.setter
161
+ def TxCount(self, TxCount):
162
+ self._TxCount = TxCount
163
+
164
+ @property
165
+ def TransactionList(self):
166
+ """Transaction list in the block.
167
+ :rtype: list of Transaction
168
+ """
169
+ return self._TransactionList
170
+
171
+ @TransactionList.setter
172
+ def TransactionList(self, TransactionList):
173
+ self._TransactionList = TransactionList
174
+
175
+ @property
176
+ def CreateTimestamp(self):
177
+ """Creation Timestamp
178
+ :rtype: str
179
+ """
180
+ return self._CreateTimestamp
181
+
182
+ @CreateTimestamp.setter
183
+ def CreateTimestamp(self, CreateTimestamp):
184
+ self._CreateTimestamp = CreateTimestamp
185
+
186
+ @property
187
+ def ProposerOrg(self):
188
+ """Proposal organization.
189
+ :rtype: str
190
+ """
191
+ return self._ProposerOrg
192
+
193
+ @ProposerOrg.setter
194
+ def ProposerOrg(self, ProposerOrg):
195
+ self._ProposerOrg = ProposerOrg
196
+
197
+ @property
198
+ def RequestId(self):
199
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
200
+ :rtype: str
201
+ """
202
+ return self._RequestId
203
+
204
+ @RequestId.setter
205
+ def RequestId(self, RequestId):
206
+ self._RequestId = RequestId
207
+
208
+
209
+ def _deserialize(self, params):
210
+ self._BlockHeight = params.get("BlockHeight")
211
+ self._BlockHash = params.get("BlockHash")
212
+ self._PreBlockHash = params.get("PreBlockHash")
213
+ self._TxCount = params.get("TxCount")
214
+ if params.get("TransactionList") is not None:
215
+ self._TransactionList = []
216
+ for item in params.get("TransactionList"):
217
+ obj = Transaction()
218
+ obj._deserialize(item)
219
+ self._TransactionList.append(obj)
220
+ self._CreateTimestamp = params.get("CreateTimestamp")
221
+ self._ProposerOrg = params.get("ProposerOrg")
222
+ self._RequestId = params.get("RequestId")
223
+
224
+
225
+ class DescribeFabricTransactionRequest(AbstractModel):
226
+ """DescribeFabricTransaction request structure.
227
+
228
+ """
229
+
230
+ def __init__(self):
231
+ r"""
232
+ :param _ClusterId: Cluster ID, which can be obtained from the blockchain cluster details or in the list.
233
+ :type ClusterId: str
234
+ :param _ChannelId: Channel ID, which can be obtained from the channel list or channel detail.
235
+ :type ChannelId: str
236
+ :param _TxId: Transaction ID
237
+ :type TxId: str
238
+ """
239
+ self._ClusterId = None
240
+ self._ChannelId = None
241
+ self._TxId = None
242
+
243
+ @property
244
+ def ClusterId(self):
245
+ """Cluster ID, which can be obtained from the blockchain cluster details or in the list.
246
+ :rtype: str
247
+ """
248
+ return self._ClusterId
249
+
250
+ @ClusterId.setter
251
+ def ClusterId(self, ClusterId):
252
+ self._ClusterId = ClusterId
253
+
254
+ @property
255
+ def ChannelId(self):
256
+ """Channel ID, which can be obtained from the channel list or channel detail.
257
+ :rtype: str
258
+ """
259
+ return self._ChannelId
260
+
261
+ @ChannelId.setter
262
+ def ChannelId(self, ChannelId):
263
+ self._ChannelId = ChannelId
264
+
265
+ @property
266
+ def TxId(self):
267
+ """Transaction ID
268
+ :rtype: str
269
+ """
270
+ return self._TxId
271
+
272
+ @TxId.setter
273
+ def TxId(self, TxId):
274
+ self._TxId = TxId
275
+
276
+
277
+ def _deserialize(self, params):
278
+ self._ClusterId = params.get("ClusterId")
279
+ self._ChannelId = params.get("ChannelId")
280
+ self._TxId = params.get("TxId")
281
+ memeber_set = set(params.keys())
282
+ for name, value in vars(self).items():
283
+ property_name = name[1:]
284
+ if property_name in memeber_set:
285
+ memeber_set.remove(property_name)
286
+ if len(memeber_set) > 0:
287
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
288
+
289
+
290
+
291
+ class DescribeFabricTransactionResponse(AbstractModel):
292
+ """DescribeFabricTransaction response structure.
293
+
294
+ """
295
+
296
+ def __init__(self):
297
+ r"""
298
+ :param _TxId: Transaction ID
299
+ :type TxId: str
300
+ :param _TxHash: Transaction Hash.
301
+ :type TxHash: str
302
+ :param _TxStatus: Transaction status.
303
+ :type TxStatus: str
304
+ :param _JoinOrgList: Organization list involved.
305
+ :type JoinOrgList: list of str
306
+ :param _Sender: Transaction sender.
307
+ :type Sender: str
308
+ :param _CreateTime: Creation time
309
+ :type CreateTime: str
310
+ :param _BlockHeight: Block height.
311
+ :type BlockHeight: int
312
+ :param _ChaincodeName: The contract to which the exchange belongs.
313
+ :type ChaincodeName: str
314
+ :param _TransactionData: Transaction data, base64 encoded, decoded as a json string.
315
+ :type TransactionData: str
316
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
317
+ :type RequestId: str
318
+ """
319
+ self._TxId = None
320
+ self._TxHash = None
321
+ self._TxStatus = None
322
+ self._JoinOrgList = None
323
+ self._Sender = None
324
+ self._CreateTime = None
325
+ self._BlockHeight = None
326
+ self._ChaincodeName = None
327
+ self._TransactionData = None
328
+ self._RequestId = None
329
+
330
+ @property
331
+ def TxId(self):
332
+ """Transaction ID
333
+ :rtype: str
334
+ """
335
+ return self._TxId
336
+
337
+ @TxId.setter
338
+ def TxId(self, TxId):
339
+ self._TxId = TxId
340
+
341
+ @property
342
+ def TxHash(self):
343
+ """Transaction Hash.
344
+ :rtype: str
345
+ """
346
+ return self._TxHash
347
+
348
+ @TxHash.setter
349
+ def TxHash(self, TxHash):
350
+ self._TxHash = TxHash
351
+
352
+ @property
353
+ def TxStatus(self):
354
+ """Transaction status.
355
+ :rtype: str
356
+ """
357
+ return self._TxStatus
358
+
359
+ @TxStatus.setter
360
+ def TxStatus(self, TxStatus):
361
+ self._TxStatus = TxStatus
362
+
363
+ @property
364
+ def JoinOrgList(self):
365
+ """Organization list involved.
366
+ :rtype: list of str
367
+ """
368
+ return self._JoinOrgList
369
+
370
+ @JoinOrgList.setter
371
+ def JoinOrgList(self, JoinOrgList):
372
+ self._JoinOrgList = JoinOrgList
373
+
374
+ @property
375
+ def Sender(self):
376
+ """Transaction sender.
377
+ :rtype: str
378
+ """
379
+ return self._Sender
380
+
381
+ @Sender.setter
382
+ def Sender(self, Sender):
383
+ self._Sender = Sender
384
+
385
+ @property
386
+ def CreateTime(self):
387
+ """Creation time
388
+ :rtype: str
389
+ """
390
+ return self._CreateTime
391
+
392
+ @CreateTime.setter
393
+ def CreateTime(self, CreateTime):
394
+ self._CreateTime = CreateTime
395
+
396
+ @property
397
+ def BlockHeight(self):
398
+ """Block height.
399
+ :rtype: int
400
+ """
401
+ return self._BlockHeight
402
+
403
+ @BlockHeight.setter
404
+ def BlockHeight(self, BlockHeight):
405
+ self._BlockHeight = BlockHeight
406
+
407
+ @property
408
+ def ChaincodeName(self):
409
+ """The contract to which the exchange belongs.
410
+ :rtype: str
411
+ """
412
+ return self._ChaincodeName
413
+
414
+ @ChaincodeName.setter
415
+ def ChaincodeName(self, ChaincodeName):
416
+ self._ChaincodeName = ChaincodeName
417
+
418
+ @property
419
+ def TransactionData(self):
420
+ """Transaction data, base64 encoded, decoded as a json string.
421
+ :rtype: str
422
+ """
423
+ return self._TransactionData
424
+
425
+ @TransactionData.setter
426
+ def TransactionData(self, TransactionData):
427
+ self._TransactionData = TransactionData
428
+
429
+ @property
430
+ def RequestId(self):
431
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
432
+ :rtype: str
433
+ """
434
+ return self._RequestId
435
+
436
+ @RequestId.setter
437
+ def RequestId(self, RequestId):
438
+ self._RequestId = RequestId
439
+
440
+
441
+ def _deserialize(self, params):
442
+ self._TxId = params.get("TxId")
443
+ self._TxHash = params.get("TxHash")
444
+ self._TxStatus = params.get("TxStatus")
445
+ self._JoinOrgList = params.get("JoinOrgList")
446
+ self._Sender = params.get("Sender")
447
+ self._CreateTime = params.get("CreateTime")
448
+ self._BlockHeight = params.get("BlockHeight")
449
+ self._ChaincodeName = params.get("ChaincodeName")
450
+ self._TransactionData = params.get("TransactionData")
451
+ self._RequestId = params.get("RequestId")
452
+
453
+
454
+ class InvokeFabricChaincodeRequest(AbstractModel):
455
+ """InvokeFabricChaincode request structure.
456
+
457
+ """
458
+
459
+ def __init__(self):
460
+ r"""
461
+ :param _ClusterId: Cluster ID, which can be obtained from the blockchain cluster details.
462
+ :type ClusterId: str
463
+ :param _ChannelId: Channel ID, which can be obtained from the channel list or channel detail.
464
+ :type ChannelId: str
465
+ :param _ChaincodeName: Contract name. it can be obtained from the contract list or contract details.
466
+ :type ChaincodeName: str
467
+ :param _FuncName: Contract method.
468
+ :type FuncName: str
469
+ :param _FuncParam: Contract method input parameter.
470
+ :type FuncParam: list of str
471
+ :param _WithAsyncResult: Whether to execute asynchronously. if so, use the transaction TxID in the return value to query the execution result.
472
+ :type WithAsyncResult: bool
473
+ """
474
+ self._ClusterId = None
475
+ self._ChannelId = None
476
+ self._ChaincodeName = None
477
+ self._FuncName = None
478
+ self._FuncParam = None
479
+ self._WithAsyncResult = None
480
+
481
+ @property
482
+ def ClusterId(self):
483
+ """Cluster ID, which can be obtained from the blockchain cluster details.
484
+ :rtype: str
485
+ """
486
+ return self._ClusterId
487
+
488
+ @ClusterId.setter
489
+ def ClusterId(self, ClusterId):
490
+ self._ClusterId = ClusterId
491
+
492
+ @property
493
+ def ChannelId(self):
494
+ """Channel ID, which can be obtained from the channel list or channel detail.
495
+ :rtype: str
496
+ """
497
+ return self._ChannelId
498
+
499
+ @ChannelId.setter
500
+ def ChannelId(self, ChannelId):
501
+ self._ChannelId = ChannelId
502
+
503
+ @property
504
+ def ChaincodeName(self):
505
+ """Contract name. it can be obtained from the contract list or contract details.
506
+ :rtype: str
507
+ """
508
+ return self._ChaincodeName
509
+
510
+ @ChaincodeName.setter
511
+ def ChaincodeName(self, ChaincodeName):
512
+ self._ChaincodeName = ChaincodeName
513
+
514
+ @property
515
+ def FuncName(self):
516
+ """Contract method.
517
+ :rtype: str
518
+ """
519
+ return self._FuncName
520
+
521
+ @FuncName.setter
522
+ def FuncName(self, FuncName):
523
+ self._FuncName = FuncName
524
+
525
+ @property
526
+ def FuncParam(self):
527
+ """Contract method input parameter.
528
+ :rtype: list of str
529
+ """
530
+ return self._FuncParam
531
+
532
+ @FuncParam.setter
533
+ def FuncParam(self, FuncParam):
534
+ self._FuncParam = FuncParam
535
+
536
+ @property
537
+ def WithAsyncResult(self):
538
+ """Whether to execute asynchronously. if so, use the transaction TxID in the return value to query the execution result.
539
+ :rtype: bool
540
+ """
541
+ return self._WithAsyncResult
542
+
543
+ @WithAsyncResult.setter
544
+ def WithAsyncResult(self, WithAsyncResult):
545
+ self._WithAsyncResult = WithAsyncResult
546
+
547
+
548
+ def _deserialize(self, params):
549
+ self._ClusterId = params.get("ClusterId")
550
+ self._ChannelId = params.get("ChannelId")
551
+ self._ChaincodeName = params.get("ChaincodeName")
552
+ self._FuncName = params.get("FuncName")
553
+ self._FuncParam = params.get("FuncParam")
554
+ self._WithAsyncResult = params.get("WithAsyncResult")
555
+ memeber_set = set(params.keys())
556
+ for name, value in vars(self).items():
557
+ property_name = name[1:]
558
+ if property_name in memeber_set:
559
+ memeber_set.remove(property_name)
560
+ if len(memeber_set) > 0:
561
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
562
+
563
+
564
+
565
+ class InvokeFabricChaincodeResponse(AbstractModel):
566
+ """InvokeFabricChaincode response structure.
567
+
568
+ """
569
+
570
+ def __init__(self):
571
+ r"""
572
+ :param _TxId: Transaction ID
573
+ :type TxId: str
574
+ :param _TxStatus: Transaction status.
575
+ :type TxStatus: str
576
+ :param _TxResult: Transaction result.
577
+ :type TxResult: str
578
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
579
+ :type RequestId: str
580
+ """
581
+ self._TxId = None
582
+ self._TxStatus = None
583
+ self._TxResult = None
584
+ self._RequestId = None
585
+
586
+ @property
587
+ def TxId(self):
588
+ """Transaction ID
589
+ :rtype: str
590
+ """
591
+ return self._TxId
592
+
593
+ @TxId.setter
594
+ def TxId(self, TxId):
595
+ self._TxId = TxId
596
+
597
+ @property
598
+ def TxStatus(self):
599
+ """Transaction status.
600
+ :rtype: str
601
+ """
602
+ return self._TxStatus
603
+
604
+ @TxStatus.setter
605
+ def TxStatus(self, TxStatus):
606
+ self._TxStatus = TxStatus
607
+
608
+ @property
609
+ def TxResult(self):
610
+ """Transaction result.
611
+ :rtype: str
612
+ """
613
+ return self._TxResult
614
+
615
+ @TxResult.setter
616
+ def TxResult(self, TxResult):
617
+ self._TxResult = TxResult
618
+
619
+ @property
620
+ def RequestId(self):
621
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
622
+ :rtype: str
623
+ """
624
+ return self._RequestId
625
+
626
+ @RequestId.setter
627
+ def RequestId(self, RequestId):
628
+ self._RequestId = RequestId
629
+
630
+
631
+ def _deserialize(self, params):
632
+ self._TxId = params.get("TxId")
633
+ self._TxStatus = params.get("TxStatus")
634
+ self._TxResult = params.get("TxResult")
635
+ self._RequestId = params.get("RequestId")
636
+
637
+
638
+ class QueryFabricChaincodeRequest(AbstractModel):
639
+ """QueryFabricChaincode request structure.
640
+
641
+ """
642
+
643
+ def __init__(self):
644
+ r"""
645
+ :param _ClusterId: Cluster ID, which can be obtained from the blockchain cluster details.
646
+ :type ClusterId: str
647
+ :param _ChannelId: Channel ID, which can be obtained from the channel list or channel details.
648
+ :type ChannelId: str
649
+ :param _ChaincodeName: Contract name. it can be obtained from the contract list or contract details.
650
+ :type ChaincodeName: str
651
+ :param _FuncName: Contract method.
652
+ :type FuncName: str
653
+ :param _FuncParam: Contract method input parameter.
654
+ :type FuncParam: list of str
655
+ """
656
+ self._ClusterId = None
657
+ self._ChannelId = None
658
+ self._ChaincodeName = None
659
+ self._FuncName = None
660
+ self._FuncParam = None
661
+
662
+ @property
663
+ def ClusterId(self):
664
+ """Cluster ID, which can be obtained from the blockchain cluster details.
665
+ :rtype: str
666
+ """
667
+ return self._ClusterId
668
+
669
+ @ClusterId.setter
670
+ def ClusterId(self, ClusterId):
671
+ self._ClusterId = ClusterId
672
+
673
+ @property
674
+ def ChannelId(self):
675
+ """Channel ID, which can be obtained from the channel list or channel details.
676
+ :rtype: str
677
+ """
678
+ return self._ChannelId
679
+
680
+ @ChannelId.setter
681
+ def ChannelId(self, ChannelId):
682
+ self._ChannelId = ChannelId
683
+
684
+ @property
685
+ def ChaincodeName(self):
686
+ """Contract name. it can be obtained from the contract list or contract details.
687
+ :rtype: str
688
+ """
689
+ return self._ChaincodeName
690
+
691
+ @ChaincodeName.setter
692
+ def ChaincodeName(self, ChaincodeName):
693
+ self._ChaincodeName = ChaincodeName
694
+
695
+ @property
696
+ def FuncName(self):
697
+ """Contract method.
698
+ :rtype: str
699
+ """
700
+ return self._FuncName
701
+
702
+ @FuncName.setter
703
+ def FuncName(self, FuncName):
704
+ self._FuncName = FuncName
705
+
706
+ @property
707
+ def FuncParam(self):
708
+ """Contract method input parameter.
709
+ :rtype: list of str
710
+ """
711
+ return self._FuncParam
712
+
713
+ @FuncParam.setter
714
+ def FuncParam(self, FuncParam):
715
+ self._FuncParam = FuncParam
716
+
717
+
718
+ def _deserialize(self, params):
719
+ self._ClusterId = params.get("ClusterId")
720
+ self._ChannelId = params.get("ChannelId")
721
+ self._ChaincodeName = params.get("ChaincodeName")
722
+ self._FuncName = params.get("FuncName")
723
+ self._FuncParam = params.get("FuncParam")
724
+ memeber_set = set(params.keys())
725
+ for name, value in vars(self).items():
726
+ property_name = name[1:]
727
+ if property_name in memeber_set:
728
+ memeber_set.remove(property_name)
729
+ if len(memeber_set) > 0:
730
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
731
+
732
+
733
+
734
+ class QueryFabricChaincodeResponse(AbstractModel):
735
+ """QueryFabricChaincode response structure.
736
+
737
+ """
738
+
739
+ def __init__(self):
740
+ r"""
741
+ :param _TxId: Transaction ID
742
+ :type TxId: str
743
+ :param _TxStatus: Transaction status.
744
+ :type TxStatus: str
745
+ :param _TxResult: Transaction result.
746
+ :type TxResult: str
747
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
748
+ :type RequestId: str
749
+ """
750
+ self._TxId = None
751
+ self._TxStatus = None
752
+ self._TxResult = None
753
+ self._RequestId = None
754
+
755
+ @property
756
+ def TxId(self):
757
+ """Transaction ID
758
+ :rtype: str
759
+ """
760
+ return self._TxId
761
+
762
+ @TxId.setter
763
+ def TxId(self, TxId):
764
+ self._TxId = TxId
765
+
766
+ @property
767
+ def TxStatus(self):
768
+ """Transaction status.
769
+ :rtype: str
770
+ """
771
+ return self._TxStatus
772
+
773
+ @TxStatus.setter
774
+ def TxStatus(self, TxStatus):
775
+ self._TxStatus = TxStatus
776
+
777
+ @property
778
+ def TxResult(self):
779
+ """Transaction result.
780
+ :rtype: str
781
+ """
782
+ return self._TxResult
783
+
784
+ @TxResult.setter
785
+ def TxResult(self, TxResult):
786
+ self._TxResult = TxResult
787
+
788
+ @property
789
+ def RequestId(self):
790
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
791
+ :rtype: str
792
+ """
793
+ return self._RequestId
794
+
795
+ @RequestId.setter
796
+ def RequestId(self, RequestId):
797
+ self._RequestId = RequestId
798
+
799
+
800
+ def _deserialize(self, params):
801
+ self._TxId = params.get("TxId")
802
+ self._TxStatus = params.get("TxStatus")
803
+ self._TxResult = params.get("TxResult")
804
+ self._RequestId = params.get("RequestId")
805
+
806
+
807
+ class Transaction(AbstractModel):
808
+ """Transaction overview information display.
809
+
810
+ """
811
+
812
+ def __init__(self):
813
+ r"""
814
+ :param _TxId: Transaction ID
815
+ :type TxId: str
816
+ :param _ChaincodeName: Contract name.
817
+ :type ChaincodeName: str
818
+ :param _Sender: Transaction sender.
819
+ :type Sender: str
820
+ :param _CreateTime: Transaction creation time.
821
+ :type CreateTime: str
822
+ :param _BlockHeight: The block height where the trading platform is located.
823
+ :type BlockHeight: int
824
+ :param _TxIndex: The serial number of a transaction in a block.
825
+ :type TxIndex: int
826
+ """
827
+ self._TxId = None
828
+ self._ChaincodeName = None
829
+ self._Sender = None
830
+ self._CreateTime = None
831
+ self._BlockHeight = None
832
+ self._TxIndex = None
833
+
834
+ @property
835
+ def TxId(self):
836
+ """Transaction ID
837
+ :rtype: str
838
+ """
839
+ return self._TxId
840
+
841
+ @TxId.setter
842
+ def TxId(self, TxId):
843
+ self._TxId = TxId
844
+
845
+ @property
846
+ def ChaincodeName(self):
847
+ """Contract name.
848
+ :rtype: str
849
+ """
850
+ return self._ChaincodeName
851
+
852
+ @ChaincodeName.setter
853
+ def ChaincodeName(self, ChaincodeName):
854
+ self._ChaincodeName = ChaincodeName
855
+
856
+ @property
857
+ def Sender(self):
858
+ """Transaction sender.
859
+ :rtype: str
860
+ """
861
+ return self._Sender
862
+
863
+ @Sender.setter
864
+ def Sender(self, Sender):
865
+ self._Sender = Sender
866
+
867
+ @property
868
+ def CreateTime(self):
869
+ """Transaction creation time.
870
+ :rtype: str
871
+ """
872
+ return self._CreateTime
873
+
874
+ @CreateTime.setter
875
+ def CreateTime(self, CreateTime):
876
+ self._CreateTime = CreateTime
877
+
878
+ @property
879
+ def BlockHeight(self):
880
+ """The block height where the trading platform is located.
881
+ :rtype: int
882
+ """
883
+ return self._BlockHeight
884
+
885
+ @BlockHeight.setter
886
+ def BlockHeight(self, BlockHeight):
887
+ self._BlockHeight = BlockHeight
888
+
889
+ @property
890
+ def TxIndex(self):
891
+ """The serial number of a transaction in a block.
892
+ :rtype: int
893
+ """
894
+ return self._TxIndex
895
+
896
+ @TxIndex.setter
897
+ def TxIndex(self, TxIndex):
898
+ self._TxIndex = TxIndex
899
+
900
+
901
+ def _deserialize(self, params):
902
+ self._TxId = params.get("TxId")
903
+ self._ChaincodeName = params.get("ChaincodeName")
904
+ self._Sender = params.get("Sender")
905
+ self._CreateTime = params.get("CreateTime")
906
+ self._BlockHeight = params.get("BlockHeight")
907
+ self._TxIndex = params.get("TxIndex")
908
+ memeber_set = set(params.keys())
909
+ for name, value in vars(self).items():
910
+ property_name = name[1:]
911
+ if property_name in memeber_set:
912
+ memeber_set.remove(property_name)
913
+ if len(memeber_set) > 0:
914
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
915
+