tencentcloud-sdk-tbaas 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-tbaas.rb +11 -0
- data/lib/v20180416/client.rb +914 -0
- data/lib/v20180416/models.rb +2847 -0
- metadata +66 -0
@@ -0,0 +1,2847 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Tbaas
|
19
|
+
module V20180416
|
20
|
+
# ApplyUserCert请求参数结构体
|
21
|
+
class ApplyUserCertRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Module: 模块名,固定字段:cert_mng
|
23
|
+
# @type Module: String
|
24
|
+
# @param Operation: 操作名,固定字段:cert_apply_for_user
|
25
|
+
# @type Operation: String
|
26
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
27
|
+
# @type ClusterId: String
|
28
|
+
# @param GroupName: 申请证书的组织名称,可以在组织管理列表中获取当前组织的名称
|
29
|
+
# @type GroupName: String
|
30
|
+
# @param UserIdentity: 用户证书标识,用于标识用户证书,要求由纯小写字母组成,长度小于10
|
31
|
+
# @type UserIdentity: String
|
32
|
+
# @param Applicant: 证书申请实体,使用腾讯云账号实名认证的名称
|
33
|
+
# @type Applicant: String
|
34
|
+
# @param IdentityNum: 证件号码。如果腾讯云账号对应的实名认证类型为企业认证,填入“0”;如果腾讯云账号对应的实名认证类型为个人认证,填入个人身份证号码
|
35
|
+
# @type IdentityNum: String
|
36
|
+
# @param CsrData: csr p10证书文件。需要用户根据文档生成证书的CSR文件
|
37
|
+
# @type CsrData: String
|
38
|
+
# @param Notes: 证书备注信息
|
39
|
+
# @type Notes: String
|
40
|
+
|
41
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :UserIdentity, :Applicant, :IdentityNum, :CsrData, :Notes
|
42
|
+
|
43
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, useridentity=nil, applicant=nil, identitynum=nil, csrdata=nil, notes=nil)
|
44
|
+
@Module = _module
|
45
|
+
@Operation = operation
|
46
|
+
@ClusterId = clusterid
|
47
|
+
@GroupName = groupname
|
48
|
+
@UserIdentity = useridentity
|
49
|
+
@Applicant = applicant
|
50
|
+
@IdentityNum = identitynum
|
51
|
+
@CsrData = csrdata
|
52
|
+
@Notes = notes
|
53
|
+
end
|
54
|
+
|
55
|
+
def deserialize(params)
|
56
|
+
@Module = params['Module']
|
57
|
+
@Operation = params['Operation']
|
58
|
+
@ClusterId = params['ClusterId']
|
59
|
+
@GroupName = params['GroupName']
|
60
|
+
@UserIdentity = params['UserIdentity']
|
61
|
+
@Applicant = params['Applicant']
|
62
|
+
@IdentityNum = params['IdentityNum']
|
63
|
+
@CsrData = params['CsrData']
|
64
|
+
@Notes = params['Notes']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# ApplyUserCert返回参数结构体
|
69
|
+
class ApplyUserCertResponse < TencentCloud::Common::AbstractModel
|
70
|
+
# @param CertId: 证书ID
|
71
|
+
# @type CertId: Integer
|
72
|
+
# @param CertDn: 证书DN
|
73
|
+
# @type CertDn: String
|
74
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
75
|
+
# @type RequestId: String
|
76
|
+
|
77
|
+
attr_accessor :CertId, :CertDn, :RequestId
|
78
|
+
|
79
|
+
def initialize(certid=nil, certdn=nil, requestid=nil)
|
80
|
+
@CertId = certid
|
81
|
+
@CertDn = certdn
|
82
|
+
@RequestId = requestid
|
83
|
+
end
|
84
|
+
|
85
|
+
def deserialize(params)
|
86
|
+
@CertId = params['CertId']
|
87
|
+
@CertDn = params['CertDn']
|
88
|
+
@RequestId = params['RequestId']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Bcos区块对象
|
93
|
+
class BcosBlockObj < TencentCloud::Common::AbstractModel
|
94
|
+
# @param BlockHash: 区块哈希
|
95
|
+
# @type BlockHash: String
|
96
|
+
# @param BlockNumber: 区块高度
|
97
|
+
# @type BlockNumber: Integer
|
98
|
+
# @param BlockTimestamp: 区块时间戳
|
99
|
+
# @type BlockTimestamp: String
|
100
|
+
# @param Sealer: 打包节点ID
|
101
|
+
# @type Sealer: String
|
102
|
+
# @param SealerIndex: 打包节点索引
|
103
|
+
# @type SealerIndex: Integer
|
104
|
+
# @param CreateTime: 记录保存时间
|
105
|
+
# @type CreateTime: String
|
106
|
+
# @param TransCount: 交易数量
|
107
|
+
# @type TransCount: Integer
|
108
|
+
# @param ModifyTime: 记录修改时间
|
109
|
+
# @type ModifyTime: String
|
110
|
+
|
111
|
+
attr_accessor :BlockHash, :BlockNumber, :BlockTimestamp, :Sealer, :SealerIndex, :CreateTime, :TransCount, :ModifyTime
|
112
|
+
|
113
|
+
def initialize(blockhash=nil, blocknumber=nil, blocktimestamp=nil, sealer=nil, sealerindex=nil, createtime=nil, transcount=nil, modifytime=nil)
|
114
|
+
@BlockHash = blockhash
|
115
|
+
@BlockNumber = blocknumber
|
116
|
+
@BlockTimestamp = blocktimestamp
|
117
|
+
@Sealer = sealer
|
118
|
+
@SealerIndex = sealerindex
|
119
|
+
@CreateTime = createtime
|
120
|
+
@TransCount = transcount
|
121
|
+
@ModifyTime = modifytime
|
122
|
+
end
|
123
|
+
|
124
|
+
def deserialize(params)
|
125
|
+
@BlockHash = params['BlockHash']
|
126
|
+
@BlockNumber = params['BlockNumber']
|
127
|
+
@BlockTimestamp = params['BlockTimestamp']
|
128
|
+
@Sealer = params['Sealer']
|
129
|
+
@SealerIndex = params['SealerIndex']
|
130
|
+
@CreateTime = params['CreateTime']
|
131
|
+
@TransCount = params['TransCount']
|
132
|
+
@ModifyTime = params['ModifyTime']
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# Bcos交易信息对象
|
137
|
+
class BcosTransInfo < TencentCloud::Common::AbstractModel
|
138
|
+
# @param BlockNumber: 所属区块高度
|
139
|
+
# @type BlockNumber: Integer
|
140
|
+
# @param BlockTimestamp: 区块时间戳
|
141
|
+
# @type BlockTimestamp: String
|
142
|
+
# @param TransHash: 交易哈希
|
143
|
+
# @type TransHash: String
|
144
|
+
# @param TransFrom: 交易发起者
|
145
|
+
# @type TransFrom: String
|
146
|
+
# @param TransTo: 交易接收者
|
147
|
+
# @type TransTo: String
|
148
|
+
# @param CreateTime: 落库时间
|
149
|
+
# @type CreateTime: String
|
150
|
+
# @param ModifyTime: 修改时间
|
151
|
+
# @type ModifyTime: String
|
152
|
+
|
153
|
+
attr_accessor :BlockNumber, :BlockTimestamp, :TransHash, :TransFrom, :TransTo, :CreateTime, :ModifyTime
|
154
|
+
|
155
|
+
def initialize(blocknumber=nil, blocktimestamp=nil, transhash=nil, transfrom=nil, transto=nil, createtime=nil, modifytime=nil)
|
156
|
+
@BlockNumber = blocknumber
|
157
|
+
@BlockTimestamp = blocktimestamp
|
158
|
+
@TransHash = transhash
|
159
|
+
@TransFrom = transfrom
|
160
|
+
@TransTo = transto
|
161
|
+
@CreateTime = createtime
|
162
|
+
@ModifyTime = modifytime
|
163
|
+
end
|
164
|
+
|
165
|
+
def deserialize(params)
|
166
|
+
@BlockNumber = params['BlockNumber']
|
167
|
+
@BlockTimestamp = params['BlockTimestamp']
|
168
|
+
@TransHash = params['TransHash']
|
169
|
+
@TransFrom = params['TransFrom']
|
170
|
+
@TransTo = params['TransTo']
|
171
|
+
@CreateTime = params['CreateTime']
|
172
|
+
@ModifyTime = params['ModifyTime']
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# 区块对象
|
177
|
+
class Block < TencentCloud::Common::AbstractModel
|
178
|
+
# @param BlockNum: 区块编号
|
179
|
+
# @type BlockNum: Integer
|
180
|
+
# @param DataHash: 区块数据Hash数值
|
181
|
+
# @type DataHash: String
|
182
|
+
# @param BlockId: 区块ID,与区块编号一致
|
183
|
+
# @type BlockId: Integer
|
184
|
+
# @param PreHash: 前一个区块Hash
|
185
|
+
# @type PreHash: String
|
186
|
+
# @param TxCount: 区块内的交易数量
|
187
|
+
# @type TxCount: Integer
|
188
|
+
|
189
|
+
attr_accessor :BlockNum, :DataHash, :BlockId, :PreHash, :TxCount
|
190
|
+
|
191
|
+
def initialize(blocknum=nil, datahash=nil, blockid=nil, prehash=nil, txcount=nil)
|
192
|
+
@BlockNum = blocknum
|
193
|
+
@DataHash = datahash
|
194
|
+
@BlockId = blockid
|
195
|
+
@PreHash = prehash
|
196
|
+
@TxCount = txcount
|
197
|
+
end
|
198
|
+
|
199
|
+
def deserialize(params)
|
200
|
+
@BlockNum = params['BlockNum']
|
201
|
+
@DataHash = params['DataHash']
|
202
|
+
@BlockId = params['BlockId']
|
203
|
+
@PreHash = params['PreHash']
|
204
|
+
@TxCount = params['TxCount']
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# BlockByNumberHandler请求参数结构体
|
209
|
+
class BlockByNumberHandlerRequest < TencentCloud::Common::AbstractModel
|
210
|
+
# @param Module: 模块名,固定字段:block
|
211
|
+
# @type Module: String
|
212
|
+
# @param Operation: 操作名,固定字段:block_by_number
|
213
|
+
# @type Operation: String
|
214
|
+
# @param GroupPk: 当前群组编号
|
215
|
+
# @type GroupPk: String
|
216
|
+
# @param BlockNumber: 区块高度
|
217
|
+
# @type BlockNumber: Integer
|
218
|
+
|
219
|
+
attr_accessor :Module, :Operation, :GroupPk, :BlockNumber
|
220
|
+
|
221
|
+
def initialize(_module=nil, operation=nil, grouppk=nil, blocknumber=nil)
|
222
|
+
@Module = _module
|
223
|
+
@Operation = operation
|
224
|
+
@GroupPk = grouppk
|
225
|
+
@BlockNumber = blocknumber
|
226
|
+
end
|
227
|
+
|
228
|
+
def deserialize(params)
|
229
|
+
@Module = params['Module']
|
230
|
+
@Operation = params['Operation']
|
231
|
+
@GroupPk = params['GroupPk']
|
232
|
+
@BlockNumber = params['BlockNumber']
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# BlockByNumberHandler返回参数结构体
|
237
|
+
class BlockByNumberHandlerResponse < TencentCloud::Common::AbstractModel
|
238
|
+
# @param BlockJson: 返回区块json字符串
|
239
|
+
# @type BlockJson: String
|
240
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
241
|
+
# @type RequestId: String
|
242
|
+
|
243
|
+
attr_accessor :BlockJson, :RequestId
|
244
|
+
|
245
|
+
def initialize(blockjson=nil, requestid=nil)
|
246
|
+
@BlockJson = blockjson
|
247
|
+
@RequestId = requestid
|
248
|
+
end
|
249
|
+
|
250
|
+
def deserialize(params)
|
251
|
+
@BlockJson = params['BlockJson']
|
252
|
+
@RequestId = params['RequestId']
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
# 长安链合约执行结果
|
257
|
+
class ChainMakerContractResult < TencentCloud::Common::AbstractModel
|
258
|
+
# @param Code: 交易结果码
|
259
|
+
# @type Code: Integer
|
260
|
+
# @param CodeMessage: 交易结果码含义
|
261
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
262
|
+
# @type CodeMessage: String
|
263
|
+
# @param TxId: 交易ID
|
264
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
265
|
+
# @type TxId: String
|
266
|
+
# @param GasUsed: Gas使用量
|
267
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
268
|
+
# @type GasUsed: Integer
|
269
|
+
# @param Message: 合约返回消息
|
270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
271
|
+
# @type Message: String
|
272
|
+
# @param Result: 合约函数返回,base64编码
|
273
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
274
|
+
# @type Result: String
|
275
|
+
|
276
|
+
attr_accessor :Code, :CodeMessage, :TxId, :GasUsed, :Message, :Result
|
277
|
+
|
278
|
+
def initialize(code=nil, codemessage=nil, txid=nil, gasused=nil, message=nil, result=nil)
|
279
|
+
@Code = code
|
280
|
+
@CodeMessage = codemessage
|
281
|
+
@TxId = txid
|
282
|
+
@GasUsed = gasused
|
283
|
+
@Message = message
|
284
|
+
@Result = result
|
285
|
+
end
|
286
|
+
|
287
|
+
def deserialize(params)
|
288
|
+
@Code = params['Code']
|
289
|
+
@CodeMessage = params['CodeMessage']
|
290
|
+
@TxId = params['TxId']
|
291
|
+
@GasUsed = params['GasUsed']
|
292
|
+
@Message = params['Message']
|
293
|
+
@Result = params['Result']
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
# 长安链交易查询结果
|
298
|
+
class ChainMakerTransactionResult < TencentCloud::Common::AbstractModel
|
299
|
+
# @param Code: 交易结果码
|
300
|
+
# @type Code: Integer
|
301
|
+
# @param CodeMessage: 交易结果码含义
|
302
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
303
|
+
# @type CodeMessage: String
|
304
|
+
# @param TxId: 交易ID
|
305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
306
|
+
# @type TxId: String
|
307
|
+
# @param GasUsed: Gas使用量
|
308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
309
|
+
# @type GasUsed: Integer
|
310
|
+
# @param BlockHeight: 区块高度
|
311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
312
|
+
# @type BlockHeight: Integer
|
313
|
+
# @param ContractEvent: 合约执行结果
|
314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
315
|
+
# @type ContractEvent: String
|
316
|
+
# @param Message: 合约返回信息
|
317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
318
|
+
# @type Message: String
|
319
|
+
# @param Timestamp: 交易时间,单位是秒
|
320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
321
|
+
# @type Timestamp: Integer
|
322
|
+
|
323
|
+
attr_accessor :Code, :CodeMessage, :TxId, :GasUsed, :BlockHeight, :ContractEvent, :Message, :Timestamp
|
324
|
+
|
325
|
+
def initialize(code=nil, codemessage=nil, txid=nil, gasused=nil, blockheight=nil, contractevent=nil, message=nil, timestamp=nil)
|
326
|
+
@Code = code
|
327
|
+
@CodeMessage = codemessage
|
328
|
+
@TxId = txid
|
329
|
+
@GasUsed = gasused
|
330
|
+
@BlockHeight = blockheight
|
331
|
+
@ContractEvent = contractevent
|
332
|
+
@Message = message
|
333
|
+
@Timestamp = timestamp
|
334
|
+
end
|
335
|
+
|
336
|
+
def deserialize(params)
|
337
|
+
@Code = params['Code']
|
338
|
+
@CodeMessage = params['CodeMessage']
|
339
|
+
@TxId = params['TxId']
|
340
|
+
@GasUsed = params['GasUsed']
|
341
|
+
@BlockHeight = params['BlockHeight']
|
342
|
+
@ContractEvent = params['ContractEvent']
|
343
|
+
@Message = params['Message']
|
344
|
+
@Timestamp = params['Timestamp']
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
# 通道详情信息
|
349
|
+
class ChannelDetailForUser < TencentCloud::Common::AbstractModel
|
350
|
+
# @param ChannelName: 通道名称
|
351
|
+
# @type ChannelName: String
|
352
|
+
# @param PeerList: 当前组织加入通道的节点列表
|
353
|
+
# @type PeerList: Array
|
354
|
+
|
355
|
+
attr_accessor :ChannelName, :PeerList
|
356
|
+
|
357
|
+
def initialize(channelname=nil, peerlist=nil)
|
358
|
+
@ChannelName = channelname
|
359
|
+
@PeerList = peerlist
|
360
|
+
end
|
361
|
+
|
362
|
+
def deserialize(params)
|
363
|
+
@ChannelName = params['ChannelName']
|
364
|
+
unless params['PeerList'].nil?
|
365
|
+
@PeerList = []
|
366
|
+
params['PeerList'].each do |i|
|
367
|
+
peerdetailforuser_tmp = PeerDetailForUser.new
|
368
|
+
peerdetailforuser_tmp.deserialize(i)
|
369
|
+
@PeerList << peerdetailforuser_tmp
|
370
|
+
end
|
371
|
+
end
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# 网络详情信息
|
376
|
+
class ClusterDetailForUser < TencentCloud::Common::AbstractModel
|
377
|
+
# @param ClusterId: 网络ID
|
378
|
+
# @type ClusterId: String
|
379
|
+
# @param GroupList: 组织列表
|
380
|
+
# @type GroupList: Array
|
381
|
+
# @param ClusterName: 网络名称
|
382
|
+
# @type ClusterName: String
|
383
|
+
|
384
|
+
attr_accessor :ClusterId, :GroupList, :ClusterName
|
385
|
+
|
386
|
+
def initialize(clusterid=nil, grouplist=nil, clustername=nil)
|
387
|
+
@ClusterId = clusterid
|
388
|
+
@GroupList = grouplist
|
389
|
+
@ClusterName = clustername
|
390
|
+
end
|
391
|
+
|
392
|
+
def deserialize(params)
|
393
|
+
@ClusterId = params['ClusterId']
|
394
|
+
unless params['GroupList'].nil?
|
395
|
+
@GroupList = []
|
396
|
+
params['GroupList'].each do |i|
|
397
|
+
groupdetailforuser_tmp = GroupDetailForUser.new
|
398
|
+
groupdetailforuser_tmp.deserialize(i)
|
399
|
+
@GroupList << groupdetailforuser_tmp
|
400
|
+
end
|
401
|
+
end
|
402
|
+
@ClusterName = params['ClusterName']
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
# CreateChaincodeAndInstallForUser请求参数结构体
|
407
|
+
class CreateChaincodeAndInstallForUserRequest < TencentCloud::Common::AbstractModel
|
408
|
+
# @param Module: 模块名,本接口取值:chaincode_mng
|
409
|
+
# @type Module: String
|
410
|
+
# @param Operation: 操作名,本接口取值:chaincode_create_and_install_for_user
|
411
|
+
# @type Operation: String
|
412
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
413
|
+
# @type ClusterId: String
|
414
|
+
# @param GroupName: 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
415
|
+
# @type GroupName: String
|
416
|
+
# @param PeerName: 合约安装节点名称,可以在通道详情中获取该通道上的节点名称
|
417
|
+
# @type PeerName: String
|
418
|
+
# @param ChaincodeName: 智能合约名称,格式说明:以小写字母开头,由2-12位数字或小写字母组成
|
419
|
+
# @type ChaincodeName: String
|
420
|
+
# @param ChaincodeVersion: 智能合约版本,格式说明:由1-12位数字、小写字母、特殊符号(“.”)组成,如v1.0
|
421
|
+
# @type ChaincodeVersion: String
|
422
|
+
# @param ChaincodeFileType: 智能合约代码文件类型,支持类型:
|
423
|
+
# 1. "go":.go合约文件
|
424
|
+
# 2. "gozip":go合约工程zip包,要求压缩目录为代码根目录
|
425
|
+
# 3. "javazip":java合约工程zip包,要求压缩目录为代码根目录
|
426
|
+
# 4. "nodezip":nodejs合约工程zip包,要求压缩目录为代码根目录
|
427
|
+
# @type ChaincodeFileType: String
|
428
|
+
# @param Chaincode: 合约内容,合约文件或压缩包内容的base64编码,大小要求小于等于5M
|
429
|
+
# @type Chaincode: String
|
430
|
+
|
431
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :PeerName, :ChaincodeName, :ChaincodeVersion, :ChaincodeFileType, :Chaincode
|
432
|
+
|
433
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, peername=nil, chaincodename=nil, chaincodeversion=nil, chaincodefiletype=nil, chaincode=nil)
|
434
|
+
@Module = _module
|
435
|
+
@Operation = operation
|
436
|
+
@ClusterId = clusterid
|
437
|
+
@GroupName = groupname
|
438
|
+
@PeerName = peername
|
439
|
+
@ChaincodeName = chaincodename
|
440
|
+
@ChaincodeVersion = chaincodeversion
|
441
|
+
@ChaincodeFileType = chaincodefiletype
|
442
|
+
@Chaincode = chaincode
|
443
|
+
end
|
444
|
+
|
445
|
+
def deserialize(params)
|
446
|
+
@Module = params['Module']
|
447
|
+
@Operation = params['Operation']
|
448
|
+
@ClusterId = params['ClusterId']
|
449
|
+
@GroupName = params['GroupName']
|
450
|
+
@PeerName = params['PeerName']
|
451
|
+
@ChaincodeName = params['ChaincodeName']
|
452
|
+
@ChaincodeVersion = params['ChaincodeVersion']
|
453
|
+
@ChaincodeFileType = params['ChaincodeFileType']
|
454
|
+
@Chaincode = params['Chaincode']
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
# CreateChaincodeAndInstallForUser返回参数结构体
|
459
|
+
class CreateChaincodeAndInstallForUserResponse < TencentCloud::Common::AbstractModel
|
460
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
461
|
+
# @type RequestId: String
|
462
|
+
|
463
|
+
attr_accessor :RequestId
|
464
|
+
|
465
|
+
def initialize(requestid=nil)
|
466
|
+
@RequestId = requestid
|
467
|
+
end
|
468
|
+
|
469
|
+
def deserialize(params)
|
470
|
+
@RequestId = params['RequestId']
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
# DeployDynamicBcosContract请求参数结构体
|
475
|
+
class DeployDynamicBcosContractRequest < TencentCloud::Common::AbstractModel
|
476
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
477
|
+
# @type ClusterId: String
|
478
|
+
# @param GroupId: 群组编号,可在群组列表中获取
|
479
|
+
# @type GroupId: Integer
|
480
|
+
# @param AbiInfo: 合约编译后的ABI,可在合约详情获取
|
481
|
+
# @type AbiInfo: String
|
482
|
+
# @param ByteCodeBin: 合约编译得到的字节码,hex编码,可在合约详情获取
|
483
|
+
# @type ByteCodeBin: String
|
484
|
+
# @param SignUserId: 签名用户编号,可在私钥管理页面获取
|
485
|
+
# @type SignUserId: String
|
486
|
+
# @param ConstructorParams: 构造函数入参,Json数组,多个参数以逗号分隔(参数为数组时同理),如:["str1",["arr1","arr2"]]
|
487
|
+
# @type ConstructorParams: String
|
488
|
+
|
489
|
+
attr_accessor :ClusterId, :GroupId, :AbiInfo, :ByteCodeBin, :SignUserId, :ConstructorParams
|
490
|
+
|
491
|
+
def initialize(clusterid=nil, groupid=nil, abiinfo=nil, bytecodebin=nil, signuserid=nil, constructorparams=nil)
|
492
|
+
@ClusterId = clusterid
|
493
|
+
@GroupId = groupid
|
494
|
+
@AbiInfo = abiinfo
|
495
|
+
@ByteCodeBin = bytecodebin
|
496
|
+
@SignUserId = signuserid
|
497
|
+
@ConstructorParams = constructorparams
|
498
|
+
end
|
499
|
+
|
500
|
+
def deserialize(params)
|
501
|
+
@ClusterId = params['ClusterId']
|
502
|
+
@GroupId = params['GroupId']
|
503
|
+
@AbiInfo = params['AbiInfo']
|
504
|
+
@ByteCodeBin = params['ByteCodeBin']
|
505
|
+
@SignUserId = params['SignUserId']
|
506
|
+
@ConstructorParams = params['ConstructorParams']
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
# DeployDynamicBcosContract返回参数结构体
|
511
|
+
class DeployDynamicBcosContractResponse < TencentCloud::Common::AbstractModel
|
512
|
+
# @param ContractAddress: 部署成功返回的合约地址
|
513
|
+
# @type ContractAddress: String
|
514
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
515
|
+
# @type RequestId: String
|
516
|
+
|
517
|
+
attr_accessor :ContractAddress, :RequestId
|
518
|
+
|
519
|
+
def initialize(contractaddress=nil, requestid=nil)
|
520
|
+
@ContractAddress = contractaddress
|
521
|
+
@RequestId = requestid
|
522
|
+
end
|
523
|
+
|
524
|
+
def deserialize(params)
|
525
|
+
@ContractAddress = params['ContractAddress']
|
526
|
+
@RequestId = params['RequestId']
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
530
|
+
# DeployDynamicContractHandler请求参数结构体
|
531
|
+
class DeployDynamicContractHandlerRequest < TencentCloud::Common::AbstractModel
|
532
|
+
# @param Module: 模块名,固定字段:contract
|
533
|
+
# @type Module: String
|
534
|
+
# @param Operation: 操作名,固定字段:deploy_dynamic_contract
|
535
|
+
# @type Operation: String
|
536
|
+
# @param GroupPk: 群组编号
|
537
|
+
# @type GroupPk: String
|
538
|
+
# @param ContractName: 合约名称
|
539
|
+
# @type ContractName: String
|
540
|
+
# @param AbiInfo: 合约编译后的abi
|
541
|
+
# @type AbiInfo: String
|
542
|
+
# @param ByteCodeBin: 合约编译后的binary
|
543
|
+
# @type ByteCodeBin: String
|
544
|
+
# @param ConstructorParams: 构造函数入参
|
545
|
+
# @type ConstructorParams: Array
|
546
|
+
|
547
|
+
attr_accessor :Module, :Operation, :GroupPk, :ContractName, :AbiInfo, :ByteCodeBin, :ConstructorParams
|
548
|
+
|
549
|
+
def initialize(_module=nil, operation=nil, grouppk=nil, contractname=nil, abiinfo=nil, bytecodebin=nil, constructorparams=nil)
|
550
|
+
@Module = _module
|
551
|
+
@Operation = operation
|
552
|
+
@GroupPk = grouppk
|
553
|
+
@ContractName = contractname
|
554
|
+
@AbiInfo = abiinfo
|
555
|
+
@ByteCodeBin = bytecodebin
|
556
|
+
@ConstructorParams = constructorparams
|
557
|
+
end
|
558
|
+
|
559
|
+
def deserialize(params)
|
560
|
+
@Module = params['Module']
|
561
|
+
@Operation = params['Operation']
|
562
|
+
@GroupPk = params['GroupPk']
|
563
|
+
@ContractName = params['ContractName']
|
564
|
+
@AbiInfo = params['AbiInfo']
|
565
|
+
@ByteCodeBin = params['ByteCodeBin']
|
566
|
+
@ConstructorParams = params['ConstructorParams']
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
# DeployDynamicContractHandler返回参数结构体
|
571
|
+
class DeployDynamicContractHandlerResponse < TencentCloud::Common::AbstractModel
|
572
|
+
# @param ContractAddress: 部署成功返回的合约地址
|
573
|
+
# @type ContractAddress: String
|
574
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
575
|
+
# @type RequestId: String
|
576
|
+
|
577
|
+
attr_accessor :ContractAddress, :RequestId
|
578
|
+
|
579
|
+
def initialize(contractaddress=nil, requestid=nil)
|
580
|
+
@ContractAddress = contractaddress
|
581
|
+
@RequestId = requestid
|
582
|
+
end
|
583
|
+
|
584
|
+
def deserialize(params)
|
585
|
+
@ContractAddress = params['ContractAddress']
|
586
|
+
@RequestId = params['RequestId']
|
587
|
+
end
|
588
|
+
end
|
589
|
+
|
590
|
+
# DownloadUserCert请求参数结构体
|
591
|
+
class DownloadUserCertRequest < TencentCloud::Common::AbstractModel
|
592
|
+
# @param Module: 模块名,固定字段:cert_mng
|
593
|
+
# @type Module: String
|
594
|
+
# @param Operation: 操作名,固定字段:cert_download_for_user
|
595
|
+
# @type Operation: String
|
596
|
+
# @param CertId: 证书ID,可以在证书详情页面获取
|
597
|
+
# @type CertId: Integer
|
598
|
+
# @param CertDn: 证书DN,可以在证书详情页面获取
|
599
|
+
# @type CertDn: String
|
600
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
601
|
+
# @type ClusterId: String
|
602
|
+
# @param GroupName: 下载证书的组织名称,可以在组织管理列表中获取当前组织的名称
|
603
|
+
# @type GroupName: String
|
604
|
+
|
605
|
+
attr_accessor :Module, :Operation, :CertId, :CertDn, :ClusterId, :GroupName
|
606
|
+
|
607
|
+
def initialize(_module=nil, operation=nil, certid=nil, certdn=nil, clusterid=nil, groupname=nil)
|
608
|
+
@Module = _module
|
609
|
+
@Operation = operation
|
610
|
+
@CertId = certid
|
611
|
+
@CertDn = certdn
|
612
|
+
@ClusterId = clusterid
|
613
|
+
@GroupName = groupname
|
614
|
+
end
|
615
|
+
|
616
|
+
def deserialize(params)
|
617
|
+
@Module = params['Module']
|
618
|
+
@Operation = params['Operation']
|
619
|
+
@CertId = params['CertId']
|
620
|
+
@CertDn = params['CertDn']
|
621
|
+
@ClusterId = params['ClusterId']
|
622
|
+
@GroupName = params['GroupName']
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
# DownloadUserCert返回参数结构体
|
627
|
+
class DownloadUserCertResponse < TencentCloud::Common::AbstractModel
|
628
|
+
# @param CertName: 证书名称
|
629
|
+
# @type CertName: String
|
630
|
+
# @param CertCtx: 证书内容
|
631
|
+
# @type CertCtx: String
|
632
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
633
|
+
# @type RequestId: String
|
634
|
+
|
635
|
+
attr_accessor :CertName, :CertCtx, :RequestId
|
636
|
+
|
637
|
+
def initialize(certname=nil, certctx=nil, requestid=nil)
|
638
|
+
@CertName = certname
|
639
|
+
@CertCtx = certctx
|
640
|
+
@RequestId = requestid
|
641
|
+
end
|
642
|
+
|
643
|
+
def deserialize(params)
|
644
|
+
@CertName = params['CertName']
|
645
|
+
@CertCtx = params['CertCtx']
|
646
|
+
@RequestId = params['RequestId']
|
647
|
+
end
|
648
|
+
end
|
649
|
+
|
650
|
+
# 背书组织及其节点列表
|
651
|
+
class EndorserGroup < TencentCloud::Common::AbstractModel
|
652
|
+
# @param EndorserGroupName: 背书组织名称
|
653
|
+
# @type EndorserGroupName: String
|
654
|
+
# @param EndorserPeerList: 背书节点列表
|
655
|
+
# @type EndorserPeerList: Array
|
656
|
+
|
657
|
+
attr_accessor :EndorserGroupName, :EndorserPeerList
|
658
|
+
|
659
|
+
def initialize(endorsergroupname=nil, endorserpeerlist=nil)
|
660
|
+
@EndorserGroupName = endorsergroupname
|
661
|
+
@EndorserPeerList = endorserpeerlist
|
662
|
+
end
|
663
|
+
|
664
|
+
def deserialize(params)
|
665
|
+
@EndorserGroupName = params['EndorserGroupName']
|
666
|
+
@EndorserPeerList = params['EndorserPeerList']
|
667
|
+
end
|
668
|
+
end
|
669
|
+
|
670
|
+
# GetBcosBlockByNumber请求参数结构体
|
671
|
+
class GetBcosBlockByNumberRequest < TencentCloud::Common::AbstractModel
|
672
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
673
|
+
# @type ClusterId: String
|
674
|
+
# @param GroupId: 群组编号,可在群组列表中获取
|
675
|
+
# @type GroupId: Integer
|
676
|
+
# @param BlockNumber: 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
|
677
|
+
# @type BlockNumber: Integer
|
678
|
+
|
679
|
+
attr_accessor :ClusterId, :GroupId, :BlockNumber
|
680
|
+
|
681
|
+
def initialize(clusterid=nil, groupid=nil, blocknumber=nil)
|
682
|
+
@ClusterId = clusterid
|
683
|
+
@GroupId = groupid
|
684
|
+
@BlockNumber = blocknumber
|
685
|
+
end
|
686
|
+
|
687
|
+
def deserialize(params)
|
688
|
+
@ClusterId = params['ClusterId']
|
689
|
+
@GroupId = params['GroupId']
|
690
|
+
@BlockNumber = params['BlockNumber']
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
# GetBcosBlockByNumber返回参数结构体
|
695
|
+
class GetBcosBlockByNumberResponse < TencentCloud::Common::AbstractModel
|
696
|
+
# @param BlockJson: 返回区块json字符串
|
697
|
+
# @type BlockJson: String
|
698
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
699
|
+
# @type RequestId: String
|
700
|
+
|
701
|
+
attr_accessor :BlockJson, :RequestId
|
702
|
+
|
703
|
+
def initialize(blockjson=nil, requestid=nil)
|
704
|
+
@BlockJson = blockjson
|
705
|
+
@RequestId = requestid
|
706
|
+
end
|
707
|
+
|
708
|
+
def deserialize(params)
|
709
|
+
@BlockJson = params['BlockJson']
|
710
|
+
@RequestId = params['RequestId']
|
711
|
+
end
|
712
|
+
end
|
713
|
+
|
714
|
+
# GetBcosBlockList请求参数结构体
|
715
|
+
class GetBcosBlockListRequest < TencentCloud::Common::AbstractModel
|
716
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
717
|
+
# @type ClusterId: String
|
718
|
+
# @param GroupId: 群组编号,可在群组列表中获取
|
719
|
+
# @type GroupId: Integer
|
720
|
+
# @param PageNumber: 当前页数,默认为1
|
721
|
+
# @type PageNumber: Integer
|
722
|
+
# @param PageSize: 每页记录数,默认为10
|
723
|
+
# @type PageSize: Integer
|
724
|
+
# @param BlockNumber: 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
|
725
|
+
# @type BlockNumber: Integer
|
726
|
+
# @param BlockHash: 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取
|
727
|
+
# @type BlockHash: String
|
728
|
+
|
729
|
+
attr_accessor :ClusterId, :GroupId, :PageNumber, :PageSize, :BlockNumber, :BlockHash
|
730
|
+
|
731
|
+
def initialize(clusterid=nil, groupid=nil, pagenumber=nil, pagesize=nil, blocknumber=nil, blockhash=nil)
|
732
|
+
@ClusterId = clusterid
|
733
|
+
@GroupId = groupid
|
734
|
+
@PageNumber = pagenumber
|
735
|
+
@PageSize = pagesize
|
736
|
+
@BlockNumber = blocknumber
|
737
|
+
@BlockHash = blockhash
|
738
|
+
end
|
739
|
+
|
740
|
+
def deserialize(params)
|
741
|
+
@ClusterId = params['ClusterId']
|
742
|
+
@GroupId = params['GroupId']
|
743
|
+
@PageNumber = params['PageNumber']
|
744
|
+
@PageSize = params['PageSize']
|
745
|
+
@BlockNumber = params['BlockNumber']
|
746
|
+
@BlockHash = params['BlockHash']
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
750
|
+
# GetBcosBlockList返回参数结构体
|
751
|
+
class GetBcosBlockListResponse < TencentCloud::Common::AbstractModel
|
752
|
+
# @param TotalCount: 总记录数
|
753
|
+
# @type TotalCount: Integer
|
754
|
+
# @param List: 返回数据列表
|
755
|
+
# @type List: Array
|
756
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
757
|
+
# @type RequestId: String
|
758
|
+
|
759
|
+
attr_accessor :TotalCount, :List, :RequestId
|
760
|
+
|
761
|
+
def initialize(totalcount=nil, list=nil, requestid=nil)
|
762
|
+
@TotalCount = totalcount
|
763
|
+
@List = list
|
764
|
+
@RequestId = requestid
|
765
|
+
end
|
766
|
+
|
767
|
+
def deserialize(params)
|
768
|
+
@TotalCount = params['TotalCount']
|
769
|
+
unless params['List'].nil?
|
770
|
+
@List = []
|
771
|
+
params['List'].each do |i|
|
772
|
+
bcosblockobj_tmp = BcosBlockObj.new
|
773
|
+
bcosblockobj_tmp.deserialize(i)
|
774
|
+
@List << bcosblockobj_tmp
|
775
|
+
end
|
776
|
+
end
|
777
|
+
@RequestId = params['RequestId']
|
778
|
+
end
|
779
|
+
end
|
780
|
+
|
781
|
+
# GetBcosTransByHash请求参数结构体
|
782
|
+
class GetBcosTransByHashRequest < TencentCloud::Common::AbstractModel
|
783
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
784
|
+
# @type ClusterId: String
|
785
|
+
# @param GroupId: 群组编号,可在群组列表中获取
|
786
|
+
# @type GroupId: Integer
|
787
|
+
# @param TransHash: 交易哈希值,可以从InvokeBcosTrans接口的返回值中解析获取
|
788
|
+
# @type TransHash: String
|
789
|
+
|
790
|
+
attr_accessor :ClusterId, :GroupId, :TransHash
|
791
|
+
|
792
|
+
def initialize(clusterid=nil, groupid=nil, transhash=nil)
|
793
|
+
@ClusterId = clusterid
|
794
|
+
@GroupId = groupid
|
795
|
+
@TransHash = transhash
|
796
|
+
end
|
797
|
+
|
798
|
+
def deserialize(params)
|
799
|
+
@ClusterId = params['ClusterId']
|
800
|
+
@GroupId = params['GroupId']
|
801
|
+
@TransHash = params['TransHash']
|
802
|
+
end
|
803
|
+
end
|
804
|
+
|
805
|
+
# GetBcosTransByHash返回参数结构体
|
806
|
+
class GetBcosTransByHashResponse < TencentCloud::Common::AbstractModel
|
807
|
+
# @param TransactionJson: 交易信息json字符串
|
808
|
+
# @type TransactionJson: String
|
809
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
810
|
+
# @type RequestId: String
|
811
|
+
|
812
|
+
attr_accessor :TransactionJson, :RequestId
|
813
|
+
|
814
|
+
def initialize(transactionjson=nil, requestid=nil)
|
815
|
+
@TransactionJson = transactionjson
|
816
|
+
@RequestId = requestid
|
817
|
+
end
|
818
|
+
|
819
|
+
def deserialize(params)
|
820
|
+
@TransactionJson = params['TransactionJson']
|
821
|
+
@RequestId = params['RequestId']
|
822
|
+
end
|
823
|
+
end
|
824
|
+
|
825
|
+
# GetBcosTransList请求参数结构体
|
826
|
+
class GetBcosTransListRequest < TencentCloud::Common::AbstractModel
|
827
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
828
|
+
# @type ClusterId: String
|
829
|
+
# @param GroupId: 群组编号,可在群组列表中获取
|
830
|
+
# @type GroupId: Integer
|
831
|
+
# @param PageNumber: 当前页数,默认是1
|
832
|
+
# @type PageNumber: Integer
|
833
|
+
# @param PageSize: 每页记录数,默认为10
|
834
|
+
# @type PageSize: Integer
|
835
|
+
# @param BlockNumber: 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取
|
836
|
+
# @type BlockNumber: Integer
|
837
|
+
# @param TransHash: 交易哈希,可以从InvokeBcosTrans接口的返回值中解析获取
|
838
|
+
# @type TransHash: String
|
839
|
+
|
840
|
+
attr_accessor :ClusterId, :GroupId, :PageNumber, :PageSize, :BlockNumber, :TransHash
|
841
|
+
|
842
|
+
def initialize(clusterid=nil, groupid=nil, pagenumber=nil, pagesize=nil, blocknumber=nil, transhash=nil)
|
843
|
+
@ClusterId = clusterid
|
844
|
+
@GroupId = groupid
|
845
|
+
@PageNumber = pagenumber
|
846
|
+
@PageSize = pagesize
|
847
|
+
@BlockNumber = blocknumber
|
848
|
+
@TransHash = transhash
|
849
|
+
end
|
850
|
+
|
851
|
+
def deserialize(params)
|
852
|
+
@ClusterId = params['ClusterId']
|
853
|
+
@GroupId = params['GroupId']
|
854
|
+
@PageNumber = params['PageNumber']
|
855
|
+
@PageSize = params['PageSize']
|
856
|
+
@BlockNumber = params['BlockNumber']
|
857
|
+
@TransHash = params['TransHash']
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
# GetBcosTransList返回参数结构体
|
862
|
+
class GetBcosTransListResponse < TencentCloud::Common::AbstractModel
|
863
|
+
# @param TotalCount: 总记录数
|
864
|
+
# @type TotalCount: Integer
|
865
|
+
# @param List: 返回数据列表
|
866
|
+
# @type List: Array
|
867
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
868
|
+
# @type RequestId: String
|
869
|
+
|
870
|
+
attr_accessor :TotalCount, :List, :RequestId
|
871
|
+
|
872
|
+
def initialize(totalcount=nil, list=nil, requestid=nil)
|
873
|
+
@TotalCount = totalcount
|
874
|
+
@List = list
|
875
|
+
@RequestId = requestid
|
876
|
+
end
|
877
|
+
|
878
|
+
def deserialize(params)
|
879
|
+
@TotalCount = params['TotalCount']
|
880
|
+
unless params['List'].nil?
|
881
|
+
@List = []
|
882
|
+
params['List'].each do |i|
|
883
|
+
bcostransinfo_tmp = BcosTransInfo.new
|
884
|
+
bcostransinfo_tmp.deserialize(i)
|
885
|
+
@List << bcostransinfo_tmp
|
886
|
+
end
|
887
|
+
end
|
888
|
+
@RequestId = params['RequestId']
|
889
|
+
end
|
890
|
+
end
|
891
|
+
|
892
|
+
# GetBlockListHandler请求参数结构体
|
893
|
+
class GetBlockListHandlerRequest < TencentCloud::Common::AbstractModel
|
894
|
+
# @param Module: 模块名,固定字段:block
|
895
|
+
# @type Module: String
|
896
|
+
# @param Operation: 操作名,固定字段:get_block_list
|
897
|
+
# @type Operation: String
|
898
|
+
# @param Offset: 记录偏移数
|
899
|
+
# @type Offset: Integer
|
900
|
+
# @param Limit: 每页记录数
|
901
|
+
# @type Limit: Integer
|
902
|
+
# @param GroupPk: 当前群组编号
|
903
|
+
# @type GroupPk: String
|
904
|
+
# @param BlockHash: 区块哈希
|
905
|
+
# @type BlockHash: String
|
906
|
+
|
907
|
+
attr_accessor :Module, :Operation, :Offset, :Limit, :GroupPk, :BlockHash
|
908
|
+
|
909
|
+
def initialize(_module=nil, operation=nil, offset=nil, limit=nil, grouppk=nil, blockhash=nil)
|
910
|
+
@Module = _module
|
911
|
+
@Operation = operation
|
912
|
+
@Offset = offset
|
913
|
+
@Limit = limit
|
914
|
+
@GroupPk = grouppk
|
915
|
+
@BlockHash = blockhash
|
916
|
+
end
|
917
|
+
|
918
|
+
def deserialize(params)
|
919
|
+
@Module = params['Module']
|
920
|
+
@Operation = params['Operation']
|
921
|
+
@Offset = params['Offset']
|
922
|
+
@Limit = params['Limit']
|
923
|
+
@GroupPk = params['GroupPk']
|
924
|
+
@BlockHash = params['BlockHash']
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
928
|
+
# GetBlockListHandler返回参数结构体
|
929
|
+
class GetBlockListHandlerResponse < TencentCloud::Common::AbstractModel
|
930
|
+
# @param TotalCount: 总记录数
|
931
|
+
# @type TotalCount: Integer
|
932
|
+
# @param GroupPk: 当前群组编号
|
933
|
+
# @type GroupPk: String
|
934
|
+
# @param List: 返回数据列表
|
935
|
+
# @type List: Array
|
936
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
937
|
+
# @type RequestId: String
|
938
|
+
|
939
|
+
attr_accessor :TotalCount, :GroupPk, :List, :RequestId
|
940
|
+
|
941
|
+
def initialize(totalcount=nil, grouppk=nil, list=nil, requestid=nil)
|
942
|
+
@TotalCount = totalcount
|
943
|
+
@GroupPk = grouppk
|
944
|
+
@List = list
|
945
|
+
@RequestId = requestid
|
946
|
+
end
|
947
|
+
|
948
|
+
def deserialize(params)
|
949
|
+
@TotalCount = params['TotalCount']
|
950
|
+
@GroupPk = params['GroupPk']
|
951
|
+
unless params['List'].nil?
|
952
|
+
@List = []
|
953
|
+
params['List'].each do |i|
|
954
|
+
bcosblockobj_tmp = BcosBlockObj.new
|
955
|
+
bcosblockobj_tmp.deserialize(i)
|
956
|
+
@List << bcosblockobj_tmp
|
957
|
+
end
|
958
|
+
end
|
959
|
+
@RequestId = params['RequestId']
|
960
|
+
end
|
961
|
+
end
|
962
|
+
|
963
|
+
# GetBlockList请求参数结构体
|
964
|
+
class GetBlockListRequest < TencentCloud::Common::AbstractModel
|
965
|
+
# @param Module: 模块名称,固定字段:block
|
966
|
+
# @type Module: String
|
967
|
+
# @param Operation: 操作名称,固定字段:block_list
|
968
|
+
# @type Operation: String
|
969
|
+
# @param ChannelId: 通道ID,固定字段:0
|
970
|
+
# @type ChannelId: Integer
|
971
|
+
# @param GroupId: 组织ID,固定字段:0
|
972
|
+
# @type GroupId: Integer
|
973
|
+
# @param ChannelName: 需要查询的通道名称,可在通道详情或列表中获取
|
974
|
+
# @type ChannelName: String
|
975
|
+
# @param GroupName: 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
|
976
|
+
# @type GroupName: String
|
977
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
978
|
+
# @type ClusterId: String
|
979
|
+
# @param Offset: 需要获取的起始交易偏移
|
980
|
+
# @type Offset: Integer
|
981
|
+
# @param Limit: 需要获取的交易数量
|
982
|
+
# @type Limit: Integer
|
983
|
+
|
984
|
+
attr_accessor :Module, :Operation, :ChannelId, :GroupId, :ChannelName, :GroupName, :ClusterId, :Offset, :Limit
|
985
|
+
|
986
|
+
def initialize(_module=nil, operation=nil, channelid=nil, groupid=nil, channelname=nil, groupname=nil, clusterid=nil, offset=nil, limit=nil)
|
987
|
+
@Module = _module
|
988
|
+
@Operation = operation
|
989
|
+
@ChannelId = channelid
|
990
|
+
@GroupId = groupid
|
991
|
+
@ChannelName = channelname
|
992
|
+
@GroupName = groupname
|
993
|
+
@ClusterId = clusterid
|
994
|
+
@Offset = offset
|
995
|
+
@Limit = limit
|
996
|
+
end
|
997
|
+
|
998
|
+
def deserialize(params)
|
999
|
+
@Module = params['Module']
|
1000
|
+
@Operation = params['Operation']
|
1001
|
+
@ChannelId = params['ChannelId']
|
1002
|
+
@GroupId = params['GroupId']
|
1003
|
+
@ChannelName = params['ChannelName']
|
1004
|
+
@GroupName = params['GroupName']
|
1005
|
+
@ClusterId = params['ClusterId']
|
1006
|
+
@Offset = params['Offset']
|
1007
|
+
@Limit = params['Limit']
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
# GetBlockList返回参数结构体
|
1012
|
+
class GetBlockListResponse < TencentCloud::Common::AbstractModel
|
1013
|
+
# @param TotalCount: 区块数量
|
1014
|
+
# @type TotalCount: Integer
|
1015
|
+
# @param BlockList: 区块列表
|
1016
|
+
# @type BlockList: Array
|
1017
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1018
|
+
# @type RequestId: String
|
1019
|
+
|
1020
|
+
attr_accessor :TotalCount, :BlockList, :RequestId
|
1021
|
+
|
1022
|
+
def initialize(totalcount=nil, blocklist=nil, requestid=nil)
|
1023
|
+
@TotalCount = totalcount
|
1024
|
+
@BlockList = blocklist
|
1025
|
+
@RequestId = requestid
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
def deserialize(params)
|
1029
|
+
@TotalCount = params['TotalCount']
|
1030
|
+
unless params['BlockList'].nil?
|
1031
|
+
@BlockList = []
|
1032
|
+
params['BlockList'].each do |i|
|
1033
|
+
block_tmp = Block.new
|
1034
|
+
block_tmp.deserialize(i)
|
1035
|
+
@BlockList << block_tmp
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
@RequestId = params['RequestId']
|
1039
|
+
end
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# GetBlockTransactionListForUser请求参数结构体
|
1043
|
+
class GetBlockTransactionListForUserRequest < TencentCloud::Common::AbstractModel
|
1044
|
+
# @param Module: 模块名,固定字段:transaction
|
1045
|
+
# @type Module: String
|
1046
|
+
# @param Operation: 操作名,固定字段:block_transaction_list_for_user
|
1047
|
+
# @type Operation: String
|
1048
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1049
|
+
# @type ClusterId: String
|
1050
|
+
# @param GroupName: 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称
|
1051
|
+
# @type GroupName: String
|
1052
|
+
# @param ChannelName: 业务所属通道名称,可在通道详情或列表中获取
|
1053
|
+
# @type ChannelName: String
|
1054
|
+
# @param BlockId: 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID
|
1055
|
+
# @type BlockId: Integer
|
1056
|
+
# @param Offset: 查询的交易列表起始偏移地址
|
1057
|
+
# @type Offset: Integer
|
1058
|
+
# @param Limit: 查询的交易列表数量
|
1059
|
+
# @type Limit: Integer
|
1060
|
+
|
1061
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :ChannelName, :BlockId, :Offset, :Limit
|
1062
|
+
|
1063
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, channelname=nil, blockid=nil, offset=nil, limit=nil)
|
1064
|
+
@Module = _module
|
1065
|
+
@Operation = operation
|
1066
|
+
@ClusterId = clusterid
|
1067
|
+
@GroupName = groupname
|
1068
|
+
@ChannelName = channelname
|
1069
|
+
@BlockId = blockid
|
1070
|
+
@Offset = offset
|
1071
|
+
@Limit = limit
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
def deserialize(params)
|
1075
|
+
@Module = params['Module']
|
1076
|
+
@Operation = params['Operation']
|
1077
|
+
@ClusterId = params['ClusterId']
|
1078
|
+
@GroupName = params['GroupName']
|
1079
|
+
@ChannelName = params['ChannelName']
|
1080
|
+
@BlockId = params['BlockId']
|
1081
|
+
@Offset = params['Offset']
|
1082
|
+
@Limit = params['Limit']
|
1083
|
+
end
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
# GetBlockTransactionListForUser返回参数结构体
|
1087
|
+
class GetBlockTransactionListForUserResponse < TencentCloud::Common::AbstractModel
|
1088
|
+
# @param TotalCount: 交易总数量
|
1089
|
+
# @type TotalCount: Integer
|
1090
|
+
# @param TransactionList: 交易列表
|
1091
|
+
# @type TransactionList: Array
|
1092
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1093
|
+
# @type RequestId: String
|
1094
|
+
|
1095
|
+
attr_accessor :TotalCount, :TransactionList, :RequestId
|
1096
|
+
|
1097
|
+
def initialize(totalcount=nil, transactionlist=nil, requestid=nil)
|
1098
|
+
@TotalCount = totalcount
|
1099
|
+
@TransactionList = transactionlist
|
1100
|
+
@RequestId = requestid
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
def deserialize(params)
|
1104
|
+
@TotalCount = params['TotalCount']
|
1105
|
+
unless params['TransactionList'].nil?
|
1106
|
+
@TransactionList = []
|
1107
|
+
params['TransactionList'].each do |i|
|
1108
|
+
transactionitem_tmp = TransactionItem.new
|
1109
|
+
transactionitem_tmp.deserialize(i)
|
1110
|
+
@TransactionList << transactionitem_tmp
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
@RequestId = params['RequestId']
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
# GetChaincodeCompileLogForUser请求参数结构体
|
1118
|
+
class GetChaincodeCompileLogForUserRequest < TencentCloud::Common::AbstractModel
|
1119
|
+
# @param Module: 模块名,本接口取值:chaincode_mng
|
1120
|
+
# @type Module: String
|
1121
|
+
# @param Operation: 操作名,本接口取值:chaincode_compile_log_for_user
|
1122
|
+
# @type Operation: String
|
1123
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1124
|
+
# @type ClusterId: String
|
1125
|
+
# @param GroupName: 调用合约的组织名称
|
1126
|
+
# @type GroupName: String
|
1127
|
+
# @param ChaincodeName: 业务所属智能合约名称
|
1128
|
+
# @type ChaincodeName: String
|
1129
|
+
# @param ChaincodeVersion: 业务所属智能合约版本
|
1130
|
+
# @type ChaincodeVersion: String
|
1131
|
+
# @param PeerName: 合约安装节点名称,可以在通道详情中获取该通道上的节点名称
|
1132
|
+
# @type PeerName: String
|
1133
|
+
# @param Limit: 返回数据项数,本接口默认取值:10
|
1134
|
+
# @type Limit: Integer
|
1135
|
+
# @param Offset: 返回数据起始偏移,本接口默认取值:0
|
1136
|
+
# @type Offset: Integer
|
1137
|
+
|
1138
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :ChaincodeName, :ChaincodeVersion, :PeerName, :Limit, :Offset
|
1139
|
+
|
1140
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, chaincodename=nil, chaincodeversion=nil, peername=nil, limit=nil, offset=nil)
|
1141
|
+
@Module = _module
|
1142
|
+
@Operation = operation
|
1143
|
+
@ClusterId = clusterid
|
1144
|
+
@GroupName = groupname
|
1145
|
+
@ChaincodeName = chaincodename
|
1146
|
+
@ChaincodeVersion = chaincodeversion
|
1147
|
+
@PeerName = peername
|
1148
|
+
@Limit = limit
|
1149
|
+
@Offset = offset
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
def deserialize(params)
|
1153
|
+
@Module = params['Module']
|
1154
|
+
@Operation = params['Operation']
|
1155
|
+
@ClusterId = params['ClusterId']
|
1156
|
+
@GroupName = params['GroupName']
|
1157
|
+
@ChaincodeName = params['ChaincodeName']
|
1158
|
+
@ChaincodeVersion = params['ChaincodeVersion']
|
1159
|
+
@PeerName = params['PeerName']
|
1160
|
+
@Limit = params['Limit']
|
1161
|
+
@Offset = params['Offset']
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
# GetChaincodeCompileLogForUser返回参数结构体
|
1166
|
+
class GetChaincodeCompileLogForUserResponse < TencentCloud::Common::AbstractModel
|
1167
|
+
# @param TotalCount: 日志总行数,上限2000条日志
|
1168
|
+
# @type TotalCount: Integer
|
1169
|
+
# @param CompileLogList: 日志列表
|
1170
|
+
# @type CompileLogList: Array
|
1171
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1172
|
+
# @type RequestId: String
|
1173
|
+
|
1174
|
+
attr_accessor :TotalCount, :CompileLogList, :RequestId
|
1175
|
+
|
1176
|
+
def initialize(totalcount=nil, compileloglist=nil, requestid=nil)
|
1177
|
+
@TotalCount = totalcount
|
1178
|
+
@CompileLogList = compileloglist
|
1179
|
+
@RequestId = requestid
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
def deserialize(params)
|
1183
|
+
@TotalCount = params['TotalCount']
|
1184
|
+
unless params['CompileLogList'].nil?
|
1185
|
+
@CompileLogList = []
|
1186
|
+
params['CompileLogList'].each do |i|
|
1187
|
+
logdetailforuser_tmp = LogDetailForUser.new
|
1188
|
+
logdetailforuser_tmp.deserialize(i)
|
1189
|
+
@CompileLogList << logdetailforuser_tmp
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
@RequestId = params['RequestId']
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
# GetChaincodeInitializeResultForUser请求参数结构体
|
1197
|
+
class GetChaincodeInitializeResultForUserRequest < TencentCloud::Common::AbstractModel
|
1198
|
+
# @param Module: 模块名,本接口取值:chaincode_mng
|
1199
|
+
# @type Module: String
|
1200
|
+
# @param Operation: 操作名,本接口取值:chaincode_init_result_for_user
|
1201
|
+
# @type Operation: String
|
1202
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1203
|
+
# @type ClusterId: String
|
1204
|
+
# @param GroupName: 调用合约的组织名称
|
1205
|
+
# @type GroupName: String
|
1206
|
+
# @param ChannelName: 业务所属通道名称
|
1207
|
+
# @type ChannelName: String
|
1208
|
+
# @param ChaincodeName: 业务所属合约名称
|
1209
|
+
# @type ChaincodeName: String
|
1210
|
+
# @param ChaincodeVersion: 业务所属智能合约版本
|
1211
|
+
# @type ChaincodeVersion: String
|
1212
|
+
# @param TaskId: 实例化任务ID
|
1213
|
+
# @type TaskId: Integer
|
1214
|
+
|
1215
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :ChannelName, :ChaincodeName, :ChaincodeVersion, :TaskId
|
1216
|
+
|
1217
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, channelname=nil, chaincodename=nil, chaincodeversion=nil, taskid=nil)
|
1218
|
+
@Module = _module
|
1219
|
+
@Operation = operation
|
1220
|
+
@ClusterId = clusterid
|
1221
|
+
@GroupName = groupname
|
1222
|
+
@ChannelName = channelname
|
1223
|
+
@ChaincodeName = chaincodename
|
1224
|
+
@ChaincodeVersion = chaincodeversion
|
1225
|
+
@TaskId = taskid
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
def deserialize(params)
|
1229
|
+
@Module = params['Module']
|
1230
|
+
@Operation = params['Operation']
|
1231
|
+
@ClusterId = params['ClusterId']
|
1232
|
+
@GroupName = params['GroupName']
|
1233
|
+
@ChannelName = params['ChannelName']
|
1234
|
+
@ChaincodeName = params['ChaincodeName']
|
1235
|
+
@ChaincodeVersion = params['ChaincodeVersion']
|
1236
|
+
@TaskId = params['TaskId']
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# GetChaincodeInitializeResultForUser返回参数结构体
|
1241
|
+
class GetChaincodeInitializeResultForUserResponse < TencentCloud::Common::AbstractModel
|
1242
|
+
# @param InitResult: 实例化结果:0,实例化中;1,实例化成功;2,实例化失败
|
1243
|
+
# @type InitResult: Integer
|
1244
|
+
# @param InitMessage: 实例化信息
|
1245
|
+
# @type InitMessage: String
|
1246
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1247
|
+
# @type RequestId: String
|
1248
|
+
|
1249
|
+
attr_accessor :InitResult, :InitMessage, :RequestId
|
1250
|
+
|
1251
|
+
def initialize(initresult=nil, initmessage=nil, requestid=nil)
|
1252
|
+
@InitResult = initresult
|
1253
|
+
@InitMessage = initmessage
|
1254
|
+
@RequestId = requestid
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
def deserialize(params)
|
1258
|
+
@InitResult = params['InitResult']
|
1259
|
+
@InitMessage = params['InitMessage']
|
1260
|
+
@RequestId = params['RequestId']
|
1261
|
+
end
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# GetChaincodeLogForUser请求参数结构体
|
1265
|
+
class GetChaincodeLogForUserRequest < TencentCloud::Common::AbstractModel
|
1266
|
+
# @param Module: 模块名,本接口取值:chaincode_mng
|
1267
|
+
# @type Module: String
|
1268
|
+
# @param Operation: 操作名,本接口取值:chaincode_log_for_user
|
1269
|
+
# @type Operation: String
|
1270
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1271
|
+
# @type ClusterId: String
|
1272
|
+
# @param GroupName: 调用合约的组织名称
|
1273
|
+
# @type GroupName: String
|
1274
|
+
# @param ChaincodeName: 业务所属智能合约名称
|
1275
|
+
# @type ChaincodeName: String
|
1276
|
+
# @param ChaincodeVersion: 业务所属智能合约版本
|
1277
|
+
# @type ChaincodeVersion: String
|
1278
|
+
# @param PeerName: 合约安装节点名称,可以在通道详情中获取该通道上的节点名称
|
1279
|
+
# @type PeerName: String
|
1280
|
+
# @param BeginTime: 日志开始时间,如"2020-11-24 19:49:25"
|
1281
|
+
# @type BeginTime: String
|
1282
|
+
# @param RowNum: 返回日志行数的最大值,系统设定该参数最大为1000,且一行日志的最大字节数是500,即最大返回50万个字节数的日志数据
|
1283
|
+
# @type RowNum: Integer
|
1284
|
+
|
1285
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :ChaincodeName, :ChaincodeVersion, :PeerName, :BeginTime, :RowNum
|
1286
|
+
|
1287
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, chaincodename=nil, chaincodeversion=nil, peername=nil, begintime=nil, rownum=nil)
|
1288
|
+
@Module = _module
|
1289
|
+
@Operation = operation
|
1290
|
+
@ClusterId = clusterid
|
1291
|
+
@GroupName = groupname
|
1292
|
+
@ChaincodeName = chaincodename
|
1293
|
+
@ChaincodeVersion = chaincodeversion
|
1294
|
+
@PeerName = peername
|
1295
|
+
@BeginTime = begintime
|
1296
|
+
@RowNum = rownum
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
def deserialize(params)
|
1300
|
+
@Module = params['Module']
|
1301
|
+
@Operation = params['Operation']
|
1302
|
+
@ClusterId = params['ClusterId']
|
1303
|
+
@GroupName = params['GroupName']
|
1304
|
+
@ChaincodeName = params['ChaincodeName']
|
1305
|
+
@ChaincodeVersion = params['ChaincodeVersion']
|
1306
|
+
@PeerName = params['PeerName']
|
1307
|
+
@BeginTime = params['BeginTime']
|
1308
|
+
@RowNum = params['RowNum']
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
# GetChaincodeLogForUser返回参数结构体
|
1313
|
+
class GetChaincodeLogForUserResponse < TencentCloud::Common::AbstractModel
|
1314
|
+
# @param TotalCount: 返回日志总行数,不会超过入参的RowNum
|
1315
|
+
# @type TotalCount: Integer
|
1316
|
+
# @param ChaincodeLogList: 日志列表
|
1317
|
+
# @type ChaincodeLogList: Array
|
1318
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1319
|
+
# @type RequestId: String
|
1320
|
+
|
1321
|
+
attr_accessor :TotalCount, :ChaincodeLogList, :RequestId
|
1322
|
+
|
1323
|
+
def initialize(totalcount=nil, chaincodeloglist=nil, requestid=nil)
|
1324
|
+
@TotalCount = totalcount
|
1325
|
+
@ChaincodeLogList = chaincodeloglist
|
1326
|
+
@RequestId = requestid
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
def deserialize(params)
|
1330
|
+
@TotalCount = params['TotalCount']
|
1331
|
+
unless params['ChaincodeLogList'].nil?
|
1332
|
+
@ChaincodeLogList = []
|
1333
|
+
params['ChaincodeLogList'].each do |i|
|
1334
|
+
logdetailforuser_tmp = LogDetailForUser.new
|
1335
|
+
logdetailforuser_tmp.deserialize(i)
|
1336
|
+
@ChaincodeLogList << logdetailforuser_tmp
|
1337
|
+
end
|
1338
|
+
end
|
1339
|
+
@RequestId = params['RequestId']
|
1340
|
+
end
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# GetChannelListForUser请求参数结构体
|
1344
|
+
class GetChannelListForUserRequest < TencentCloud::Common::AbstractModel
|
1345
|
+
# @param Module: 模块名,本接口取值:channel_mng
|
1346
|
+
# @type Module: String
|
1347
|
+
# @param Operation: 操作名,本接口取值:channel_list_for_user
|
1348
|
+
# @type Operation: String
|
1349
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1350
|
+
# @type ClusterId: String
|
1351
|
+
# @param GroupName: 组织名称
|
1352
|
+
# @type GroupName: String
|
1353
|
+
# @param Limit: 返回数据项数,本接口默认取值:10,上限取值:20
|
1354
|
+
# @type Limit: Integer
|
1355
|
+
# @param Offset: 返回数据起始偏移,本接口默认取值:0
|
1356
|
+
# @type Offset: Integer
|
1357
|
+
|
1358
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :Limit, :Offset
|
1359
|
+
|
1360
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, limit=nil, offset=nil)
|
1361
|
+
@Module = _module
|
1362
|
+
@Operation = operation
|
1363
|
+
@ClusterId = clusterid
|
1364
|
+
@GroupName = groupname
|
1365
|
+
@Limit = limit
|
1366
|
+
@Offset = offset
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
def deserialize(params)
|
1370
|
+
@Module = params['Module']
|
1371
|
+
@Operation = params['Operation']
|
1372
|
+
@ClusterId = params['ClusterId']
|
1373
|
+
@GroupName = params['GroupName']
|
1374
|
+
@Limit = params['Limit']
|
1375
|
+
@Offset = params['Offset']
|
1376
|
+
end
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# GetChannelListForUser返回参数结构体
|
1380
|
+
class GetChannelListForUserResponse < TencentCloud::Common::AbstractModel
|
1381
|
+
# @param TotalCount: 通道总数量
|
1382
|
+
# @type TotalCount: Integer
|
1383
|
+
# @param ChannelList: 通道列表
|
1384
|
+
# @type ChannelList: Array
|
1385
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1386
|
+
# @type RequestId: String
|
1387
|
+
|
1388
|
+
attr_accessor :TotalCount, :ChannelList, :RequestId
|
1389
|
+
|
1390
|
+
def initialize(totalcount=nil, channellist=nil, requestid=nil)
|
1391
|
+
@TotalCount = totalcount
|
1392
|
+
@ChannelList = channellist
|
1393
|
+
@RequestId = requestid
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
def deserialize(params)
|
1397
|
+
@TotalCount = params['TotalCount']
|
1398
|
+
unless params['ChannelList'].nil?
|
1399
|
+
@ChannelList = []
|
1400
|
+
params['ChannelList'].each do |i|
|
1401
|
+
channeldetailforuser_tmp = ChannelDetailForUser.new
|
1402
|
+
channeldetailforuser_tmp.deserialize(i)
|
1403
|
+
@ChannelList << channeldetailforuser_tmp
|
1404
|
+
end
|
1405
|
+
end
|
1406
|
+
@RequestId = params['RequestId']
|
1407
|
+
end
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
# GetClusterListForUser请求参数结构体
|
1411
|
+
class GetClusterListForUserRequest < TencentCloud::Common::AbstractModel
|
1412
|
+
# @param Module: 模块名,本接口取值:cluster_mng
|
1413
|
+
# @type Module: String
|
1414
|
+
# @param Operation: 操作名,本接口取值:cluster_list_for_user
|
1415
|
+
# @type Operation: String
|
1416
|
+
# @param Limit: 返回数据项数,本接口默认取值:10,上限取值:20
|
1417
|
+
# @type Limit: Integer
|
1418
|
+
# @param Offset: 返回数据起始偏移,本接口默认取值:0
|
1419
|
+
# @type Offset: Integer
|
1420
|
+
|
1421
|
+
attr_accessor :Module, :Operation, :Limit, :Offset
|
1422
|
+
|
1423
|
+
def initialize(_module=nil, operation=nil, limit=nil, offset=nil)
|
1424
|
+
@Module = _module
|
1425
|
+
@Operation = operation
|
1426
|
+
@Limit = limit
|
1427
|
+
@Offset = offset
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
def deserialize(params)
|
1431
|
+
@Module = params['Module']
|
1432
|
+
@Operation = params['Operation']
|
1433
|
+
@Limit = params['Limit']
|
1434
|
+
@Offset = params['Offset']
|
1435
|
+
end
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
# GetClusterListForUser返回参数结构体
|
1439
|
+
class GetClusterListForUserResponse < TencentCloud::Common::AbstractModel
|
1440
|
+
# @param TotalCount: 网络总数量
|
1441
|
+
# @type TotalCount: Integer
|
1442
|
+
# @param ClusterList: 网络列表
|
1443
|
+
# @type ClusterList: Array
|
1444
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1445
|
+
# @type RequestId: String
|
1446
|
+
|
1447
|
+
attr_accessor :TotalCount, :ClusterList, :RequestId
|
1448
|
+
|
1449
|
+
def initialize(totalcount=nil, clusterlist=nil, requestid=nil)
|
1450
|
+
@TotalCount = totalcount
|
1451
|
+
@ClusterList = clusterlist
|
1452
|
+
@RequestId = requestid
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
def deserialize(params)
|
1456
|
+
@TotalCount = params['TotalCount']
|
1457
|
+
unless params['ClusterList'].nil?
|
1458
|
+
@ClusterList = []
|
1459
|
+
params['ClusterList'].each do |i|
|
1460
|
+
clusterdetailforuser_tmp = ClusterDetailForUser.new
|
1461
|
+
clusterdetailforuser_tmp.deserialize(i)
|
1462
|
+
@ClusterList << clusterdetailforuser_tmp
|
1463
|
+
end
|
1464
|
+
end
|
1465
|
+
@RequestId = params['RequestId']
|
1466
|
+
end
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# GetClusterSummary请求参数结构体
|
1470
|
+
class GetClusterSummaryRequest < TencentCloud::Common::AbstractModel
|
1471
|
+
# @param Module: 模块名称,固定字段:cluster_mng
|
1472
|
+
# @type Module: String
|
1473
|
+
# @param Operation: 操作名称,固定字段:cluster_summary
|
1474
|
+
# @type Operation: String
|
1475
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1476
|
+
# @type ClusterId: String
|
1477
|
+
# @param GroupId: 组织ID,固定字段:0
|
1478
|
+
# @type GroupId: Integer
|
1479
|
+
# @param GroupName: 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
|
1480
|
+
# @type GroupName: String
|
1481
|
+
|
1482
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupId, :GroupName
|
1483
|
+
|
1484
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupid=nil, groupname=nil)
|
1485
|
+
@Module = _module
|
1486
|
+
@Operation = operation
|
1487
|
+
@ClusterId = clusterid
|
1488
|
+
@GroupId = groupid
|
1489
|
+
@GroupName = groupname
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
def deserialize(params)
|
1493
|
+
@Module = params['Module']
|
1494
|
+
@Operation = params['Operation']
|
1495
|
+
@ClusterId = params['ClusterId']
|
1496
|
+
@GroupId = params['GroupId']
|
1497
|
+
@GroupName = params['GroupName']
|
1498
|
+
end
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
# GetClusterSummary返回参数结构体
|
1502
|
+
class GetClusterSummaryResponse < TencentCloud::Common::AbstractModel
|
1503
|
+
# @param TotalChannelCount: 网络通道总数量
|
1504
|
+
# @type TotalChannelCount: Integer
|
1505
|
+
# @param MyChannelCount: 当前组织创建的通道数量
|
1506
|
+
# @type MyChannelCount: Integer
|
1507
|
+
# @param JoinChannelCount: 当前组织加入的通道数量
|
1508
|
+
# @type JoinChannelCount: Integer
|
1509
|
+
# @param TotalPeerCount: 网络节点总数量
|
1510
|
+
# @type TotalPeerCount: Integer
|
1511
|
+
# @param MyPeerCount: 当前组织创建的节点数量
|
1512
|
+
# @type MyPeerCount: Integer
|
1513
|
+
# @param OrderCount: 其他组织创建的节点数量
|
1514
|
+
# @type OrderCount: Integer
|
1515
|
+
# @param TotalGroupCount: 网络组织总数量
|
1516
|
+
# @type TotalGroupCount: Integer
|
1517
|
+
# @param MyGroupCount: 当前组织创建的组织数量
|
1518
|
+
# @type MyGroupCount: Integer
|
1519
|
+
# @param TotalChaincodeCount: 网络智能合约总数量
|
1520
|
+
# @type TotalChaincodeCount: Integer
|
1521
|
+
# @param RecentChaincodeCount: 最近7天发起的智能合约数量
|
1522
|
+
# @type RecentChaincodeCount: Integer
|
1523
|
+
# @param MyChaincodeCount: 当前组织发起的智能合约数量
|
1524
|
+
# @type MyChaincodeCount: Integer
|
1525
|
+
# @param TotalCertCount: 当前组织的证书总数量
|
1526
|
+
# @type TotalCertCount: Integer
|
1527
|
+
# @param TlsCertCount: 颁发给当前组织的证书数量
|
1528
|
+
# @type TlsCertCount: Integer
|
1529
|
+
# @param PeerCertCount: 网络背书节点证书数量
|
1530
|
+
# @type PeerCertCount: Integer
|
1531
|
+
# @param ClientCertCount: 当前组织业务证书数量
|
1532
|
+
# @type ClientCertCount: Integer
|
1533
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1534
|
+
# @type RequestId: String
|
1535
|
+
|
1536
|
+
attr_accessor :TotalChannelCount, :MyChannelCount, :JoinChannelCount, :TotalPeerCount, :MyPeerCount, :OrderCount, :TotalGroupCount, :MyGroupCount, :TotalChaincodeCount, :RecentChaincodeCount, :MyChaincodeCount, :TotalCertCount, :TlsCertCount, :PeerCertCount, :ClientCertCount, :RequestId
|
1537
|
+
|
1538
|
+
def initialize(totalchannelcount=nil, mychannelcount=nil, joinchannelcount=nil, totalpeercount=nil, mypeercount=nil, ordercount=nil, totalgroupcount=nil, mygroupcount=nil, totalchaincodecount=nil, recentchaincodecount=nil, mychaincodecount=nil, totalcertcount=nil, tlscertcount=nil, peercertcount=nil, clientcertcount=nil, requestid=nil)
|
1539
|
+
@TotalChannelCount = totalchannelcount
|
1540
|
+
@MyChannelCount = mychannelcount
|
1541
|
+
@JoinChannelCount = joinchannelcount
|
1542
|
+
@TotalPeerCount = totalpeercount
|
1543
|
+
@MyPeerCount = mypeercount
|
1544
|
+
@OrderCount = ordercount
|
1545
|
+
@TotalGroupCount = totalgroupcount
|
1546
|
+
@MyGroupCount = mygroupcount
|
1547
|
+
@TotalChaincodeCount = totalchaincodecount
|
1548
|
+
@RecentChaincodeCount = recentchaincodecount
|
1549
|
+
@MyChaincodeCount = mychaincodecount
|
1550
|
+
@TotalCertCount = totalcertcount
|
1551
|
+
@TlsCertCount = tlscertcount
|
1552
|
+
@PeerCertCount = peercertcount
|
1553
|
+
@ClientCertCount = clientcertcount
|
1554
|
+
@RequestId = requestid
|
1555
|
+
end
|
1556
|
+
|
1557
|
+
def deserialize(params)
|
1558
|
+
@TotalChannelCount = params['TotalChannelCount']
|
1559
|
+
@MyChannelCount = params['MyChannelCount']
|
1560
|
+
@JoinChannelCount = params['JoinChannelCount']
|
1561
|
+
@TotalPeerCount = params['TotalPeerCount']
|
1562
|
+
@MyPeerCount = params['MyPeerCount']
|
1563
|
+
@OrderCount = params['OrderCount']
|
1564
|
+
@TotalGroupCount = params['TotalGroupCount']
|
1565
|
+
@MyGroupCount = params['MyGroupCount']
|
1566
|
+
@TotalChaincodeCount = params['TotalChaincodeCount']
|
1567
|
+
@RecentChaincodeCount = params['RecentChaincodeCount']
|
1568
|
+
@MyChaincodeCount = params['MyChaincodeCount']
|
1569
|
+
@TotalCertCount = params['TotalCertCount']
|
1570
|
+
@TlsCertCount = params['TlsCertCount']
|
1571
|
+
@PeerCertCount = params['PeerCertCount']
|
1572
|
+
@ClientCertCount = params['ClientCertCount']
|
1573
|
+
@RequestId = params['RequestId']
|
1574
|
+
end
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
# GetInvokeTx请求参数结构体
|
1578
|
+
class GetInvokeTxRequest < TencentCloud::Common::AbstractModel
|
1579
|
+
# @param Module: 模块名,固定字段:transaction
|
1580
|
+
# @type Module: String
|
1581
|
+
# @param Operation: 操作名,固定字段:query_txid
|
1582
|
+
# @type Operation: String
|
1583
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1584
|
+
# @type ClusterId: String
|
1585
|
+
# @param ChannelName: 业务所属通道名称,可在通道详情或列表中获取
|
1586
|
+
# @type ChannelName: String
|
1587
|
+
# @param PeerName: 执行该查询交易的节点名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称
|
1588
|
+
# @type PeerName: String
|
1589
|
+
# @param PeerGroup: 执行该查询交易的节点所属组织名称,可以在通道详情中获取该通道上的节点名称极其所属组织名称
|
1590
|
+
# @type PeerGroup: String
|
1591
|
+
# @param TxId: 交易ID
|
1592
|
+
# @type TxId: String
|
1593
|
+
# @param GroupName: 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
1594
|
+
# @type GroupName: String
|
1595
|
+
|
1596
|
+
attr_accessor :Module, :Operation, :ClusterId, :ChannelName, :PeerName, :PeerGroup, :TxId, :GroupName
|
1597
|
+
|
1598
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, channelname=nil, peername=nil, peergroup=nil, txid=nil, groupname=nil)
|
1599
|
+
@Module = _module
|
1600
|
+
@Operation = operation
|
1601
|
+
@ClusterId = clusterid
|
1602
|
+
@ChannelName = channelname
|
1603
|
+
@PeerName = peername
|
1604
|
+
@PeerGroup = peergroup
|
1605
|
+
@TxId = txid
|
1606
|
+
@GroupName = groupname
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
def deserialize(params)
|
1610
|
+
@Module = params['Module']
|
1611
|
+
@Operation = params['Operation']
|
1612
|
+
@ClusterId = params['ClusterId']
|
1613
|
+
@ChannelName = params['ChannelName']
|
1614
|
+
@PeerName = params['PeerName']
|
1615
|
+
@PeerGroup = params['PeerGroup']
|
1616
|
+
@TxId = params['TxId']
|
1617
|
+
@GroupName = params['GroupName']
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
# GetInvokeTx返回参数结构体
|
1622
|
+
class GetInvokeTxResponse < TencentCloud::Common::AbstractModel
|
1623
|
+
# @param TxValidationCode: 交易执行状态码
|
1624
|
+
# @type TxValidationCode: Integer
|
1625
|
+
# @param TxValidationMsg: 交易执行消息
|
1626
|
+
# @type TxValidationMsg: String
|
1627
|
+
# @param BlockId: 交易所在区块ID
|
1628
|
+
# @type BlockId: Integer
|
1629
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1630
|
+
# @type RequestId: String
|
1631
|
+
|
1632
|
+
attr_accessor :TxValidationCode, :TxValidationMsg, :BlockId, :RequestId
|
1633
|
+
|
1634
|
+
def initialize(txvalidationcode=nil, txvalidationmsg=nil, blockid=nil, requestid=nil)
|
1635
|
+
@TxValidationCode = txvalidationcode
|
1636
|
+
@TxValidationMsg = txvalidationmsg
|
1637
|
+
@BlockId = blockid
|
1638
|
+
@RequestId = requestid
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
def deserialize(params)
|
1642
|
+
@TxValidationCode = params['TxValidationCode']
|
1643
|
+
@TxValidationMsg = params['TxValidationMsg']
|
1644
|
+
@BlockId = params['BlockId']
|
1645
|
+
@RequestId = params['RequestId']
|
1646
|
+
end
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# GetLatesdTransactionList请求参数结构体
|
1650
|
+
class GetLatesdTransactionListRequest < TencentCloud::Common::AbstractModel
|
1651
|
+
# @param Module: 模块名称,固定字段:transaction
|
1652
|
+
# @type Module: String
|
1653
|
+
# @param Operation: 操作名称,固定字段:latest_transaction_list
|
1654
|
+
# @type Operation: String
|
1655
|
+
# @param GroupId: 组织ID,固定字段:0
|
1656
|
+
# @type GroupId: Integer
|
1657
|
+
# @param ChannelId: 通道ID,固定字段:0
|
1658
|
+
# @type ChannelId: Integer
|
1659
|
+
# @param LatestBlockNumber: 获取的最新交易的区块数量,取值范围1~5
|
1660
|
+
# @type LatestBlockNumber: Integer
|
1661
|
+
# @param GroupName: 调用接口的组织名称,可以在组织管理列表中获取当前组织的名称
|
1662
|
+
# @type GroupName: String
|
1663
|
+
# @param ChannelName: 需要查询的通道名称,可在通道详情或列表中获取
|
1664
|
+
# @type ChannelName: String
|
1665
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1666
|
+
# @type ClusterId: String
|
1667
|
+
# @param Offset: 需要获取的起始交易偏移
|
1668
|
+
# @type Offset: Integer
|
1669
|
+
# @param Limit: 需要获取的交易数量
|
1670
|
+
# @type Limit: Integer
|
1671
|
+
|
1672
|
+
attr_accessor :Module, :Operation, :GroupId, :ChannelId, :LatestBlockNumber, :GroupName, :ChannelName, :ClusterId, :Offset, :Limit
|
1673
|
+
|
1674
|
+
def initialize(_module=nil, operation=nil, groupid=nil, channelid=nil, latestblocknumber=nil, groupname=nil, channelname=nil, clusterid=nil, offset=nil, limit=nil)
|
1675
|
+
@Module = _module
|
1676
|
+
@Operation = operation
|
1677
|
+
@GroupId = groupid
|
1678
|
+
@ChannelId = channelid
|
1679
|
+
@LatestBlockNumber = latestblocknumber
|
1680
|
+
@GroupName = groupname
|
1681
|
+
@ChannelName = channelname
|
1682
|
+
@ClusterId = clusterid
|
1683
|
+
@Offset = offset
|
1684
|
+
@Limit = limit
|
1685
|
+
end
|
1686
|
+
|
1687
|
+
def deserialize(params)
|
1688
|
+
@Module = params['Module']
|
1689
|
+
@Operation = params['Operation']
|
1690
|
+
@GroupId = params['GroupId']
|
1691
|
+
@ChannelId = params['ChannelId']
|
1692
|
+
@LatestBlockNumber = params['LatestBlockNumber']
|
1693
|
+
@GroupName = params['GroupName']
|
1694
|
+
@ChannelName = params['ChannelName']
|
1695
|
+
@ClusterId = params['ClusterId']
|
1696
|
+
@Offset = params['Offset']
|
1697
|
+
@Limit = params['Limit']
|
1698
|
+
end
|
1699
|
+
end
|
1700
|
+
|
1701
|
+
# GetLatesdTransactionList返回参数结构体
|
1702
|
+
class GetLatesdTransactionListResponse < TencentCloud::Common::AbstractModel
|
1703
|
+
# @param TotalCount: 交易总数量
|
1704
|
+
# @type TotalCount: Integer
|
1705
|
+
# @param TransactionList: 交易列表
|
1706
|
+
# @type TransactionList: Array
|
1707
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1708
|
+
# @type RequestId: String
|
1709
|
+
|
1710
|
+
attr_accessor :TotalCount, :TransactionList, :RequestId
|
1711
|
+
|
1712
|
+
def initialize(totalcount=nil, transactionlist=nil, requestid=nil)
|
1713
|
+
@TotalCount = totalcount
|
1714
|
+
@TransactionList = transactionlist
|
1715
|
+
@RequestId = requestid
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
def deserialize(params)
|
1719
|
+
@TotalCount = params['TotalCount']
|
1720
|
+
unless params['TransactionList'].nil?
|
1721
|
+
@TransactionList = []
|
1722
|
+
params['TransactionList'].each do |i|
|
1723
|
+
transactionitem_tmp = TransactionItem.new
|
1724
|
+
transactionitem_tmp.deserialize(i)
|
1725
|
+
@TransactionList << transactionitem_tmp
|
1726
|
+
end
|
1727
|
+
end
|
1728
|
+
@RequestId = params['RequestId']
|
1729
|
+
end
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
# GetPeerLogForUser请求参数结构体
|
1733
|
+
class GetPeerLogForUserRequest < TencentCloud::Common::AbstractModel
|
1734
|
+
# @param Module: 模块名,本接口取值:peer_mng
|
1735
|
+
# @type Module: String
|
1736
|
+
# @param Operation: 操作名,本接口取值:peer_log_for_user
|
1737
|
+
# @type Operation: String
|
1738
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1739
|
+
# @type ClusterId: String
|
1740
|
+
# @param GroupName: 调用合约的组织名称
|
1741
|
+
# @type GroupName: String
|
1742
|
+
# @param PeerName: 节点名称
|
1743
|
+
# @type PeerName: String
|
1744
|
+
# @param BeginTime: 日志开始时间,如"2020-11-24 19:49:25"
|
1745
|
+
# @type BeginTime: String
|
1746
|
+
# @param RowNum: 返回日志行数的最大值,系统设定该参数最大为1000,且一行日志的最大字节数是500,即最大返回50万个字节数的日志数据
|
1747
|
+
# @type RowNum: Integer
|
1748
|
+
|
1749
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :PeerName, :BeginTime, :RowNum
|
1750
|
+
|
1751
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, peername=nil, begintime=nil, rownum=nil)
|
1752
|
+
@Module = _module
|
1753
|
+
@Operation = operation
|
1754
|
+
@ClusterId = clusterid
|
1755
|
+
@GroupName = groupname
|
1756
|
+
@PeerName = peername
|
1757
|
+
@BeginTime = begintime
|
1758
|
+
@RowNum = rownum
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
def deserialize(params)
|
1762
|
+
@Module = params['Module']
|
1763
|
+
@Operation = params['Operation']
|
1764
|
+
@ClusterId = params['ClusterId']
|
1765
|
+
@GroupName = params['GroupName']
|
1766
|
+
@PeerName = params['PeerName']
|
1767
|
+
@BeginTime = params['BeginTime']
|
1768
|
+
@RowNum = params['RowNum']
|
1769
|
+
end
|
1770
|
+
end
|
1771
|
+
|
1772
|
+
# GetPeerLogForUser返回参数结构体
|
1773
|
+
class GetPeerLogForUserResponse < TencentCloud::Common::AbstractModel
|
1774
|
+
# @param TotalCount: 返回日志总行数,不会超过入参的RowNum
|
1775
|
+
# @type TotalCount: Integer
|
1776
|
+
# @param PeerLogList: 日志列表
|
1777
|
+
# @type PeerLogList: Array
|
1778
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1779
|
+
# @type RequestId: String
|
1780
|
+
|
1781
|
+
attr_accessor :TotalCount, :PeerLogList, :RequestId
|
1782
|
+
|
1783
|
+
def initialize(totalcount=nil, peerloglist=nil, requestid=nil)
|
1784
|
+
@TotalCount = totalcount
|
1785
|
+
@PeerLogList = peerloglist
|
1786
|
+
@RequestId = requestid
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
def deserialize(params)
|
1790
|
+
@TotalCount = params['TotalCount']
|
1791
|
+
unless params['PeerLogList'].nil?
|
1792
|
+
@PeerLogList = []
|
1793
|
+
params['PeerLogList'].each do |i|
|
1794
|
+
logdetailforuser_tmp = LogDetailForUser.new
|
1795
|
+
logdetailforuser_tmp.deserialize(i)
|
1796
|
+
@PeerLogList << logdetailforuser_tmp
|
1797
|
+
end
|
1798
|
+
end
|
1799
|
+
@RequestId = params['RequestId']
|
1800
|
+
end
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
# GetTransByHashHandler请求参数结构体
|
1804
|
+
class GetTransByHashHandlerRequest < TencentCloud::Common::AbstractModel
|
1805
|
+
# @param Module: 模块名,固定字段:transaction
|
1806
|
+
# @type Module: String
|
1807
|
+
# @param Operation: 操作名,固定字段:get_trans_by_hash
|
1808
|
+
# @type Operation: String
|
1809
|
+
# @param GroupPk: 群组编号
|
1810
|
+
# @type GroupPk: String
|
1811
|
+
# @param TransHash: 交易哈希
|
1812
|
+
# @type TransHash: String
|
1813
|
+
|
1814
|
+
attr_accessor :Module, :Operation, :GroupPk, :TransHash
|
1815
|
+
|
1816
|
+
def initialize(_module=nil, operation=nil, grouppk=nil, transhash=nil)
|
1817
|
+
@Module = _module
|
1818
|
+
@Operation = operation
|
1819
|
+
@GroupPk = grouppk
|
1820
|
+
@TransHash = transhash
|
1821
|
+
end
|
1822
|
+
|
1823
|
+
def deserialize(params)
|
1824
|
+
@Module = params['Module']
|
1825
|
+
@Operation = params['Operation']
|
1826
|
+
@GroupPk = params['GroupPk']
|
1827
|
+
@TransHash = params['TransHash']
|
1828
|
+
end
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
# GetTransByHashHandler返回参数结构体
|
1832
|
+
class GetTransByHashHandlerResponse < TencentCloud::Common::AbstractModel
|
1833
|
+
# @param TransactionJson: 交易信息json字符串
|
1834
|
+
# @type TransactionJson: String
|
1835
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1836
|
+
# @type RequestId: String
|
1837
|
+
|
1838
|
+
attr_accessor :TransactionJson, :RequestId
|
1839
|
+
|
1840
|
+
def initialize(transactionjson=nil, requestid=nil)
|
1841
|
+
@TransactionJson = transactionjson
|
1842
|
+
@RequestId = requestid
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
def deserialize(params)
|
1846
|
+
@TransactionJson = params['TransactionJson']
|
1847
|
+
@RequestId = params['RequestId']
|
1848
|
+
end
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
# GetTransListHandler请求参数结构体
|
1852
|
+
class GetTransListHandlerRequest < TencentCloud::Common::AbstractModel
|
1853
|
+
# @param Module: 模块名,固定字段:transaction
|
1854
|
+
# @type Module: String
|
1855
|
+
# @param Operation: 操作名,固定字段:get_trans_list
|
1856
|
+
# @type Operation: String
|
1857
|
+
# @param Offset: 记录偏移量
|
1858
|
+
# @type Offset: Integer
|
1859
|
+
# @param Limit: 每页记录数
|
1860
|
+
# @type Limit: Integer
|
1861
|
+
# @param GroupPk: 群组编号
|
1862
|
+
# @type GroupPk: String
|
1863
|
+
# @param TransHash: 交易哈希
|
1864
|
+
# @type TransHash: String
|
1865
|
+
|
1866
|
+
attr_accessor :Module, :Operation, :Offset, :Limit, :GroupPk, :TransHash
|
1867
|
+
|
1868
|
+
def initialize(_module=nil, operation=nil, offset=nil, limit=nil, grouppk=nil, transhash=nil)
|
1869
|
+
@Module = _module
|
1870
|
+
@Operation = operation
|
1871
|
+
@Offset = offset
|
1872
|
+
@Limit = limit
|
1873
|
+
@GroupPk = grouppk
|
1874
|
+
@TransHash = transhash
|
1875
|
+
end
|
1876
|
+
|
1877
|
+
def deserialize(params)
|
1878
|
+
@Module = params['Module']
|
1879
|
+
@Operation = params['Operation']
|
1880
|
+
@Offset = params['Offset']
|
1881
|
+
@Limit = params['Limit']
|
1882
|
+
@GroupPk = params['GroupPk']
|
1883
|
+
@TransHash = params['TransHash']
|
1884
|
+
end
|
1885
|
+
end
|
1886
|
+
|
1887
|
+
# GetTransListHandler返回参数结构体
|
1888
|
+
class GetTransListHandlerResponse < TencentCloud::Common::AbstractModel
|
1889
|
+
# @param TotalCount: 总记录数
|
1890
|
+
# @type TotalCount: Integer
|
1891
|
+
# @param GroupPk: 当前群组编号
|
1892
|
+
# @type GroupPk: String
|
1893
|
+
# @param List: 返回数据列表
|
1894
|
+
# @type List: Array
|
1895
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1896
|
+
# @type RequestId: String
|
1897
|
+
|
1898
|
+
attr_accessor :TotalCount, :GroupPk, :List, :RequestId
|
1899
|
+
|
1900
|
+
def initialize(totalcount=nil, grouppk=nil, list=nil, requestid=nil)
|
1901
|
+
@TotalCount = totalcount
|
1902
|
+
@GroupPk = grouppk
|
1903
|
+
@List = list
|
1904
|
+
@RequestId = requestid
|
1905
|
+
end
|
1906
|
+
|
1907
|
+
def deserialize(params)
|
1908
|
+
@TotalCount = params['TotalCount']
|
1909
|
+
@GroupPk = params['GroupPk']
|
1910
|
+
unless params['List'].nil?
|
1911
|
+
@List = []
|
1912
|
+
params['List'].each do |i|
|
1913
|
+
bcostransinfo_tmp = BcosTransInfo.new
|
1914
|
+
bcostransinfo_tmp.deserialize(i)
|
1915
|
+
@List << bcostransinfo_tmp
|
1916
|
+
end
|
1917
|
+
end
|
1918
|
+
@RequestId = params['RequestId']
|
1919
|
+
end
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
# GetTransactionDetailForUser请求参数结构体
|
1923
|
+
class GetTransactionDetailForUserRequest < TencentCloud::Common::AbstractModel
|
1924
|
+
# @param Module: 模块名,固定字段:transaction
|
1925
|
+
# @type Module: String
|
1926
|
+
# @param Operation: 操作名,固定字段:transaction_detail_for_user
|
1927
|
+
# @type Operation: String
|
1928
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
1929
|
+
# @type ClusterId: String
|
1930
|
+
# @param GroupName: 参与交易的组织名称,可以在组织管理列表中获取当前组织的名称
|
1931
|
+
# @type GroupName: String
|
1932
|
+
# @param ChannelName: 业务所属通道名称,可在通道详情或列表中获取
|
1933
|
+
# @type ChannelName: String
|
1934
|
+
# @param BlockId: 区块ID,通过GetInvokeTx接口可以获取交易所在的区块ID
|
1935
|
+
# @type BlockId: Integer
|
1936
|
+
# @param TransactionId: 交易ID,需要查询的详情的交易ID
|
1937
|
+
# @type TransactionId: String
|
1938
|
+
|
1939
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :ChannelName, :BlockId, :TransactionId
|
1940
|
+
|
1941
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, channelname=nil, blockid=nil, transactionid=nil)
|
1942
|
+
@Module = _module
|
1943
|
+
@Operation = operation
|
1944
|
+
@ClusterId = clusterid
|
1945
|
+
@GroupName = groupname
|
1946
|
+
@ChannelName = channelname
|
1947
|
+
@BlockId = blockid
|
1948
|
+
@TransactionId = transactionid
|
1949
|
+
end
|
1950
|
+
|
1951
|
+
def deserialize(params)
|
1952
|
+
@Module = params['Module']
|
1953
|
+
@Operation = params['Operation']
|
1954
|
+
@ClusterId = params['ClusterId']
|
1955
|
+
@GroupName = params['GroupName']
|
1956
|
+
@ChannelName = params['ChannelName']
|
1957
|
+
@BlockId = params['BlockId']
|
1958
|
+
@TransactionId = params['TransactionId']
|
1959
|
+
end
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
# GetTransactionDetailForUser返回参数结构体
|
1963
|
+
class GetTransactionDetailForUserResponse < TencentCloud::Common::AbstractModel
|
1964
|
+
# @param TransactionId: 交易ID
|
1965
|
+
# @type TransactionId: String
|
1966
|
+
# @param TransactionHash: 交易hash
|
1967
|
+
# @type TransactionHash: String
|
1968
|
+
# @param CreateOrgName: 创建交易的组织名
|
1969
|
+
# @type CreateOrgName: String
|
1970
|
+
# @param TransactionType: 交易类型(普通交易和配置交易)
|
1971
|
+
# @type TransactionType: String
|
1972
|
+
# @param TransactionStatus: 交易状态
|
1973
|
+
# @type TransactionStatus: String
|
1974
|
+
# @param CreateTime: 交易创建时间
|
1975
|
+
# @type CreateTime: String
|
1976
|
+
# @param TransactionData: 交易数据
|
1977
|
+
# @type TransactionData: String
|
1978
|
+
# @param BlockId: 交易所在区块号
|
1979
|
+
# @type BlockId: Integer
|
1980
|
+
# @param BlockHash: 交易所在区块哈希
|
1981
|
+
# @type BlockHash: String
|
1982
|
+
# @param BlockHeight: 交易所在区块高度
|
1983
|
+
# @type BlockHeight: Integer
|
1984
|
+
# @param ChannelName: 通道名称
|
1985
|
+
# @type ChannelName: String
|
1986
|
+
# @param ContractName: 交易所在合约名称
|
1987
|
+
# @type ContractName: String
|
1988
|
+
# @param EndorserOrgList: 背书组织列表
|
1989
|
+
# @type EndorserOrgList: Array
|
1990
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1991
|
+
# @type RequestId: String
|
1992
|
+
|
1993
|
+
attr_accessor :TransactionId, :TransactionHash, :CreateOrgName, :TransactionType, :TransactionStatus, :CreateTime, :TransactionData, :BlockId, :BlockHash, :BlockHeight, :ChannelName, :ContractName, :EndorserOrgList, :RequestId
|
1994
|
+
|
1995
|
+
def initialize(transactionid=nil, transactionhash=nil, createorgname=nil, transactiontype=nil, transactionstatus=nil, createtime=nil, transactiondata=nil, blockid=nil, blockhash=nil, blockheight=nil, channelname=nil, contractname=nil, endorserorglist=nil, requestid=nil)
|
1996
|
+
@TransactionId = transactionid
|
1997
|
+
@TransactionHash = transactionhash
|
1998
|
+
@CreateOrgName = createorgname
|
1999
|
+
@TransactionType = transactiontype
|
2000
|
+
@TransactionStatus = transactionstatus
|
2001
|
+
@CreateTime = createtime
|
2002
|
+
@TransactionData = transactiondata
|
2003
|
+
@BlockId = blockid
|
2004
|
+
@BlockHash = blockhash
|
2005
|
+
@BlockHeight = blockheight
|
2006
|
+
@ChannelName = channelname
|
2007
|
+
@ContractName = contractname
|
2008
|
+
@EndorserOrgList = endorserorglist
|
2009
|
+
@RequestId = requestid
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
def deserialize(params)
|
2013
|
+
@TransactionId = params['TransactionId']
|
2014
|
+
@TransactionHash = params['TransactionHash']
|
2015
|
+
@CreateOrgName = params['CreateOrgName']
|
2016
|
+
@TransactionType = params['TransactionType']
|
2017
|
+
@TransactionStatus = params['TransactionStatus']
|
2018
|
+
@CreateTime = params['CreateTime']
|
2019
|
+
@TransactionData = params['TransactionData']
|
2020
|
+
@BlockId = params['BlockId']
|
2021
|
+
@BlockHash = params['BlockHash']
|
2022
|
+
@BlockHeight = params['BlockHeight']
|
2023
|
+
@ChannelName = params['ChannelName']
|
2024
|
+
@ContractName = params['ContractName']
|
2025
|
+
unless params['EndorserOrgList'].nil?
|
2026
|
+
@EndorserOrgList = []
|
2027
|
+
params['EndorserOrgList'].each do |i|
|
2028
|
+
endorsergroup_tmp = EndorserGroup.new
|
2029
|
+
endorsergroup_tmp.deserialize(i)
|
2030
|
+
@EndorserOrgList << endorsergroup_tmp
|
2031
|
+
end
|
2032
|
+
end
|
2033
|
+
@RequestId = params['RequestId']
|
2034
|
+
end
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
# 组织详情信息
|
2038
|
+
class GroupDetailForUser < TencentCloud::Common::AbstractModel
|
2039
|
+
# @param GroupName: 组织名称
|
2040
|
+
# @type GroupName: String
|
2041
|
+
# @param GroupMSPId: 组织MSP Identity
|
2042
|
+
# @type GroupMSPId: String
|
2043
|
+
|
2044
|
+
attr_accessor :GroupName, :GroupMSPId
|
2045
|
+
|
2046
|
+
def initialize(groupname=nil, groupmspid=nil)
|
2047
|
+
@GroupName = groupname
|
2048
|
+
@GroupMSPId = groupmspid
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
def deserialize(params)
|
2052
|
+
@GroupName = params['GroupName']
|
2053
|
+
@GroupMSPId = params['GroupMSPId']
|
2054
|
+
end
|
2055
|
+
end
|
2056
|
+
|
2057
|
+
# InitializeChaincodeForUser请求参数结构体
|
2058
|
+
class InitializeChaincodeForUserRequest < TencentCloud::Common::AbstractModel
|
2059
|
+
# @param Module: 模块名,本接口取值:chaincode_mng
|
2060
|
+
# @type Module: String
|
2061
|
+
# @param Operation: 操作名,本接口取值:chaincode_init_for_user
|
2062
|
+
# @type Operation: String
|
2063
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
2064
|
+
# @type ClusterId: String
|
2065
|
+
# @param GroupName: 调用合约的组织名称
|
2066
|
+
# @type GroupName: String
|
2067
|
+
# @param ChaincodeName: 业务所属智能合约名称
|
2068
|
+
# @type ChaincodeName: String
|
2069
|
+
# @param ChaincodeVersion: 业务所属智能合约版本
|
2070
|
+
# @type ChaincodeVersion: String
|
2071
|
+
# @param ChannelName: 业务所属通道名称
|
2072
|
+
# @type ChannelName: String
|
2073
|
+
# @param PeerName: 合约实例化节点名称,可以在通道详情中获取该通道上的节点名称
|
2074
|
+
# @type PeerName: String
|
2075
|
+
# @param Args: 实例化的函数参数列表
|
2076
|
+
# @type Args: Array
|
2077
|
+
|
2078
|
+
attr_accessor :Module, :Operation, :ClusterId, :GroupName, :ChaincodeName, :ChaincodeVersion, :ChannelName, :PeerName, :Args
|
2079
|
+
|
2080
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, groupname=nil, chaincodename=nil, chaincodeversion=nil, channelname=nil, peername=nil, args=nil)
|
2081
|
+
@Module = _module
|
2082
|
+
@Operation = operation
|
2083
|
+
@ClusterId = clusterid
|
2084
|
+
@GroupName = groupname
|
2085
|
+
@ChaincodeName = chaincodename
|
2086
|
+
@ChaincodeVersion = chaincodeversion
|
2087
|
+
@ChannelName = channelname
|
2088
|
+
@PeerName = peername
|
2089
|
+
@Args = args
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
def deserialize(params)
|
2093
|
+
@Module = params['Module']
|
2094
|
+
@Operation = params['Operation']
|
2095
|
+
@ClusterId = params['ClusterId']
|
2096
|
+
@GroupName = params['GroupName']
|
2097
|
+
@ChaincodeName = params['ChaincodeName']
|
2098
|
+
@ChaincodeVersion = params['ChaincodeVersion']
|
2099
|
+
@ChannelName = params['ChannelName']
|
2100
|
+
@PeerName = params['PeerName']
|
2101
|
+
@Args = params['Args']
|
2102
|
+
end
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
# InitializeChaincodeForUser返回参数结构体
|
2106
|
+
class InitializeChaincodeForUserResponse < TencentCloud::Common::AbstractModel
|
2107
|
+
# @param TaskId: 实例化任务ID,用于查询实例化结果
|
2108
|
+
# @type TaskId: Integer
|
2109
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2110
|
+
# @type RequestId: String
|
2111
|
+
|
2112
|
+
attr_accessor :TaskId, :RequestId
|
2113
|
+
|
2114
|
+
def initialize(taskid=nil, requestid=nil)
|
2115
|
+
@TaskId = taskid
|
2116
|
+
@RequestId = requestid
|
2117
|
+
end
|
2118
|
+
|
2119
|
+
def deserialize(params)
|
2120
|
+
@TaskId = params['TaskId']
|
2121
|
+
@RequestId = params['RequestId']
|
2122
|
+
end
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
# InvokeBcosTrans请求参数结构体
|
2126
|
+
class InvokeBcosTransRequest < TencentCloud::Common::AbstractModel
|
2127
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2128
|
+
# @type ClusterId: String
|
2129
|
+
# @param GroupId: 群组编号,可在群组列表中获取
|
2130
|
+
# @type GroupId: Integer
|
2131
|
+
# @param ContractAddress: 合约地址,可在合约详情获取
|
2132
|
+
# @type ContractAddress: String
|
2133
|
+
# @param AbiInfo: 合约Abi的json数组格式的字符串,可在合约详情获取
|
2134
|
+
# @type AbiInfo: String
|
2135
|
+
# @param FuncName: 合约方法名
|
2136
|
+
# @type FuncName: String
|
2137
|
+
# @param SignUserId: 签名用户编号,可在私钥管理页面获取
|
2138
|
+
# @type SignUserId: String
|
2139
|
+
# @param FuncParam: 合约方法入参,json格式字符串
|
2140
|
+
# @type FuncParam: String
|
2141
|
+
|
2142
|
+
attr_accessor :ClusterId, :GroupId, :ContractAddress, :AbiInfo, :FuncName, :SignUserId, :FuncParam
|
2143
|
+
|
2144
|
+
def initialize(clusterid=nil, groupid=nil, contractaddress=nil, abiinfo=nil, funcname=nil, signuserid=nil, funcparam=nil)
|
2145
|
+
@ClusterId = clusterid
|
2146
|
+
@GroupId = groupid
|
2147
|
+
@ContractAddress = contractaddress
|
2148
|
+
@AbiInfo = abiinfo
|
2149
|
+
@FuncName = funcname
|
2150
|
+
@SignUserId = signuserid
|
2151
|
+
@FuncParam = funcparam
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
def deserialize(params)
|
2155
|
+
@ClusterId = params['ClusterId']
|
2156
|
+
@GroupId = params['GroupId']
|
2157
|
+
@ContractAddress = params['ContractAddress']
|
2158
|
+
@AbiInfo = params['AbiInfo']
|
2159
|
+
@FuncName = params['FuncName']
|
2160
|
+
@SignUserId = params['SignUserId']
|
2161
|
+
@FuncParam = params['FuncParam']
|
2162
|
+
end
|
2163
|
+
end
|
2164
|
+
|
2165
|
+
# InvokeBcosTrans返回参数结构体
|
2166
|
+
class InvokeBcosTransResponse < TencentCloud::Common::AbstractModel
|
2167
|
+
# @param TransactionRsp: 交易结果json字符串
|
2168
|
+
# @type TransactionRsp: String
|
2169
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2170
|
+
# @type RequestId: String
|
2171
|
+
|
2172
|
+
attr_accessor :TransactionRsp, :RequestId
|
2173
|
+
|
2174
|
+
def initialize(transactionrsp=nil, requestid=nil)
|
2175
|
+
@TransactionRsp = transactionrsp
|
2176
|
+
@RequestId = requestid
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
def deserialize(params)
|
2180
|
+
@TransactionRsp = params['TransactionRsp']
|
2181
|
+
@RequestId = params['RequestId']
|
2182
|
+
end
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
# InvokeChainMakerContract请求参数结构体
|
2186
|
+
class InvokeChainMakerContractRequest < TencentCloud::Common::AbstractModel
|
2187
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2188
|
+
# @type ClusterId: String
|
2189
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2190
|
+
# @type ChainId: String
|
2191
|
+
# @param ContractName: 合约名称,可在合约管理中获取
|
2192
|
+
# @type ContractName: String
|
2193
|
+
# @param FuncName: 合约方法名
|
2194
|
+
# @type FuncName: String
|
2195
|
+
# @param FuncParam: 合约方法入参,json格式字符串,key/value都是string类型的map
|
2196
|
+
# @type FuncParam: String
|
2197
|
+
# @param AsyncFlag: 是否异步执行,1为是,否则为0;如果异步执行,可使用返回值中的交易TxID查询执行结果
|
2198
|
+
# @type AsyncFlag: Integer
|
2199
|
+
|
2200
|
+
attr_accessor :ClusterId, :ChainId, :ContractName, :FuncName, :FuncParam, :AsyncFlag
|
2201
|
+
|
2202
|
+
def initialize(clusterid=nil, chainid=nil, contractname=nil, funcname=nil, funcparam=nil, asyncflag=nil)
|
2203
|
+
@ClusterId = clusterid
|
2204
|
+
@ChainId = chainid
|
2205
|
+
@ContractName = contractname
|
2206
|
+
@FuncName = funcname
|
2207
|
+
@FuncParam = funcparam
|
2208
|
+
@AsyncFlag = asyncflag
|
2209
|
+
end
|
2210
|
+
|
2211
|
+
def deserialize(params)
|
2212
|
+
@ClusterId = params['ClusterId']
|
2213
|
+
@ChainId = params['ChainId']
|
2214
|
+
@ContractName = params['ContractName']
|
2215
|
+
@FuncName = params['FuncName']
|
2216
|
+
@FuncParam = params['FuncParam']
|
2217
|
+
@AsyncFlag = params['AsyncFlag']
|
2218
|
+
end
|
2219
|
+
end
|
2220
|
+
|
2221
|
+
# InvokeChainMakerContract返回参数结构体
|
2222
|
+
class InvokeChainMakerContractResponse < TencentCloud::Common::AbstractModel
|
2223
|
+
# @param Result: 交易结果
|
2224
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2225
|
+
# @type Result: :class:`Tencentcloud::Tbaas.v20180416.models.ChainMakerContractResult`
|
2226
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2227
|
+
# @type RequestId: String
|
2228
|
+
|
2229
|
+
attr_accessor :Result, :RequestId
|
2230
|
+
|
2231
|
+
def initialize(result=nil, requestid=nil)
|
2232
|
+
@Result = result
|
2233
|
+
@RequestId = requestid
|
2234
|
+
end
|
2235
|
+
|
2236
|
+
def deserialize(params)
|
2237
|
+
unless params['Result'].nil?
|
2238
|
+
@Result = ChainMakerContractResult.new
|
2239
|
+
@Result.deserialize(params['Result'])
|
2240
|
+
end
|
2241
|
+
@RequestId = params['RequestId']
|
2242
|
+
end
|
2243
|
+
end
|
2244
|
+
|
2245
|
+
# Invoke请求参数结构体
|
2246
|
+
class InvokeRequest < TencentCloud::Common::AbstractModel
|
2247
|
+
# @param Module: 模块名,固定字段:transaction
|
2248
|
+
# @type Module: String
|
2249
|
+
# @param Operation: 操作名,固定字段:invoke
|
2250
|
+
# @type Operation: String
|
2251
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
2252
|
+
# @type ClusterId: String
|
2253
|
+
# @param ChaincodeName: 业务所属智能合约名称,可在智能合约详情或列表中获取
|
2254
|
+
# @type ChaincodeName: String
|
2255
|
+
# @param ChannelName: 业务所属通道名称,可在通道详情或列表中获取
|
2256
|
+
# @type ChannelName: String
|
2257
|
+
# @param Peers: 对该笔交易进行背书的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称及其所属组织名称
|
2258
|
+
# @type Peers: Array
|
2259
|
+
# @param FuncName: 该笔交易需要调用的智能合约中的函数名称
|
2260
|
+
# @type FuncName: String
|
2261
|
+
# @param GroupName: 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
2262
|
+
# @type GroupName: String
|
2263
|
+
# @param Args: 被调用的函数参数列表,参数列表大小总和要求小于2M
|
2264
|
+
# @type Args: Array
|
2265
|
+
# @param AsyncFlag: 同步调用标识,可选参数,值为0或者不传表示使用同步方法调用,调用后会等待交易执行后再返回执行结果;值为1时表示使用异步方式调用Invoke,执行后会立即返回交易对应的Txid,后续需要通过GetInvokeTx这个API查询该交易的执行结果。(对于逻辑较为简单的交易,可以使用同步模式;对于逻辑较为复杂的交易,建议使用异步模式,否则容易导致API因等待时间过长,返回等待超时)
|
2266
|
+
# @type AsyncFlag: Integer
|
2267
|
+
|
2268
|
+
attr_accessor :Module, :Operation, :ClusterId, :ChaincodeName, :ChannelName, :Peers, :FuncName, :GroupName, :Args, :AsyncFlag
|
2269
|
+
|
2270
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, chaincodename=nil, channelname=nil, peers=nil, funcname=nil, groupname=nil, args=nil, asyncflag=nil)
|
2271
|
+
@Module = _module
|
2272
|
+
@Operation = operation
|
2273
|
+
@ClusterId = clusterid
|
2274
|
+
@ChaincodeName = chaincodename
|
2275
|
+
@ChannelName = channelname
|
2276
|
+
@Peers = peers
|
2277
|
+
@FuncName = funcname
|
2278
|
+
@GroupName = groupname
|
2279
|
+
@Args = args
|
2280
|
+
@AsyncFlag = asyncflag
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
def deserialize(params)
|
2284
|
+
@Module = params['Module']
|
2285
|
+
@Operation = params['Operation']
|
2286
|
+
@ClusterId = params['ClusterId']
|
2287
|
+
@ChaincodeName = params['ChaincodeName']
|
2288
|
+
@ChannelName = params['ChannelName']
|
2289
|
+
unless params['Peers'].nil?
|
2290
|
+
@Peers = []
|
2291
|
+
params['Peers'].each do |i|
|
2292
|
+
peerset_tmp = PeerSet.new
|
2293
|
+
peerset_tmp.deserialize(i)
|
2294
|
+
@Peers << peerset_tmp
|
2295
|
+
end
|
2296
|
+
end
|
2297
|
+
@FuncName = params['FuncName']
|
2298
|
+
@GroupName = params['GroupName']
|
2299
|
+
@Args = params['Args']
|
2300
|
+
@AsyncFlag = params['AsyncFlag']
|
2301
|
+
end
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
# Invoke返回参数结构体
|
2305
|
+
class InvokeResponse < TencentCloud::Common::AbstractModel
|
2306
|
+
# @param Txid: 交易ID
|
2307
|
+
# @type Txid: String
|
2308
|
+
# @param Events: 交易执行结果
|
2309
|
+
# @type Events: String
|
2310
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2311
|
+
# @type RequestId: String
|
2312
|
+
|
2313
|
+
attr_accessor :Txid, :Events, :RequestId
|
2314
|
+
|
2315
|
+
def initialize(txid=nil, events=nil, requestid=nil)
|
2316
|
+
@Txid = txid
|
2317
|
+
@Events = events
|
2318
|
+
@RequestId = requestid
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
def deserialize(params)
|
2322
|
+
@Txid = params['Txid']
|
2323
|
+
@Events = params['Events']
|
2324
|
+
@RequestId = params['RequestId']
|
2325
|
+
end
|
2326
|
+
end
|
2327
|
+
|
2328
|
+
# 日志详情信息
|
2329
|
+
class LogDetailForUser < TencentCloud::Common::AbstractModel
|
2330
|
+
# @param LineNumber: 日志行号
|
2331
|
+
# @type LineNumber: Integer
|
2332
|
+
# @param LogMessage: 日志详情
|
2333
|
+
# @type LogMessage: String
|
2334
|
+
|
2335
|
+
attr_accessor :LineNumber, :LogMessage
|
2336
|
+
|
2337
|
+
def initialize(linenumber=nil, logmessage=nil)
|
2338
|
+
@LineNumber = linenumber
|
2339
|
+
@LogMessage = logmessage
|
2340
|
+
end
|
2341
|
+
|
2342
|
+
def deserialize(params)
|
2343
|
+
@LineNumber = params['LineNumber']
|
2344
|
+
@LogMessage = params['LogMessage']
|
2345
|
+
end
|
2346
|
+
end
|
2347
|
+
|
2348
|
+
# 节点详情信息
|
2349
|
+
class PeerDetailForUser < TencentCloud::Common::AbstractModel
|
2350
|
+
# @param PeerName: 节点名称
|
2351
|
+
# @type PeerName: String
|
2352
|
+
|
2353
|
+
attr_accessor :PeerName
|
2354
|
+
|
2355
|
+
def initialize(peername=nil)
|
2356
|
+
@PeerName = peername
|
2357
|
+
end
|
2358
|
+
|
2359
|
+
def deserialize(params)
|
2360
|
+
@PeerName = params['PeerName']
|
2361
|
+
end
|
2362
|
+
end
|
2363
|
+
|
2364
|
+
# PeerSet
|
2365
|
+
class PeerSet < TencentCloud::Common::AbstractModel
|
2366
|
+
# @param PeerName: 节点名称
|
2367
|
+
# @type PeerName: String
|
2368
|
+
# @param OrgName: 组织名称
|
2369
|
+
# @type OrgName: String
|
2370
|
+
|
2371
|
+
attr_accessor :PeerName, :OrgName
|
2372
|
+
|
2373
|
+
def initialize(peername=nil, orgname=nil)
|
2374
|
+
@PeerName = peername
|
2375
|
+
@OrgName = orgname
|
2376
|
+
end
|
2377
|
+
|
2378
|
+
def deserialize(params)
|
2379
|
+
@PeerName = params['PeerName']
|
2380
|
+
@OrgName = params['OrgName']
|
2381
|
+
end
|
2382
|
+
end
|
2383
|
+
|
2384
|
+
# QueryChainMakerBlockTransaction请求参数结构体
|
2385
|
+
class QueryChainMakerBlockTransactionRequest < TencentCloud::Common::AbstractModel
|
2386
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2387
|
+
# @type ClusterId: String
|
2388
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2389
|
+
# @type ChainId: String
|
2390
|
+
# @param BlockHeight: 区块高度,-1表示最新区块
|
2391
|
+
# @type BlockHeight: Integer
|
2392
|
+
|
2393
|
+
attr_accessor :ClusterId, :ChainId, :BlockHeight
|
2394
|
+
|
2395
|
+
def initialize(clusterid=nil, chainid=nil, blockheight=nil)
|
2396
|
+
@ClusterId = clusterid
|
2397
|
+
@ChainId = chainid
|
2398
|
+
@BlockHeight = blockheight
|
2399
|
+
end
|
2400
|
+
|
2401
|
+
def deserialize(params)
|
2402
|
+
@ClusterId = params['ClusterId']
|
2403
|
+
@ChainId = params['ChainId']
|
2404
|
+
@BlockHeight = params['BlockHeight']
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
|
2408
|
+
# QueryChainMakerBlockTransaction返回参数结构体
|
2409
|
+
class QueryChainMakerBlockTransactionResponse < TencentCloud::Common::AbstractModel
|
2410
|
+
# @param Result: 区块交易
|
2411
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2412
|
+
# @type Result: Array
|
2413
|
+
# @param BlockHeight: 区块高度
|
2414
|
+
# @type BlockHeight: Integer
|
2415
|
+
# @param TxCount: 交易数量
|
2416
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2417
|
+
# @type TxCount: Integer
|
2418
|
+
# @param BlockTimestamp: 区块时间戳,单位是秒
|
2419
|
+
# @type BlockTimestamp: Integer
|
2420
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2421
|
+
# @type RequestId: String
|
2422
|
+
|
2423
|
+
attr_accessor :Result, :BlockHeight, :TxCount, :BlockTimestamp, :RequestId
|
2424
|
+
|
2425
|
+
def initialize(result=nil, blockheight=nil, txcount=nil, blocktimestamp=nil, requestid=nil)
|
2426
|
+
@Result = result
|
2427
|
+
@BlockHeight = blockheight
|
2428
|
+
@TxCount = txcount
|
2429
|
+
@BlockTimestamp = blocktimestamp
|
2430
|
+
@RequestId = requestid
|
2431
|
+
end
|
2432
|
+
|
2433
|
+
def deserialize(params)
|
2434
|
+
unless params['Result'].nil?
|
2435
|
+
@Result = []
|
2436
|
+
params['Result'].each do |i|
|
2437
|
+
chainmakertransactionresult_tmp = ChainMakerTransactionResult.new
|
2438
|
+
chainmakertransactionresult_tmp.deserialize(i)
|
2439
|
+
@Result << chainmakertransactionresult_tmp
|
2440
|
+
end
|
2441
|
+
end
|
2442
|
+
@BlockHeight = params['BlockHeight']
|
2443
|
+
@TxCount = params['TxCount']
|
2444
|
+
@BlockTimestamp = params['BlockTimestamp']
|
2445
|
+
@RequestId = params['RequestId']
|
2446
|
+
end
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
# QueryChainMakerContract请求参数结构体
|
2450
|
+
class QueryChainMakerContractRequest < TencentCloud::Common::AbstractModel
|
2451
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2452
|
+
# @type ClusterId: String
|
2453
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2454
|
+
# @type ChainId: String
|
2455
|
+
# @param ContractName: 合约名称,可在合约管理中获取
|
2456
|
+
# @type ContractName: String
|
2457
|
+
# @param FuncName: 合约方法名
|
2458
|
+
# @type FuncName: String
|
2459
|
+
# @param FuncParam: 合约方法入参,json格式字符串,key/value都是string类型的map
|
2460
|
+
# @type FuncParam: String
|
2461
|
+
|
2462
|
+
attr_accessor :ClusterId, :ChainId, :ContractName, :FuncName, :FuncParam
|
2463
|
+
|
2464
|
+
def initialize(clusterid=nil, chainid=nil, contractname=nil, funcname=nil, funcparam=nil)
|
2465
|
+
@ClusterId = clusterid
|
2466
|
+
@ChainId = chainid
|
2467
|
+
@ContractName = contractname
|
2468
|
+
@FuncName = funcname
|
2469
|
+
@FuncParam = funcparam
|
2470
|
+
end
|
2471
|
+
|
2472
|
+
def deserialize(params)
|
2473
|
+
@ClusterId = params['ClusterId']
|
2474
|
+
@ChainId = params['ChainId']
|
2475
|
+
@ContractName = params['ContractName']
|
2476
|
+
@FuncName = params['FuncName']
|
2477
|
+
@FuncParam = params['FuncParam']
|
2478
|
+
end
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
# QueryChainMakerContract返回参数结构体
|
2482
|
+
class QueryChainMakerContractResponse < TencentCloud::Common::AbstractModel
|
2483
|
+
# @param Result: 交易结果
|
2484
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2485
|
+
# @type Result: :class:`Tencentcloud::Tbaas.v20180416.models.ChainMakerContractResult`
|
2486
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2487
|
+
# @type RequestId: String
|
2488
|
+
|
2489
|
+
attr_accessor :Result, :RequestId
|
2490
|
+
|
2491
|
+
def initialize(result=nil, requestid=nil)
|
2492
|
+
@Result = result
|
2493
|
+
@RequestId = requestid
|
2494
|
+
end
|
2495
|
+
|
2496
|
+
def deserialize(params)
|
2497
|
+
unless params['Result'].nil?
|
2498
|
+
@Result = ChainMakerContractResult.new
|
2499
|
+
@Result.deserialize(params['Result'])
|
2500
|
+
end
|
2501
|
+
@RequestId = params['RequestId']
|
2502
|
+
end
|
2503
|
+
end
|
2504
|
+
|
2505
|
+
# QueryChainMakerTransaction请求参数结构体
|
2506
|
+
class QueryChainMakerTransactionRequest < TencentCloud::Common::AbstractModel
|
2507
|
+
# @param ClusterId: 网络ID,可在区块链网络详情或列表中获取
|
2508
|
+
# @type ClusterId: String
|
2509
|
+
# @param ChainId: 业务链编号,可在业务链列表中获取
|
2510
|
+
# @type ChainId: String
|
2511
|
+
# @param TxID: 交易ID,通过调用合约的返回值获取
|
2512
|
+
# @type TxID: String
|
2513
|
+
|
2514
|
+
attr_accessor :ClusterId, :ChainId, :TxID
|
2515
|
+
|
2516
|
+
def initialize(clusterid=nil, chainid=nil, txid=nil)
|
2517
|
+
@ClusterId = clusterid
|
2518
|
+
@ChainId = chainid
|
2519
|
+
@TxID = txid
|
2520
|
+
end
|
2521
|
+
|
2522
|
+
def deserialize(params)
|
2523
|
+
@ClusterId = params['ClusterId']
|
2524
|
+
@ChainId = params['ChainId']
|
2525
|
+
@TxID = params['TxID']
|
2526
|
+
end
|
2527
|
+
end
|
2528
|
+
|
2529
|
+
# QueryChainMakerTransaction返回参数结构体
|
2530
|
+
class QueryChainMakerTransactionResponse < TencentCloud::Common::AbstractModel
|
2531
|
+
# @param Result: 交易结果
|
2532
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2533
|
+
# @type Result: :class:`Tencentcloud::Tbaas.v20180416.models.ChainMakerTransactionResult`
|
2534
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2535
|
+
# @type RequestId: String
|
2536
|
+
|
2537
|
+
attr_accessor :Result, :RequestId
|
2538
|
+
|
2539
|
+
def initialize(result=nil, requestid=nil)
|
2540
|
+
@Result = result
|
2541
|
+
@RequestId = requestid
|
2542
|
+
end
|
2543
|
+
|
2544
|
+
def deserialize(params)
|
2545
|
+
unless params['Result'].nil?
|
2546
|
+
@Result = ChainMakerTransactionResult.new
|
2547
|
+
@Result.deserialize(params['Result'])
|
2548
|
+
end
|
2549
|
+
@RequestId = params['RequestId']
|
2550
|
+
end
|
2551
|
+
end
|
2552
|
+
|
2553
|
+
# Query请求参数结构体
|
2554
|
+
class QueryRequest < TencentCloud::Common::AbstractModel
|
2555
|
+
# @param Module: 模块名,固定字段:transaction
|
2556
|
+
# @type Module: String
|
2557
|
+
# @param Operation: 操作名,固定字段:query
|
2558
|
+
# @type Operation: String
|
2559
|
+
# @param ClusterId: 区块链网络ID,可在区块链网络详情或列表中获取
|
2560
|
+
# @type ClusterId: String
|
2561
|
+
# @param ChaincodeName: 业务所属智能合约名称,可在智能合约详情或列表中获取
|
2562
|
+
# @type ChaincodeName: String
|
2563
|
+
# @param ChannelName: 业务所属通道名称,可在通道详情或列表中获取
|
2564
|
+
# @type ChannelName: String
|
2565
|
+
# @param Peers: 执行该查询交易的节点列表(包括节点名称和节点所属组织名称,详见数据结构一节),可以在通道详情中获取该通道上的节点名称及其所属组织名称
|
2566
|
+
# @type Peers: Array
|
2567
|
+
# @param FuncName: 该笔交易查询需要调用的智能合约中的函数名称
|
2568
|
+
# @type FuncName: String
|
2569
|
+
# @param GroupName: 调用合约的组织名称,可以在组织管理列表中获取当前组织的名称
|
2570
|
+
# @type GroupName: String
|
2571
|
+
# @param Args: 被调用的函数参数列表
|
2572
|
+
# @type Args: Array
|
2573
|
+
|
2574
|
+
attr_accessor :Module, :Operation, :ClusterId, :ChaincodeName, :ChannelName, :Peers, :FuncName, :GroupName, :Args
|
2575
|
+
|
2576
|
+
def initialize(_module=nil, operation=nil, clusterid=nil, chaincodename=nil, channelname=nil, peers=nil, funcname=nil, groupname=nil, args=nil)
|
2577
|
+
@Module = _module
|
2578
|
+
@Operation = operation
|
2579
|
+
@ClusterId = clusterid
|
2580
|
+
@ChaincodeName = chaincodename
|
2581
|
+
@ChannelName = channelname
|
2582
|
+
@Peers = peers
|
2583
|
+
@FuncName = funcname
|
2584
|
+
@GroupName = groupname
|
2585
|
+
@Args = args
|
2586
|
+
end
|
2587
|
+
|
2588
|
+
def deserialize(params)
|
2589
|
+
@Module = params['Module']
|
2590
|
+
@Operation = params['Operation']
|
2591
|
+
@ClusterId = params['ClusterId']
|
2592
|
+
@ChaincodeName = params['ChaincodeName']
|
2593
|
+
@ChannelName = params['ChannelName']
|
2594
|
+
unless params['Peers'].nil?
|
2595
|
+
@Peers = []
|
2596
|
+
params['Peers'].each do |i|
|
2597
|
+
peerset_tmp = PeerSet.new
|
2598
|
+
peerset_tmp.deserialize(i)
|
2599
|
+
@Peers << peerset_tmp
|
2600
|
+
end
|
2601
|
+
end
|
2602
|
+
@FuncName = params['FuncName']
|
2603
|
+
@GroupName = params['GroupName']
|
2604
|
+
@Args = params['Args']
|
2605
|
+
end
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
# Query返回参数结构体
|
2609
|
+
class QueryResponse < TencentCloud::Common::AbstractModel
|
2610
|
+
# @param Data: 查询结果数据
|
2611
|
+
# @type Data: Array
|
2612
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2613
|
+
# @type RequestId: String
|
2614
|
+
|
2615
|
+
attr_accessor :Data, :RequestId
|
2616
|
+
|
2617
|
+
def initialize(data=nil, requestid=nil)
|
2618
|
+
@Data = data
|
2619
|
+
@RequestId = requestid
|
2620
|
+
end
|
2621
|
+
|
2622
|
+
def deserialize(params)
|
2623
|
+
@Data = params['Data']
|
2624
|
+
@RequestId = params['RequestId']
|
2625
|
+
end
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
# SendTransactionHandler请求参数结构体
|
2629
|
+
class SendTransactionHandlerRequest < TencentCloud::Common::AbstractModel
|
2630
|
+
# @param Module: 模块名,固定字段:transaction
|
2631
|
+
# @type Module: String
|
2632
|
+
# @param Operation: 操作名,固定字段:send_transaction
|
2633
|
+
# @type Operation: String
|
2634
|
+
# @param GroupPk: 群组编号
|
2635
|
+
# @type GroupPk: String
|
2636
|
+
# @param ContractId: 合约编号
|
2637
|
+
# @type ContractId: Integer
|
2638
|
+
# @param FuncName: 合约方法名
|
2639
|
+
# @type FuncName: String
|
2640
|
+
# @param FuncParam: 合约方法入参
|
2641
|
+
# @type FuncParam: Array
|
2642
|
+
|
2643
|
+
attr_accessor :Module, :Operation, :GroupPk, :ContractId, :FuncName, :FuncParam
|
2644
|
+
|
2645
|
+
def initialize(_module=nil, operation=nil, grouppk=nil, contractid=nil, funcname=nil, funcparam=nil)
|
2646
|
+
@Module = _module
|
2647
|
+
@Operation = operation
|
2648
|
+
@GroupPk = grouppk
|
2649
|
+
@ContractId = contractid
|
2650
|
+
@FuncName = funcname
|
2651
|
+
@FuncParam = funcparam
|
2652
|
+
end
|
2653
|
+
|
2654
|
+
def deserialize(params)
|
2655
|
+
@Module = params['Module']
|
2656
|
+
@Operation = params['Operation']
|
2657
|
+
@GroupPk = params['GroupPk']
|
2658
|
+
@ContractId = params['ContractId']
|
2659
|
+
@FuncName = params['FuncName']
|
2660
|
+
@FuncParam = params['FuncParam']
|
2661
|
+
end
|
2662
|
+
end
|
2663
|
+
|
2664
|
+
# SendTransactionHandler返回参数结构体
|
2665
|
+
class SendTransactionHandlerResponse < TencentCloud::Common::AbstractModel
|
2666
|
+
# @param TransactionRsp: 交易结果json字符串
|
2667
|
+
# @type TransactionRsp: String
|
2668
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2669
|
+
# @type RequestId: String
|
2670
|
+
|
2671
|
+
attr_accessor :TransactionRsp, :RequestId
|
2672
|
+
|
2673
|
+
def initialize(transactionrsp=nil, requestid=nil)
|
2674
|
+
@TransactionRsp = transactionrsp
|
2675
|
+
@RequestId = requestid
|
2676
|
+
end
|
2677
|
+
|
2678
|
+
def deserialize(params)
|
2679
|
+
@TransactionRsp = params['TransactionRsp']
|
2680
|
+
@RequestId = params['RequestId']
|
2681
|
+
end
|
2682
|
+
end
|
2683
|
+
|
2684
|
+
# SrvInvoke请求参数结构体
|
2685
|
+
class SrvInvokeRequest < TencentCloud::Common::AbstractModel
|
2686
|
+
# @param Service: 服务类型,iss或者dam
|
2687
|
+
# @type Service: String
|
2688
|
+
# @param Method: 服务接口,要调用的方法函数名
|
2689
|
+
# @type Method: String
|
2690
|
+
# @param Param: 用户自定义json字符串
|
2691
|
+
# @type Param: String
|
2692
|
+
|
2693
|
+
attr_accessor :Service, :Method, :Param
|
2694
|
+
|
2695
|
+
def initialize(service=nil, method=nil, param=nil)
|
2696
|
+
@Service = service
|
2697
|
+
@Method = method
|
2698
|
+
@Param = param
|
2699
|
+
end
|
2700
|
+
|
2701
|
+
def deserialize(params)
|
2702
|
+
@Service = params['Service']
|
2703
|
+
@Method = params['Method']
|
2704
|
+
@Param = params['Param']
|
2705
|
+
end
|
2706
|
+
end
|
2707
|
+
|
2708
|
+
# SrvInvoke返回参数结构体
|
2709
|
+
class SrvInvokeResponse < TencentCloud::Common::AbstractModel
|
2710
|
+
# @param RetCode: 返回码
|
2711
|
+
# @type RetCode: Integer
|
2712
|
+
# @param RetMsg: 返回消息
|
2713
|
+
# @type RetMsg: String
|
2714
|
+
# @param Data: 返回数据
|
2715
|
+
# @type Data: String
|
2716
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2717
|
+
# @type RequestId: String
|
2718
|
+
|
2719
|
+
attr_accessor :RetCode, :RetMsg, :Data, :RequestId
|
2720
|
+
|
2721
|
+
def initialize(retcode=nil, retmsg=nil, data=nil, requestid=nil)
|
2722
|
+
@RetCode = retcode
|
2723
|
+
@RetMsg = retmsg
|
2724
|
+
@Data = data
|
2725
|
+
@RequestId = requestid
|
2726
|
+
end
|
2727
|
+
|
2728
|
+
def deserialize(params)
|
2729
|
+
@RetCode = params['RetCode']
|
2730
|
+
@RetMsg = params['RetMsg']
|
2731
|
+
@Data = params['Data']
|
2732
|
+
@RequestId = params['RequestId']
|
2733
|
+
end
|
2734
|
+
end
|
2735
|
+
|
2736
|
+
# TransByDynamicContractHandler请求参数结构体
|
2737
|
+
class TransByDynamicContractHandlerRequest < TencentCloud::Common::AbstractModel
|
2738
|
+
# @param Module: 模块名,固定字段:transaction
|
2739
|
+
# @type Module: String
|
2740
|
+
# @param Operation: 操作名,固定字段:trans_by_dynamic_contract
|
2741
|
+
# @type Operation: String
|
2742
|
+
# @param GroupPk: 群组编号
|
2743
|
+
# @type GroupPk: String
|
2744
|
+
# @param ContractAddress: 合约地址(合约部署成功,可得到合约地址)
|
2745
|
+
# @type ContractAddress: String
|
2746
|
+
# @param ContractName: 合约名
|
2747
|
+
# @type ContractName: String
|
2748
|
+
# @param AbiInfo: 合约编译后的abi
|
2749
|
+
# @type AbiInfo: String
|
2750
|
+
# @param FuncName: 合约被调用方法名
|
2751
|
+
# @type FuncName: String
|
2752
|
+
# @param FuncParam: 合约被调用方法的入参
|
2753
|
+
# @type FuncParam: Array
|
2754
|
+
|
2755
|
+
attr_accessor :Module, :Operation, :GroupPk, :ContractAddress, :ContractName, :AbiInfo, :FuncName, :FuncParam
|
2756
|
+
|
2757
|
+
def initialize(_module=nil, operation=nil, grouppk=nil, contractaddress=nil, contractname=nil, abiinfo=nil, funcname=nil, funcparam=nil)
|
2758
|
+
@Module = _module
|
2759
|
+
@Operation = operation
|
2760
|
+
@GroupPk = grouppk
|
2761
|
+
@ContractAddress = contractaddress
|
2762
|
+
@ContractName = contractname
|
2763
|
+
@AbiInfo = abiinfo
|
2764
|
+
@FuncName = funcname
|
2765
|
+
@FuncParam = funcparam
|
2766
|
+
end
|
2767
|
+
|
2768
|
+
def deserialize(params)
|
2769
|
+
@Module = params['Module']
|
2770
|
+
@Operation = params['Operation']
|
2771
|
+
@GroupPk = params['GroupPk']
|
2772
|
+
@ContractAddress = params['ContractAddress']
|
2773
|
+
@ContractName = params['ContractName']
|
2774
|
+
@AbiInfo = params['AbiInfo']
|
2775
|
+
@FuncName = params['FuncName']
|
2776
|
+
@FuncParam = params['FuncParam']
|
2777
|
+
end
|
2778
|
+
end
|
2779
|
+
|
2780
|
+
# TransByDynamicContractHandler返回参数结构体
|
2781
|
+
class TransByDynamicContractHandlerResponse < TencentCloud::Common::AbstractModel
|
2782
|
+
# @param TransactionRsp: 交易结果json字符串
|
2783
|
+
# @type TransactionRsp: String
|
2784
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2785
|
+
# @type RequestId: String
|
2786
|
+
|
2787
|
+
attr_accessor :TransactionRsp, :RequestId
|
2788
|
+
|
2789
|
+
def initialize(transactionrsp=nil, requestid=nil)
|
2790
|
+
@TransactionRsp = transactionrsp
|
2791
|
+
@RequestId = requestid
|
2792
|
+
end
|
2793
|
+
|
2794
|
+
def deserialize(params)
|
2795
|
+
@TransactionRsp = params['TransactionRsp']
|
2796
|
+
@RequestId = params['RequestId']
|
2797
|
+
end
|
2798
|
+
end
|
2799
|
+
|
2800
|
+
# 交易列表项信息
|
2801
|
+
class TransactionItem < TencentCloud::Common::AbstractModel
|
2802
|
+
# @param TransactionId: 交易ID
|
2803
|
+
# @type TransactionId: String
|
2804
|
+
# @param TransactionHash: 交易hash
|
2805
|
+
# @type TransactionHash: String
|
2806
|
+
# @param CreateOrgName: 创建交易的组织名
|
2807
|
+
# @type CreateOrgName: String
|
2808
|
+
# @param BlockId: 交易所在区块号
|
2809
|
+
# @type BlockId: Integer
|
2810
|
+
# @param TransactionType: 交易类型(普通交易和配置交易)
|
2811
|
+
# @type TransactionType: String
|
2812
|
+
# @param CreateTime: 交易创建时间
|
2813
|
+
# @type CreateTime: String
|
2814
|
+
# @param BlockHeight: 交易所在区块高度
|
2815
|
+
# @type BlockHeight: Integer
|
2816
|
+
# @param TransactionStatus: 交易状态
|
2817
|
+
# @type TransactionStatus: String
|
2818
|
+
|
2819
|
+
attr_accessor :TransactionId, :TransactionHash, :CreateOrgName, :BlockId, :TransactionType, :CreateTime, :BlockHeight, :TransactionStatus
|
2820
|
+
|
2821
|
+
def initialize(transactionid=nil, transactionhash=nil, createorgname=nil, blockid=nil, transactiontype=nil, createtime=nil, blockheight=nil, transactionstatus=nil)
|
2822
|
+
@TransactionId = transactionid
|
2823
|
+
@TransactionHash = transactionhash
|
2824
|
+
@CreateOrgName = createorgname
|
2825
|
+
@BlockId = blockid
|
2826
|
+
@TransactionType = transactiontype
|
2827
|
+
@CreateTime = createtime
|
2828
|
+
@BlockHeight = blockheight
|
2829
|
+
@TransactionStatus = transactionstatus
|
2830
|
+
end
|
2831
|
+
|
2832
|
+
def deserialize(params)
|
2833
|
+
@TransactionId = params['TransactionId']
|
2834
|
+
@TransactionHash = params['TransactionHash']
|
2835
|
+
@CreateOrgName = params['CreateOrgName']
|
2836
|
+
@BlockId = params['BlockId']
|
2837
|
+
@TransactionType = params['TransactionType']
|
2838
|
+
@CreateTime = params['CreateTime']
|
2839
|
+
@BlockHeight = params['BlockHeight']
|
2840
|
+
@TransactionStatus = params['TransactionStatus']
|
2841
|
+
end
|
2842
|
+
end
|
2843
|
+
|
2844
|
+
end
|
2845
|
+
end
|
2846
|
+
end
|
2847
|
+
|