lib/v20180416/models.rb in tencentcloud-sdk-tbaas-3.0.598 vs lib/v20180416/models.rb in tencentcloud-sdk-tbaas-3.0.599

- old
+ new

@@ -135,94 +135,10 @@ @CertDn = params['CertDn'] @RequestId = params['RequestId'] end end - # Bcos区块对象 - class BcosBlockObj < TencentCloud::Common::AbstractModel - # @param BlockHash: 区块哈希 - # @type BlockHash: String - # @param BlockNumber: 区块高度 - # @type BlockNumber: Integer - # @param BlockTimestamp: 区块时间戳 - # @type BlockTimestamp: String - # @param Sealer: 打包节点ID - # @type Sealer: String - # @param SealerIndex: 打包节点索引 - # @type SealerIndex: Integer - # @param CreateTime: 记录保存时间 - # @type CreateTime: String - # @param TransCount: 交易数量 - # @type TransCount: Integer - # @param ModifyTime: 记录修改时间 - # @type ModifyTime: String - - attr_accessor :BlockHash, :BlockNumber, :BlockTimestamp, :Sealer, :SealerIndex, :CreateTime, :TransCount, :ModifyTime - - def initialize(blockhash=nil, blocknumber=nil, blocktimestamp=nil, sealer=nil, sealerindex=nil, createtime=nil, transcount=nil, modifytime=nil) - @BlockHash = blockhash - @BlockNumber = blocknumber - @BlockTimestamp = blocktimestamp - @Sealer = sealer - @SealerIndex = sealerindex - @CreateTime = createtime - @TransCount = transcount - @ModifyTime = modifytime - end - - def deserialize(params) - @BlockHash = params['BlockHash'] - @BlockNumber = params['BlockNumber'] - @BlockTimestamp = params['BlockTimestamp'] - @Sealer = params['Sealer'] - @SealerIndex = params['SealerIndex'] - @CreateTime = params['CreateTime'] - @TransCount = params['TransCount'] - @ModifyTime = params['ModifyTime'] - end - end - - # Bcos交易信息对象 - class BcosTransInfo < TencentCloud::Common::AbstractModel - # @param BlockNumber: 所属区块高度 - # @type BlockNumber: Integer - # @param BlockTimestamp: 区块时间戳 - # @type BlockTimestamp: String - # @param TransHash: 交易哈希 - # @type TransHash: String - # @param TransFrom: 交易发起者 - # @type TransFrom: String - # @param TransTo: 交易接收者 - # @type TransTo: String - # @param CreateTime: 落库时间 - # @type CreateTime: String - # @param ModifyTime: 修改时间 - # @type ModifyTime: String - - attr_accessor :BlockNumber, :BlockTimestamp, :TransHash, :TransFrom, :TransTo, :CreateTime, :ModifyTime - - def initialize(blocknumber=nil, blocktimestamp=nil, transhash=nil, transfrom=nil, transto=nil, createtime=nil, modifytime=nil) - @BlockNumber = blocknumber - @BlockTimestamp = blocktimestamp - @TransHash = transhash - @TransFrom = transfrom - @TransTo = transto - @CreateTime = createtime - @ModifyTime = modifytime - end - - def deserialize(params) - @BlockNumber = params['BlockNumber'] - @BlockTimestamp = params['BlockTimestamp'] - @TransHash = params['TransHash'] - @TransFrom = params['TransFrom'] - @TransTo = params['TransTo'] - @CreateTime = params['CreateTime'] - @ModifyTime = params['ModifyTime'] - end - end - # 区块对象 class Block < TencentCloud::Common::AbstractModel # @param BlockNum: 区块编号 # @type BlockNum: Integer # @param DataHash: 区块数据Hash数值 @@ -469,66 +385,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # DeployDynamicBcosContract请求参数结构体 - class DeployDynamicBcosContractRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取 - # @type ClusterId: String - # @param GroupId: 群组编号,可在群组列表中获取 - # @type GroupId: Integer - # @param AbiInfo: 合约编译后的ABI,可在合约详情获取 - # @type AbiInfo: String - # @param ByteCodeBin: 合约编译得到的字节码,hex编码,可在合约详情获取 - # @type ByteCodeBin: String - # @param SignUserId: 签名用户编号,可在私钥管理页面获取 - # @type SignUserId: String - # @param ConstructorParams: 构造函数入参,Json数组,多个参数以逗号分隔(参数为数组时同理),如:["str1",["arr1","arr2"]] - # @type ConstructorParams: String - - attr_accessor :ClusterId, :GroupId, :AbiInfo, :ByteCodeBin, :SignUserId, :ConstructorParams - - def initialize(clusterid=nil, groupid=nil, abiinfo=nil, bytecodebin=nil, signuserid=nil, constructorparams=nil) - @ClusterId = clusterid - @GroupId = groupid - @AbiInfo = abiinfo - @ByteCodeBin = bytecodebin - @SignUserId = signuserid - @ConstructorParams = constructorparams - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @AbiInfo = params['AbiInfo'] - @ByteCodeBin = params['ByteCodeBin'] - @SignUserId = params['SignUserId'] - @ConstructorParams = params['ConstructorParams'] - end - end - - # DeployDynamicBcosContract返回参数结构体 - class DeployDynamicBcosContractResponse < TencentCloud::Common::AbstractModel - # @param ContractAddress: 部署成功返回的合约地址 - # @type ContractAddress: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ContractAddress, :RequestId - - def initialize(contractaddress=nil, requestid=nil) - @ContractAddress = contractaddress - @RequestId = requestid - end - - def deserialize(params) - @ContractAddress = params['ContractAddress'] - @RequestId = params['RequestId'] - end - end - # DownloadUserCert请求参数结构体 class DownloadUserCertRequest < TencentCloud::Common::AbstractModel # @param Module: 模块名,固定字段:cert_mng # @type Module: String # @param Operation: 操作名,固定字段:cert_download_for_user @@ -605,232 +465,10 @@ @EndorserGroupName = params['EndorserGroupName'] @EndorserPeerList = params['EndorserPeerList'] end end - # GetBcosBlockByNumber请求参数结构体 - class GetBcosBlockByNumberRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取 - # @type ClusterId: String - # @param GroupId: 群组编号,可在群组列表中获取 - # @type GroupId: Integer - # @param BlockNumber: 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 - # @type BlockNumber: Integer - - attr_accessor :ClusterId, :GroupId, :BlockNumber - - def initialize(clusterid=nil, groupid=nil, blocknumber=nil) - @ClusterId = clusterid - @GroupId = groupid - @BlockNumber = blocknumber - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @BlockNumber = params['BlockNumber'] - end - end - - # GetBcosBlockByNumber返回参数结构体 - class GetBcosBlockByNumberResponse < TencentCloud::Common::AbstractModel - # @param BlockJson: 返回区块json字符串 - # @type BlockJson: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :BlockJson, :RequestId - - def initialize(blockjson=nil, requestid=nil) - @BlockJson = blockjson - @RequestId = requestid - end - - def deserialize(params) - @BlockJson = params['BlockJson'] - @RequestId = params['RequestId'] - end - end - - # GetBcosBlockList请求参数结构体 - class GetBcosBlockListRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取 - # @type ClusterId: String - # @param GroupId: 群组编号,可在群组列表中获取 - # @type GroupId: Integer - # @param PageNumber: 当前页数,默认为1 - # @type PageNumber: Integer - # @param PageSize: 每页记录数,默认为10 - # @type PageSize: Integer - # @param BlockNumber: 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 - # @type BlockNumber: Integer - # @param BlockHash: 区块哈希,可以从InvokeBcosTrans接口的返回值中解析获取 - # @type BlockHash: String - - attr_accessor :ClusterId, :GroupId, :PageNumber, :PageSize, :BlockNumber, :BlockHash - - def initialize(clusterid=nil, groupid=nil, pagenumber=nil, pagesize=nil, blocknumber=nil, blockhash=nil) - @ClusterId = clusterid - @GroupId = groupid - @PageNumber = pagenumber - @PageSize = pagesize - @BlockNumber = blocknumber - @BlockHash = blockhash - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @PageNumber = params['PageNumber'] - @PageSize = params['PageSize'] - @BlockNumber = params['BlockNumber'] - @BlockHash = params['BlockHash'] - end - end - - # GetBcosBlockList返回参数结构体 - class GetBcosBlockListResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 总记录数 - # @type TotalCount: Integer - # @param List: 返回数据列表 - # @type List: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :List, :RequestId - - def initialize(totalcount=nil, list=nil, requestid=nil) - @TotalCount = totalcount - @List = list - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['List'].nil? - @List = [] - params['List'].each do |i| - bcosblockobj_tmp = BcosBlockObj.new - bcosblockobj_tmp.deserialize(i) - @List << bcosblockobj_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # GetBcosTransByHash请求参数结构体 - class GetBcosTransByHashRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取 - # @type ClusterId: String - # @param GroupId: 群组编号,可在群组列表中获取 - # @type GroupId: Integer - # @param TransHash: 交易哈希值,可以从InvokeBcosTrans接口的返回值中解析获取 - # @type TransHash: String - - attr_accessor :ClusterId, :GroupId, :TransHash - - def initialize(clusterid=nil, groupid=nil, transhash=nil) - @ClusterId = clusterid - @GroupId = groupid - @TransHash = transhash - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @TransHash = params['TransHash'] - end - end - - # GetBcosTransByHash返回参数结构体 - class GetBcosTransByHashResponse < TencentCloud::Common::AbstractModel - # @param TransactionJson: 交易信息json字符串 - # @type TransactionJson: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TransactionJson, :RequestId - - def initialize(transactionjson=nil, requestid=nil) - @TransactionJson = transactionjson - @RequestId = requestid - end - - def deserialize(params) - @TransactionJson = params['TransactionJson'] - @RequestId = params['RequestId'] - end - end - - # GetBcosTransList请求参数结构体 - class GetBcosTransListRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取 - # @type ClusterId: String - # @param GroupId: 群组编号,可在群组列表中获取 - # @type GroupId: Integer - # @param PageNumber: 当前页数,默认是1 - # @type PageNumber: Integer - # @param PageSize: 每页记录数,默认为10 - # @type PageSize: Integer - # @param BlockNumber: 区块高度,可以从InvokeBcosTrans接口的返回值中解析获取 - # @type BlockNumber: Integer - # @param TransHash: 交易哈希,可以从InvokeBcosTrans接口的返回值中解析获取 - # @type TransHash: String - - attr_accessor :ClusterId, :GroupId, :PageNumber, :PageSize, :BlockNumber, :TransHash - - def initialize(clusterid=nil, groupid=nil, pagenumber=nil, pagesize=nil, blocknumber=nil, transhash=nil) - @ClusterId = clusterid - @GroupId = groupid - @PageNumber = pagenumber - @PageSize = pagesize - @BlockNumber = blocknumber - @TransHash = transhash - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @PageNumber = params['PageNumber'] - @PageSize = params['PageSize'] - @BlockNumber = params['BlockNumber'] - @TransHash = params['TransHash'] - end - end - - # GetBcosTransList返回参数结构体 - class GetBcosTransListResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 总记录数 - # @type TotalCount: Integer - # @param List: 返回数据列表 - # @type List: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :List, :RequestId - - def initialize(totalcount=nil, list=nil, requestid=nil) - @TotalCount = totalcount - @List = list - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['List'].nil? - @List = [] - params['List'].each do |i| - bcostransinfo_tmp = BcosTransInfo.new - bcostransinfo_tmp.deserialize(i) - @List << bcostransinfo_tmp - end - end - @RequestId = params['RequestId'] - end - end - # GetBlockList请求参数结构体 class GetBlockListRequest < TencentCloud::Common::AbstractModel # @param Module: 模块名称,固定字段:block # @type Module: String # @param Operation: 操作名称,固定字段:block_list @@ -1949,69 +1587,9 @@ @RequestId = requestid end def deserialize(params) @TaskId = params['TaskId'] - @RequestId = params['RequestId'] - end - end - - # InvokeBcosTrans请求参数结构体 - class InvokeBcosTransRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID,可在区块链网络详情或列表中获取 - # @type ClusterId: String - # @param GroupId: 群组编号,可在群组列表中获取 - # @type GroupId: Integer - # @param ContractAddress: 合约地址,可在合约详情获取 - # @type ContractAddress: String - # @param AbiInfo: 合约Abi的json数组格式的字符串,可在合约详情获取 - # @type AbiInfo: String - # @param FuncName: 合约方法名 - # @type FuncName: String - # @param SignUserId: 签名用户编号,可在私钥管理页面获取 - # @type SignUserId: String - # @param FuncParam: 合约方法入参,json格式字符串 - # @type FuncParam: String - - attr_accessor :ClusterId, :GroupId, :ContractAddress, :AbiInfo, :FuncName, :SignUserId, :FuncParam - - def initialize(clusterid=nil, groupid=nil, contractaddress=nil, abiinfo=nil, funcname=nil, signuserid=nil, funcparam=nil) - @ClusterId = clusterid - @GroupId = groupid - @ContractAddress = contractaddress - @AbiInfo = abiinfo - @FuncName = funcname - @SignUserId = signuserid - @FuncParam = funcparam - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @ContractAddress = params['ContractAddress'] - @AbiInfo = params['AbiInfo'] - @FuncName = params['FuncName'] - @SignUserId = params['SignUserId'] - @FuncParam = params['FuncParam'] - end - end - - # InvokeBcosTrans返回参数结构体 - class InvokeBcosTransResponse < TencentCloud::Common::AbstractModel - # @param TransactionRsp: 交易结果json字符串 - # @type TransactionRsp: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TransactionRsp, :RequestId - - def initialize(transactionrsp=nil, requestid=nil) - @TransactionRsp = transactionrsp - @RequestId = requestid - end - - def deserialize(params) - @TransactionRsp = params['TransactionRsp'] @RequestId = params['RequestId'] end end # InvokeChainMakerContract请求参数结构体