tencentcloud-sdk-tbaas 1.0.336 → 1.0.337
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180416/client.rb +96 -0
- data/lib/v20180416/models.rb +229 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca044ad2f42bfdb300a5167a217ab8e74295259e
|
4
|
+
data.tar.gz: 73c5d7c3338dda254a64bfafe9d3b4d40156221f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8795793a15a32494c879350c7b31b5b2af7a72370843ff83950f329e9da68fae8eb3554a4564792da16c61ac469fb96a7fd6945ff5413aab29850bc57c2673f2
|
7
|
+
data.tar.gz: 61c7298a39c87fb0e484958c414c007116bb56850f3728681cf50fa2a92fb782a2d8edd2968817e15ba5d7da90ef2d82d415d7027dc61f5ee97b4fec0314b4c9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.337
|
data/lib/v20180416/client.rb
CHANGED
@@ -735,6 +735,30 @@ module TencentCloud
|
|
735
735
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
736
736
|
end
|
737
737
|
|
738
|
+
# 调用长安链体验网络合约执行交易
|
739
|
+
|
740
|
+
# @param request: Request instance for InvokeChainMakerDemoContract.
|
741
|
+
# @type request: :class:`Tencentcloud::tbaas::V20180416::InvokeChainMakerDemoContractRequest`
|
742
|
+
# @rtype: :class:`Tencentcloud::tbaas::V20180416::InvokeChainMakerDemoContractResponse`
|
743
|
+
def InvokeChainMakerDemoContract(request)
|
744
|
+
body = send_request('InvokeChainMakerDemoContract', request.serialize)
|
745
|
+
response = JSON.parse(body)
|
746
|
+
if response['Response'].key?('Error') == false
|
747
|
+
model = InvokeChainMakerDemoContractResponse.new
|
748
|
+
model.deserialize(response['Response'])
|
749
|
+
model
|
750
|
+
else
|
751
|
+
code = response['Response']['Error']['Code']
|
752
|
+
message = response['Response']['Error']['Message']
|
753
|
+
reqid = response['Response']['RequestId']
|
754
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
755
|
+
end
|
756
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
757
|
+
raise e
|
758
|
+
rescue StandardError => e
|
759
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
760
|
+
end
|
761
|
+
|
738
762
|
# 查询交易
|
739
763
|
|
740
764
|
# @param request: Request instance for Query.
|
@@ -807,6 +831,78 @@ module TencentCloud
|
|
807
831
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
808
832
|
end
|
809
833
|
|
834
|
+
# 查询长安链体验网络指定高度区块的交易
|
835
|
+
|
836
|
+
# @param request: Request instance for QueryChainMakerDemoBlockTransaction.
|
837
|
+
# @type request: :class:`Tencentcloud::tbaas::V20180416::QueryChainMakerDemoBlockTransactionRequest`
|
838
|
+
# @rtype: :class:`Tencentcloud::tbaas::V20180416::QueryChainMakerDemoBlockTransactionResponse`
|
839
|
+
def QueryChainMakerDemoBlockTransaction(request)
|
840
|
+
body = send_request('QueryChainMakerDemoBlockTransaction', request.serialize)
|
841
|
+
response = JSON.parse(body)
|
842
|
+
if response['Response'].key?('Error') == false
|
843
|
+
model = QueryChainMakerDemoBlockTransactionResponse.new
|
844
|
+
model.deserialize(response['Response'])
|
845
|
+
model
|
846
|
+
else
|
847
|
+
code = response['Response']['Error']['Code']
|
848
|
+
message = response['Response']['Error']['Message']
|
849
|
+
reqid = response['Response']['RequestId']
|
850
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
851
|
+
end
|
852
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
853
|
+
raise e
|
854
|
+
rescue StandardError => e
|
855
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
856
|
+
end
|
857
|
+
|
858
|
+
# 调用长安链体验网络合约查询
|
859
|
+
|
860
|
+
# @param request: Request instance for QueryChainMakerDemoContract.
|
861
|
+
# @type request: :class:`Tencentcloud::tbaas::V20180416::QueryChainMakerDemoContractRequest`
|
862
|
+
# @rtype: :class:`Tencentcloud::tbaas::V20180416::QueryChainMakerDemoContractResponse`
|
863
|
+
def QueryChainMakerDemoContract(request)
|
864
|
+
body = send_request('QueryChainMakerDemoContract', request.serialize)
|
865
|
+
response = JSON.parse(body)
|
866
|
+
if response['Response'].key?('Error') == false
|
867
|
+
model = QueryChainMakerDemoContractResponse.new
|
868
|
+
model.deserialize(response['Response'])
|
869
|
+
model
|
870
|
+
else
|
871
|
+
code = response['Response']['Error']['Code']
|
872
|
+
message = response['Response']['Error']['Message']
|
873
|
+
reqid = response['Response']['RequestId']
|
874
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
875
|
+
end
|
876
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
877
|
+
raise e
|
878
|
+
rescue StandardError => e
|
879
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
880
|
+
end
|
881
|
+
|
882
|
+
# 通过交易ID查询长安链体验网络交易
|
883
|
+
|
884
|
+
# @param request: Request instance for QueryChainMakerDemoTransaction.
|
885
|
+
# @type request: :class:`Tencentcloud::tbaas::V20180416::QueryChainMakerDemoTransactionRequest`
|
886
|
+
# @rtype: :class:`Tencentcloud::tbaas::V20180416::QueryChainMakerDemoTransactionResponse`
|
887
|
+
def QueryChainMakerDemoTransaction(request)
|
888
|
+
body = send_request('QueryChainMakerDemoTransaction', request.serialize)
|
889
|
+
response = JSON.parse(body)
|
890
|
+
if response['Response'].key?('Error') == false
|
891
|
+
model = QueryChainMakerDemoTransactionResponse.new
|
892
|
+
model.deserialize(response['Response'])
|
893
|
+
model
|
894
|
+
else
|
895
|
+
code = response['Response']['Error']['Code']
|
896
|
+
message = response['Response']['Error']['Message']
|
897
|
+
reqid = response['Response']['RequestId']
|
898
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
899
|
+
end
|
900
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
901
|
+
raise e
|
902
|
+
rescue StandardError => e
|
903
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
904
|
+
end
|
905
|
+
|
810
906
|
# 通过交易ID查询长安链交易
|
811
907
|
|
812
908
|
# @param request: Request instance for QueryChainMakerTransaction.
|
data/lib/v20180416/models.rb
CHANGED
@@ -2242,6 +2242,66 @@ module TencentCloud
|
|
2242
2242
|
end
|
2243
2243
|
end
|
2244
2244
|
|
2245
|
+
# InvokeChainMakerDemoContract请求参数结构体
|
2246
|
+
class InvokeChainMakerDemoContractRequest < TencentCloud::Common::AbstractModel
|
2247
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2248
|
+
# @type ClusterId: String
|
2249
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2250
|
+
# @type ChainId: String
|
2251
|
+
# @param ContractName: 合约名称,可在合约管理中获取
|
2252
|
+
# @type ContractName: String
|
2253
|
+
# @param FuncName: 合约方法名
|
2254
|
+
# @type FuncName: String
|
2255
|
+
# @param FuncParam: 合约方法入参,json格式字符串,key/value都是string类型的map
|
2256
|
+
# @type FuncParam: String
|
2257
|
+
# @param AsyncFlag: 是否异步执行,1为是,否则为0;如果异步执行,可使用返回值中的交易TxID查询执行结果
|
2258
|
+
# @type AsyncFlag: Integer
|
2259
|
+
|
2260
|
+
attr_accessor :ClusterId, :ChainId, :ContractName, :FuncName, :FuncParam, :AsyncFlag
|
2261
|
+
|
2262
|
+
def initialize(clusterid=nil, chainid=nil, contractname=nil, funcname=nil, funcparam=nil, asyncflag=nil)
|
2263
|
+
@ClusterId = clusterid
|
2264
|
+
@ChainId = chainid
|
2265
|
+
@ContractName = contractname
|
2266
|
+
@FuncName = funcname
|
2267
|
+
@FuncParam = funcparam
|
2268
|
+
@AsyncFlag = asyncflag
|
2269
|
+
end
|
2270
|
+
|
2271
|
+
def deserialize(params)
|
2272
|
+
@ClusterId = params['ClusterId']
|
2273
|
+
@ChainId = params['ChainId']
|
2274
|
+
@ContractName = params['ContractName']
|
2275
|
+
@FuncName = params['FuncName']
|
2276
|
+
@FuncParam = params['FuncParam']
|
2277
|
+
@AsyncFlag = params['AsyncFlag']
|
2278
|
+
end
|
2279
|
+
end
|
2280
|
+
|
2281
|
+
# InvokeChainMakerDemoContract返回参数结构体
|
2282
|
+
class InvokeChainMakerDemoContractResponse < TencentCloud::Common::AbstractModel
|
2283
|
+
# @param Result: 交易结果
|
2284
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2285
|
+
# @type Result: :class:`Tencentcloud::Tbaas.v20180416.models.ChainMakerContractResult`
|
2286
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2287
|
+
# @type RequestId: String
|
2288
|
+
|
2289
|
+
attr_accessor :Result, :RequestId
|
2290
|
+
|
2291
|
+
def initialize(result=nil, requestid=nil)
|
2292
|
+
@Result = result
|
2293
|
+
@RequestId = requestid
|
2294
|
+
end
|
2295
|
+
|
2296
|
+
def deserialize(params)
|
2297
|
+
unless params['Result'].nil?
|
2298
|
+
@Result = ChainMakerContractResult.new
|
2299
|
+
@Result.deserialize(params['Result'])
|
2300
|
+
end
|
2301
|
+
@RequestId = params['RequestId']
|
2302
|
+
end
|
2303
|
+
end
|
2304
|
+
|
2245
2305
|
# Invoke请求参数结构体
|
2246
2306
|
class InvokeRequest < TencentCloud::Common::AbstractModel
|
2247
2307
|
# @param Module: 模块名,固定字段:transaction
|
@@ -2502,6 +2562,175 @@ module TencentCloud
|
|
2502
2562
|
end
|
2503
2563
|
end
|
2504
2564
|
|
2565
|
+
# QueryChainMakerDemoBlockTransaction请求参数结构体
|
2566
|
+
class QueryChainMakerDemoBlockTransactionRequest < TencentCloud::Common::AbstractModel
|
2567
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2568
|
+
# @type ClusterId: String
|
2569
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2570
|
+
# @type ChainId: String
|
2571
|
+
# @param BlockHeight: 区块高度
|
2572
|
+
# @type BlockHeight: Integer
|
2573
|
+
|
2574
|
+
attr_accessor :ClusterId, :ChainId, :BlockHeight
|
2575
|
+
|
2576
|
+
def initialize(clusterid=nil, chainid=nil, blockheight=nil)
|
2577
|
+
@ClusterId = clusterid
|
2578
|
+
@ChainId = chainid
|
2579
|
+
@BlockHeight = blockheight
|
2580
|
+
end
|
2581
|
+
|
2582
|
+
def deserialize(params)
|
2583
|
+
@ClusterId = params['ClusterId']
|
2584
|
+
@ChainId = params['ChainId']
|
2585
|
+
@BlockHeight = params['BlockHeight']
|
2586
|
+
end
|
2587
|
+
end
|
2588
|
+
|
2589
|
+
# QueryChainMakerDemoBlockTransaction返回参数结构体
|
2590
|
+
class QueryChainMakerDemoBlockTransactionResponse < TencentCloud::Common::AbstractModel
|
2591
|
+
# @param Result: 区块交易
|
2592
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2593
|
+
# @type Result: Array
|
2594
|
+
# @param BlockHeight: 区块高度
|
2595
|
+
# @type BlockHeight: Integer
|
2596
|
+
# @param TxCount: 交易数量
|
2597
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2598
|
+
# @type TxCount: Integer
|
2599
|
+
# @param BlockTimestamp: 区块时间戳,单位是秒
|
2600
|
+
# @type BlockTimestamp: Integer
|
2601
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2602
|
+
# @type RequestId: String
|
2603
|
+
|
2604
|
+
attr_accessor :Result, :BlockHeight, :TxCount, :BlockTimestamp, :RequestId
|
2605
|
+
|
2606
|
+
def initialize(result=nil, blockheight=nil, txcount=nil, blocktimestamp=nil, requestid=nil)
|
2607
|
+
@Result = result
|
2608
|
+
@BlockHeight = blockheight
|
2609
|
+
@TxCount = txcount
|
2610
|
+
@BlockTimestamp = blocktimestamp
|
2611
|
+
@RequestId = requestid
|
2612
|
+
end
|
2613
|
+
|
2614
|
+
def deserialize(params)
|
2615
|
+
unless params['Result'].nil?
|
2616
|
+
@Result = []
|
2617
|
+
params['Result'].each do |i|
|
2618
|
+
chainmakertransactionresult_tmp = ChainMakerTransactionResult.new
|
2619
|
+
chainmakertransactionresult_tmp.deserialize(i)
|
2620
|
+
@Result << chainmakertransactionresult_tmp
|
2621
|
+
end
|
2622
|
+
end
|
2623
|
+
@BlockHeight = params['BlockHeight']
|
2624
|
+
@TxCount = params['TxCount']
|
2625
|
+
@BlockTimestamp = params['BlockTimestamp']
|
2626
|
+
@RequestId = params['RequestId']
|
2627
|
+
end
|
2628
|
+
end
|
2629
|
+
|
2630
|
+
# QueryChainMakerDemoContract请求参数结构体
|
2631
|
+
class QueryChainMakerDemoContractRequest < TencentCloud::Common::AbstractModel
|
2632
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2633
|
+
# @type ClusterId: String
|
2634
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2635
|
+
# @type ChainId: String
|
2636
|
+
# @param ContractName: 合约名称,可在合约管理中获取
|
2637
|
+
# @type ContractName: String
|
2638
|
+
# @param FuncName: 合约方法名
|
2639
|
+
# @type FuncName: String
|
2640
|
+
# @param FuncParam: 合约方法入参,json格式字符串,key/value都是string类型的map
|
2641
|
+
# @type FuncParam: String
|
2642
|
+
|
2643
|
+
attr_accessor :ClusterId, :ChainId, :ContractName, :FuncName, :FuncParam
|
2644
|
+
|
2645
|
+
def initialize(clusterid=nil, chainid=nil, contractname=nil, funcname=nil, funcparam=nil)
|
2646
|
+
@ClusterId = clusterid
|
2647
|
+
@ChainId = chainid
|
2648
|
+
@ContractName = contractname
|
2649
|
+
@FuncName = funcname
|
2650
|
+
@FuncParam = funcparam
|
2651
|
+
end
|
2652
|
+
|
2653
|
+
def deserialize(params)
|
2654
|
+
@ClusterId = params['ClusterId']
|
2655
|
+
@ChainId = params['ChainId']
|
2656
|
+
@ContractName = params['ContractName']
|
2657
|
+
@FuncName = params['FuncName']
|
2658
|
+
@FuncParam = params['FuncParam']
|
2659
|
+
end
|
2660
|
+
end
|
2661
|
+
|
2662
|
+
# QueryChainMakerDemoContract返回参数结构体
|
2663
|
+
class QueryChainMakerDemoContractResponse < TencentCloud::Common::AbstractModel
|
2664
|
+
# @param Result: 交易结果
|
2665
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2666
|
+
# @type Result: :class:`Tencentcloud::Tbaas.v20180416.models.ChainMakerContractResult`
|
2667
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2668
|
+
# @type RequestId: String
|
2669
|
+
|
2670
|
+
attr_accessor :Result, :RequestId
|
2671
|
+
|
2672
|
+
def initialize(result=nil, requestid=nil)
|
2673
|
+
@Result = result
|
2674
|
+
@RequestId = requestid
|
2675
|
+
end
|
2676
|
+
|
2677
|
+
def deserialize(params)
|
2678
|
+
unless params['Result'].nil?
|
2679
|
+
@Result = ChainMakerContractResult.new
|
2680
|
+
@Result.deserialize(params['Result'])
|
2681
|
+
end
|
2682
|
+
@RequestId = params['RequestId']
|
2683
|
+
end
|
2684
|
+
end
|
2685
|
+
|
2686
|
+
# QueryChainMakerDemoTransaction请求参数结构体
|
2687
|
+
class QueryChainMakerDemoTransactionRequest < TencentCloud::Common::AbstractModel
|
2688
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2689
|
+
# @type ClusterId: String
|
2690
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2691
|
+
# @type ChainId: String
|
2692
|
+
# @param TxID: 交易ID,通过调用合约的返回值获取
|
2693
|
+
# @type TxID: String
|
2694
|
+
|
2695
|
+
attr_accessor :ClusterId, :ChainId, :TxID
|
2696
|
+
|
2697
|
+
def initialize(clusterid=nil, chainid=nil, txid=nil)
|
2698
|
+
@ClusterId = clusterid
|
2699
|
+
@ChainId = chainid
|
2700
|
+
@TxID = txid
|
2701
|
+
end
|
2702
|
+
|
2703
|
+
def deserialize(params)
|
2704
|
+
@ClusterId = params['ClusterId']
|
2705
|
+
@ChainId = params['ChainId']
|
2706
|
+
@TxID = params['TxID']
|
2707
|
+
end
|
2708
|
+
end
|
2709
|
+
|
2710
|
+
# QueryChainMakerDemoTransaction返回参数结构体
|
2711
|
+
class QueryChainMakerDemoTransactionResponse < TencentCloud::Common::AbstractModel
|
2712
|
+
# @param Result: 交易结果
|
2713
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2714
|
+
# @type Result: :class:`Tencentcloud::Tbaas.v20180416.models.ChainMakerTransactionResult`
|
2715
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2716
|
+
# @type RequestId: String
|
2717
|
+
|
2718
|
+
attr_accessor :Result, :RequestId
|
2719
|
+
|
2720
|
+
def initialize(result=nil, requestid=nil)
|
2721
|
+
@Result = result
|
2722
|
+
@RequestId = requestid
|
2723
|
+
end
|
2724
|
+
|
2725
|
+
def deserialize(params)
|
2726
|
+
unless params['Result'].nil?
|
2727
|
+
@Result = ChainMakerTransactionResult.new
|
2728
|
+
@Result.deserialize(params['Result'])
|
2729
|
+
end
|
2730
|
+
@RequestId = params['RequestId']
|
2731
|
+
end
|
2732
|
+
end
|
2733
|
+
|
2505
2734
|
# QueryChainMakerTransaction请求参数结构体
|
2506
2735
|
class QueryChainMakerTransactionRequest < TencentCloud::Common::AbstractModel
|
2507
2736
|
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|