tencentcloud-sdk-tbaas 3.0.707 → 3.0.708

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5354816990a5216526b9ad45a49fcff984755812
4
- data.tar.gz: 1d865a7b73866dcfaf9ae0743311104975eece17
3
+ metadata.gz: cab14be19c2fe0f4d4b40d3aecf3278e82946265
4
+ data.tar.gz: 4e8c831c967264ccedd0da6182946cb57bd4d46a
5
5
  SHA512:
6
- metadata.gz: 8d7bf9f77cc4b163511ab18f857d2d390b4e3552ae6bdec413e5dafc07133b421d0d97b1a34d36ecec6c962b40e2f316f2db46f83035ea34e8b9ff1e2c5045a1
7
- data.tar.gz: 8f3e073cdf2a2c7281dece0ae5a876088e266289e8faf610abd90c0f928974011d0fbe7a5cacfdd2b3b244a12b48b275eb90773d4df18b52ea6e629dc1ad4e29
6
+ metadata.gz: f7b429033f9128ecd40e8f6ab71c08d9e0cd05c2d0918bacb05742c0c3f784d703e144d1d6cf9f303741494cd47725ef6eb022b9ee1c86fdf437983ab5c6421a
7
+ data.tar.gz: cd2e2ccf0168597faedde1473084b31a78a4d727143c32e5941832a184054d63aa555dbcfd66ffdccb8090cfd2ec00965cc8fb37bf4925cad7abcbd23e737a87
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.707
1
+ 3.0.708
@@ -77,6 +77,54 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 获取Fabric某区块的详细信息
81
+
82
+ # @param request: Request instance for DescribeFabricBlock.
83
+ # @type request: :class:`Tencentcloud::tbaas::V20180416::DescribeFabricBlockRequest`
84
+ # @rtype: :class:`Tencentcloud::tbaas::V20180416::DescribeFabricBlockResponse`
85
+ def DescribeFabricBlock(request)
86
+ body = send_request('DescribeFabricBlock', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeFabricBlockResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 获取Fabric交易的详细信息
105
+
106
+ # @param request: Request instance for DescribeFabricTransaction.
107
+ # @type request: :class:`Tencentcloud::tbaas::V20180416::DescribeFabricTransactionRequest`
108
+ # @rtype: :class:`Tencentcloud::tbaas::V20180416::DescribeFabricTransactionResponse`
109
+ def DescribeFabricTransaction(request)
110
+ body = send_request('DescribeFabricTransaction', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeFabricTransactionResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
80
128
  # 下载用户证书
81
129
 
82
130
  # @param request: Request instance for DownloadUserCert.
@@ -341,6 +389,30 @@ module TencentCloud
341
389
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
390
  end
343
391
 
392
+ # 调用Fabric用户合约执行交易
393
+
394
+ # @param request: Request instance for InvokeFabricChaincode.
395
+ # @type request: :class:`Tencentcloud::tbaas::V20180416::InvokeFabricChaincodeRequest`
396
+ # @rtype: :class:`Tencentcloud::tbaas::V20180416::InvokeFabricChaincodeResponse`
397
+ def InvokeFabricChaincode(request)
398
+ body = send_request('InvokeFabricChaincode', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = InvokeFabricChaincodeResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
344
416
  # 查询交易
345
417
 
346
418
  # @param request: Request instance for Query.
@@ -509,6 +581,30 @@ module TencentCloud
509
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
582
  end
511
583
 
584
+ # 调用Fabric用户合约查询
585
+
586
+ # @param request: Request instance for QueryFabricChaincode.
587
+ # @type request: :class:`Tencentcloud::tbaas::V20180416::QueryFabricChaincodeRequest`
588
+ # @rtype: :class:`Tencentcloud::tbaas::V20180416::QueryFabricChaincodeResponse`
589
+ def QueryFabricChaincode(request)
590
+ body = send_request('QueryFabricChaincode', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = QueryFabricChaincodeResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
512
608
  # trustsql服务统一接口
513
609
 
514
610
  # @param request: Request instance for SrvInvoke.
@@ -261,6 +261,157 @@ module TencentCloud
261
261
  end
262
262
  end
263
263
 
264
+ # DescribeFabricBlock请求参数结构体
265
+ class DescribeFabricBlockRequest < TencentCloud::Common::AbstractModel
266
+ # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
267
+ # @type ClusterId: String
268
+ # @param ChannelId: 通道ID,可在通道列表或通道详情获取
269
+ # @type ChannelId: String
270
+ # @param BlockHeight: 区块高度,从0开始
271
+ # @type BlockHeight: Integer
272
+
273
+ attr_accessor :ClusterId, :ChannelId, :BlockHeight
274
+
275
+ def initialize(clusterid=nil, channelid=nil, blockheight=nil)
276
+ @ClusterId = clusterid
277
+ @ChannelId = channelid
278
+ @BlockHeight = blockheight
279
+ end
280
+
281
+ def deserialize(params)
282
+ @ClusterId = params['ClusterId']
283
+ @ChannelId = params['ChannelId']
284
+ @BlockHeight = params['BlockHeight']
285
+ end
286
+ end
287
+
288
+ # DescribeFabricBlock返回参数结构体
289
+ class DescribeFabricBlockResponse < TencentCloud::Common::AbstractModel
290
+ # @param BlockHeight: 区块高度
291
+ # @type BlockHeight: Integer
292
+ # @param BlockHash: 区块Hash
293
+ # @type BlockHash: String
294
+ # @param PreBlockHash: 前置区块Hash
295
+ # @type PreBlockHash: String
296
+ # @param TxCount: 区块中交易数量
297
+ # @type TxCount: Integer
298
+ # @param TransactionList: 区块中交易列表
299
+ # @type TransactionList: Array
300
+ # @param CreateTimestamp: 创建时间戳
301
+ # @type CreateTimestamp: String
302
+ # @param ProposerOrg: 提案组织
303
+ # @type ProposerOrg: String
304
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
305
+ # @type RequestId: String
306
+
307
+ attr_accessor :BlockHeight, :BlockHash, :PreBlockHash, :TxCount, :TransactionList, :CreateTimestamp, :ProposerOrg, :RequestId
308
+
309
+ def initialize(blockheight=nil, blockhash=nil, preblockhash=nil, txcount=nil, transactionlist=nil, createtimestamp=nil, proposerorg=nil, requestid=nil)
310
+ @BlockHeight = blockheight
311
+ @BlockHash = blockhash
312
+ @PreBlockHash = preblockhash
313
+ @TxCount = txcount
314
+ @TransactionList = transactionlist
315
+ @CreateTimestamp = createtimestamp
316
+ @ProposerOrg = proposerorg
317
+ @RequestId = requestid
318
+ end
319
+
320
+ def deserialize(params)
321
+ @BlockHeight = params['BlockHeight']
322
+ @BlockHash = params['BlockHash']
323
+ @PreBlockHash = params['PreBlockHash']
324
+ @TxCount = params['TxCount']
325
+ unless params['TransactionList'].nil?
326
+ @TransactionList = []
327
+ params['TransactionList'].each do |i|
328
+ transaction_tmp = Transaction.new
329
+ transaction_tmp.deserialize(i)
330
+ @TransactionList << transaction_tmp
331
+ end
332
+ end
333
+ @CreateTimestamp = params['CreateTimestamp']
334
+ @ProposerOrg = params['ProposerOrg']
335
+ @RequestId = params['RequestId']
336
+ end
337
+ end
338
+
339
+ # DescribeFabricTransaction请求参数结构体
340
+ class DescribeFabricTransactionRequest < TencentCloud::Common::AbstractModel
341
+ # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
342
+ # @type ClusterId: String
343
+ # @param ChannelId: 通道ID,可在通道列表或通道详情获取
344
+ # @type ChannelId: String
345
+ # @param TxId: 交易ID
346
+ # @type TxId: String
347
+
348
+ attr_accessor :ClusterId, :ChannelId, :TxId
349
+
350
+ def initialize(clusterid=nil, channelid=nil, txid=nil)
351
+ @ClusterId = clusterid
352
+ @ChannelId = channelid
353
+ @TxId = txid
354
+ end
355
+
356
+ def deserialize(params)
357
+ @ClusterId = params['ClusterId']
358
+ @ChannelId = params['ChannelId']
359
+ @TxId = params['TxId']
360
+ end
361
+ end
362
+
363
+ # DescribeFabricTransaction返回参数结构体
364
+ class DescribeFabricTransactionResponse < TencentCloud::Common::AbstractModel
365
+ # @param TxId: 交易ID
366
+ # @type TxId: String
367
+ # @param TxHash: 交易Hash
368
+ # @type TxHash: String
369
+ # @param TxStatus: 交易状态
370
+ # @type TxStatus: String
371
+ # @param JoinOrgList: 参与的组织列表
372
+ # @type JoinOrgList: Array
373
+ # @param Sender: 交易发送者
374
+ # @type Sender: String
375
+ # @param CreateTime: 创建时间
376
+ # @type CreateTime: String
377
+ # @param BlockHeight: 区块高度
378
+ # @type BlockHeight: Integer
379
+ # @param ChaincodeName: 交易所属合约
380
+ # @type ChaincodeName: String
381
+ # @param TransactionData: 交易数据,base64编码,解码后为json化的字符串
382
+ # @type TransactionData: String
383
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
384
+ # @type RequestId: String
385
+
386
+ attr_accessor :TxId, :TxHash, :TxStatus, :JoinOrgList, :Sender, :CreateTime, :BlockHeight, :ChaincodeName, :TransactionData, :RequestId
387
+
388
+ def initialize(txid=nil, txhash=nil, txstatus=nil, joinorglist=nil, sender=nil, createtime=nil, blockheight=nil, chaincodename=nil, transactiondata=nil, requestid=nil)
389
+ @TxId = txid
390
+ @TxHash = txhash
391
+ @TxStatus = txstatus
392
+ @JoinOrgList = joinorglist
393
+ @Sender = sender
394
+ @CreateTime = createtime
395
+ @BlockHeight = blockheight
396
+ @ChaincodeName = chaincodename
397
+ @TransactionData = transactiondata
398
+ @RequestId = requestid
399
+ end
400
+
401
+ def deserialize(params)
402
+ @TxId = params['TxId']
403
+ @TxHash = params['TxHash']
404
+ @TxStatus = params['TxStatus']
405
+ @JoinOrgList = params['JoinOrgList']
406
+ @Sender = params['Sender']
407
+ @CreateTime = params['CreateTime']
408
+ @BlockHeight = params['BlockHeight']
409
+ @ChaincodeName = params['ChaincodeName']
410
+ @TransactionData = params['TransactionData']
411
+ @RequestId = params['RequestId']
412
+ end
413
+ end
414
+
264
415
  # DownloadUserCert请求参数结构体
265
416
  class DownloadUserCertRequest < TencentCloud::Common::AbstractModel
266
417
  # @param Module: 模块名,固定字段:cert_mng
@@ -1076,6 +1227,70 @@ module TencentCloud
1076
1227
  end
1077
1228
  end
1078
1229
 
1230
+ # InvokeFabricChaincode请求参数结构体
1231
+ class InvokeFabricChaincodeRequest < TencentCloud::Common::AbstractModel
1232
+ # @param ClusterId: 网络ID,可在区块链网络详情获取
1233
+ # @type ClusterId: String
1234
+ # @param ChannelId: 通道ID,可在通道列表或通道详情获取
1235
+ # @type ChannelId: String
1236
+ # @param ChaincodeName: 合约名称,可在合约列表或合约详情获取
1237
+ # @type ChaincodeName: String
1238
+ # @param FuncName: 合约方法
1239
+ # @type FuncName: String
1240
+ # @param FuncParam: 合约方法入参
1241
+ # @type FuncParam: Array
1242
+ # @param WithAsyncResult: 是否异步执行,如果异步执行,可使用返回值中的交易TxID查询执行结果
1243
+ # @type WithAsyncResult: Boolean
1244
+
1245
+ attr_accessor :ClusterId, :ChannelId, :ChaincodeName, :FuncName, :FuncParam, :WithAsyncResult
1246
+
1247
+ def initialize(clusterid=nil, channelid=nil, chaincodename=nil, funcname=nil, funcparam=nil, withasyncresult=nil)
1248
+ @ClusterId = clusterid
1249
+ @ChannelId = channelid
1250
+ @ChaincodeName = chaincodename
1251
+ @FuncName = funcname
1252
+ @FuncParam = funcparam
1253
+ @WithAsyncResult = withasyncresult
1254
+ end
1255
+
1256
+ def deserialize(params)
1257
+ @ClusterId = params['ClusterId']
1258
+ @ChannelId = params['ChannelId']
1259
+ @ChaincodeName = params['ChaincodeName']
1260
+ @FuncName = params['FuncName']
1261
+ @FuncParam = params['FuncParam']
1262
+ @WithAsyncResult = params['WithAsyncResult']
1263
+ end
1264
+ end
1265
+
1266
+ # InvokeFabricChaincode返回参数结构体
1267
+ class InvokeFabricChaincodeResponse < TencentCloud::Common::AbstractModel
1268
+ # @param TxId: 交易ID
1269
+ # @type TxId: String
1270
+ # @param TxStatus: 交易状态
1271
+ # @type TxStatus: String
1272
+ # @param TxResult: 交易结果
1273
+ # @type TxResult: String
1274
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1275
+ # @type RequestId: String
1276
+
1277
+ attr_accessor :TxId, :TxStatus, :TxResult, :RequestId
1278
+
1279
+ def initialize(txid=nil, txstatus=nil, txresult=nil, requestid=nil)
1280
+ @TxId = txid
1281
+ @TxStatus = txstatus
1282
+ @TxResult = txresult
1283
+ @RequestId = requestid
1284
+ end
1285
+
1286
+ def deserialize(params)
1287
+ @TxId = params['TxId']
1288
+ @TxStatus = params['TxStatus']
1289
+ @TxResult = params['TxResult']
1290
+ @RequestId = params['RequestId']
1291
+ end
1292
+ end
1293
+
1079
1294
  # Invoke请求参数结构体
1080
1295
  class InvokeRequest < TencentCloud::Common::AbstractModel
1081
1296
  # @param Module: 模块名,固定字段:transaction
@@ -1517,6 +1732,66 @@ module TencentCloud
1517
1732
  end
1518
1733
  end
1519
1734
 
1735
+ # QueryFabricChaincode请求参数结构体
1736
+ class QueryFabricChaincodeRequest < TencentCloud::Common::AbstractModel
1737
+ # @param ClusterId: 网络ID,可在区块链网络详情获取
1738
+ # @type ClusterId: String
1739
+ # @param ChannelId: 通道ID,可在通道列表或通道详情获取
1740
+ # @type ChannelId: String
1741
+ # @param ChaincodeName: 合约名称,可在合约列表或合约详情获取
1742
+ # @type ChaincodeName: String
1743
+ # @param FuncName: 合约方法
1744
+ # @type FuncName: String
1745
+ # @param FuncParam: 合约方法入参
1746
+ # @type FuncParam: Array
1747
+
1748
+ attr_accessor :ClusterId, :ChannelId, :ChaincodeName, :FuncName, :FuncParam
1749
+
1750
+ def initialize(clusterid=nil, channelid=nil, chaincodename=nil, funcname=nil, funcparam=nil)
1751
+ @ClusterId = clusterid
1752
+ @ChannelId = channelid
1753
+ @ChaincodeName = chaincodename
1754
+ @FuncName = funcname
1755
+ @FuncParam = funcparam
1756
+ end
1757
+
1758
+ def deserialize(params)
1759
+ @ClusterId = params['ClusterId']
1760
+ @ChannelId = params['ChannelId']
1761
+ @ChaincodeName = params['ChaincodeName']
1762
+ @FuncName = params['FuncName']
1763
+ @FuncParam = params['FuncParam']
1764
+ end
1765
+ end
1766
+
1767
+ # QueryFabricChaincode返回参数结构体
1768
+ class QueryFabricChaincodeResponse < TencentCloud::Common::AbstractModel
1769
+ # @param TxId: 交易ID
1770
+ # @type TxId: String
1771
+ # @param TxStatus: 交易状态
1772
+ # @type TxStatus: String
1773
+ # @param TxResult: 交易结果
1774
+ # @type TxResult: String
1775
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1776
+ # @type RequestId: String
1777
+
1778
+ attr_accessor :TxId, :TxStatus, :TxResult, :RequestId
1779
+
1780
+ def initialize(txid=nil, txstatus=nil, txresult=nil, requestid=nil)
1781
+ @TxId = txid
1782
+ @TxStatus = txstatus
1783
+ @TxResult = txresult
1784
+ @RequestId = requestid
1785
+ end
1786
+
1787
+ def deserialize(params)
1788
+ @TxId = params['TxId']
1789
+ @TxStatus = params['TxStatus']
1790
+ @TxResult = params['TxResult']
1791
+ @RequestId = params['RequestId']
1792
+ end
1793
+ end
1794
+
1520
1795
  # Query请求参数结构体
1521
1796
  class QueryRequest < TencentCloud::Common::AbstractModel
1522
1797
  # @param Module: 模块名,固定字段:transaction
@@ -1664,6 +1939,48 @@ module TencentCloud
1664
1939
  end
1665
1940
  end
1666
1941
 
1942
+ # 交易显示概述信息
1943
+ class Transaction < TencentCloud::Common::AbstractModel
1944
+ # @param TxId: 交易ID
1945
+ # 注意:此字段可能返回 null,表示取不到有效值。
1946
+ # @type TxId: String
1947
+ # @param ChaincodeName: 合约名称
1948
+ # 注意:此字段可能返回 null,表示取不到有效值。
1949
+ # @type ChaincodeName: String
1950
+ # @param Sender: 交易发送者
1951
+ # 注意:此字段可能返回 null,表示取不到有效值。
1952
+ # @type Sender: String
1953
+ # @param CreateTime: 交易创建时间
1954
+ # 注意:此字段可能返回 null,表示取不到有效值。
1955
+ # @type CreateTime: String
1956
+ # @param BlockHeight: 交易所在区块高度
1957
+ # 注意:此字段可能返回 null,表示取不到有效值。
1958
+ # @type BlockHeight: Integer
1959
+ # @param TxIndex: 交易在区块中的序号
1960
+ # 注意:此字段可能返回 null,表示取不到有效值。
1961
+ # @type TxIndex: Integer
1962
+
1963
+ attr_accessor :TxId, :ChaincodeName, :Sender, :CreateTime, :BlockHeight, :TxIndex
1964
+
1965
+ def initialize(txid=nil, chaincodename=nil, sender=nil, createtime=nil, blockheight=nil, txindex=nil)
1966
+ @TxId = txid
1967
+ @ChaincodeName = chaincodename
1968
+ @Sender = sender
1969
+ @CreateTime = createtime
1970
+ @BlockHeight = blockheight
1971
+ @TxIndex = txindex
1972
+ end
1973
+
1974
+ def deserialize(params)
1975
+ @TxId = params['TxId']
1976
+ @ChaincodeName = params['ChaincodeName']
1977
+ @Sender = params['Sender']
1978
+ @CreateTime = params['CreateTime']
1979
+ @BlockHeight = params['BlockHeight']
1980
+ @TxIndex = params['TxIndex']
1981
+ end
1982
+ end
1983
+
1667
1984
  # 交易列表项信息
1668
1985
  class TransactionItem < TencentCloud::Common::AbstractModel
1669
1986
  # @param TransactionId: 交易ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tbaas
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.707
4
+ version: 3.0.708
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-19 00:00:00.000000000 Z
11
+ date: 2023-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common