lib/v20210519/models.rb in tencentcloud-sdk-tdid-3.0.598 vs lib/v20210519/models.rb in tencentcloud-sdk-tdid-3.0.599

- old
+ new

@@ -51,90 +51,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # 权威机构 - class Authority < TencentCloud::Common::AbstractModel - # @param Id: 权威机构ID - # @type Id: Integer - # @param DidId: Did的ID - # @type DidId: Integer - # @param Did: DID具体信息 - # @type Did: String - # @param Name: 机构名称 - # @type Name: String - # @param Status: 权威认证 1:已认证,2:未认证 - # @type Status: Integer - # @param DidServiceId: DID服务ID - # @type DidServiceId: Integer - # @param ContractAppId: 应用ID - # @type ContractAppId: Integer - # @param Remark: 备注 - # @type Remark: String - # @param RegisterTime: 注册时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RegisterTime: String - # @param RecognizeTime: 认证时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RecognizeTime: String - # @param CreateTime: 生成时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type CreateTime: String - # @param UpdateTime: 更新时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type UpdateTime: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param AppName: 合约名称 - # @type AppName: String - # @param LabelName: 链上标签 - # @type LabelName: String - - attr_accessor :Id, :DidId, :Did, :Name, :Status, :DidServiceId, :ContractAppId, :Remark, :RegisterTime, :RecognizeTime, :CreateTime, :UpdateTime, :ClusterId, :GroupId, :AppName, :LabelName - - def initialize(id=nil, didid=nil, did=nil, name=nil, status=nil, didserviceid=nil, contractappid=nil, remark=nil, registertime=nil, recognizetime=nil, createtime=nil, updatetime=nil, clusterid=nil, groupid=nil, appname=nil, labelname=nil) - @Id = id - @DidId = didid - @Did = did - @Name = name - @Status = status - @DidServiceId = didserviceid - @ContractAppId = contractappid - @Remark = remark - @RegisterTime = registertime - @RecognizeTime = recognizetime - @CreateTime = createtime - @UpdateTime = updatetime - @ClusterId = clusterid - @GroupId = groupid - @AppName = appname - @LabelName = labelname - end - - def deserialize(params) - @Id = params['Id'] - @DidId = params['DidId'] - @Did = params['Did'] - @Name = params['Name'] - @Status = params['Status'] - @DidServiceId = params['DidServiceId'] - @ContractAppId = params['ContractAppId'] - @Remark = params['Remark'] - @RegisterTime = params['RegisterTime'] - @RecognizeTime = params['RecognizeTime'] - @CreateTime = params['CreateTime'] - @UpdateTime = params['UpdateTime'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @AppName = params['AppName'] - @LabelName = params['LabelName'] - end - end - # bcos网络信息 class BcosClusterItem < TencentCloud::Common::AbstractModel # @param ChainId: 网络索引id # @type ChainId: Integer # @param ChainName: 网络名称 @@ -203,42 +123,10 @@ @TotalCreateNode = params['TotalCreateNode'] @TotalGroups = params['TotalGroups'] end end - # CancelAuthorityIssuer请求参数结构体 - class CancelAuthorityIssuerRequest < TencentCloud::Common::AbstractModel - # @param Did: did具体信息 - # @type Did: String - - attr_accessor :Did - - def initialize(did=nil) - @Did = did - end - - def deserialize(params) - @Did = params['Did'] - end - end - - # CancelAuthorityIssuer返回参数结构体 - class CancelAuthorityIssuerResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # CheckChain请求参数结构体 class CheckChainRequest < TencentCloud::Common::AbstractModel # @param GroupId: 群组ID # @type GroupId: Integer # @param ClusterId: 网络ID @@ -287,49 +175,10 @@ @AppName = params['AppName'] @RequestId = params['RequestId'] end end - # CheckDidDeploy请求参数结构体 - class CheckDidDeployRequest < TencentCloud::Common::AbstractModel - # @param TaskId: 任务ID - # @type TaskId: Integer - - attr_accessor :TaskId - - def initialize(taskid=nil) - @TaskId = taskid - end - - def deserialize(params) - @TaskId = params['TaskId'] - end - end - - # CheckDidDeploy返回参数结构体 - class CheckDidDeployResponse < TencentCloud::Common::AbstractModel - # @param Task: 服务信息 - # @type Task: :class:`Tencentcloud::Tdid.v20210519.models.Task` - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Task, :RequestId - - def initialize(task=nil, requestid=nil) - @Task = task - @RequestId = requestid - end - - def deserialize(params) - unless params['Task'].nil? - @Task = Task.new - @Task.deserialize(params['Task']) - end - @RequestId = params['RequestId'] - end - end - # 联盟信息 class ConsortiumItem < TencentCloud::Common::AbstractModel # @param Id: 联盟id # @type Id: Integer # @param Name: 联盟名称 @@ -346,54 +195,10 @@ @Id = params['Id'] @Name = params['Name'] end end - # 部署合约 - class Contract < TencentCloud::Common::AbstractModel - # @param ApplyName: 应用名 - # @type ApplyName: String - # @param Enable: 合约状态 true:已启用 false:未启用 - # @type Enable: Boolean - # @param Hash: 合约CNS地址 - # @type Hash: String - # @param HashShow: 合约CNS地址脱敏 - # @type HashShow: String - # @param WeId: 部署机构DID - # @type WeId: String - # @param DeployName: 部署机构名称 - # @type DeployName: String - # @param GroupId: 部署群组 - # @type GroupId: String - # @param CreateTime: 部署时间 - # @type CreateTime: String - - attr_accessor :ApplyName, :Enable, :Hash, :HashShow, :WeId, :DeployName, :GroupId, :CreateTime - - def initialize(applyname=nil, enable=nil, hash=nil, hashshow=nil, weid=nil, deployname=nil, groupid=nil, createtime=nil) - @ApplyName = applyname - @Enable = enable - @Hash = hash - @HashShow = hashshow - @WeId = weid - @DeployName = deployname - @GroupId = groupid - @CreateTime = createtime - end - - def deserialize(params) - @ApplyName = params['ApplyName'] - @Enable = params['Enable'] - @Hash = params['Hash'] - @HashShow = params['HashShow'] - @WeId = params['WeId'] - @DeployName = params['DeployName'] - @GroupId = params['GroupId'] - @CreateTime = params['CreateTime'] - end - end - # 模板颁发量排名 class CptIssueRank < TencentCloud::Common::AbstractModel # @param CptName: 模板名称 # @type CptName: String # @param Rank: 名次 @@ -422,78 +227,10 @@ @ApplyName = params['ApplyName'] @ApplyId = params['ApplyId'] end end - # cpt集合数据 - class CptListData < TencentCloud::Common::AbstractModel - # @param Id: ID信息 - # @type Id: Integer - # @param Name: 模版名称 - # @type Name: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param ServiceId: 服务ID - # @type ServiceId: Integer - # @param ContractAppId: 合约应用ID - # @type ContractAppId: Integer - # @param CptId: 凭证模板ID - # @type CptId: Integer - # @param CptType: 模板类型,1: 系统模板,2: 用户模板,3:普通模板 - # @type CptType: Integer - # @param Description: 凭证模版描述 - # @type Description: String - # @param CptJson: 凭证模板Json - # @type CptJson: String - # @param CreateTime: 创建时间 - # @type CreateTime: String - # @param UpdateTime: 更新时间 - # @type UpdateTime: String - # @param CreatorDid: 创建者DID - # @type CreatorDid: String - # @param AppName: 应用名称 - # @type AppName: String - - attr_accessor :Id, :Name, :ClusterId, :GroupId, :ServiceId, :ContractAppId, :CptId, :CptType, :Description, :CptJson, :CreateTime, :UpdateTime, :CreatorDid, :AppName - - def initialize(id=nil, name=nil, clusterid=nil, groupid=nil, serviceid=nil, contractappid=nil, cptid=nil, cpttype=nil, description=nil, cptjson=nil, createtime=nil, updatetime=nil, creatordid=nil, appname=nil) - @Id = id - @Name = name - @ClusterId = clusterid - @GroupId = groupid - @ServiceId = serviceid - @ContractAppId = contractappid - @CptId = cptid - @CptType = cpttype - @Description = description - @CptJson = cptjson - @CreateTime = createtime - @UpdateTime = updatetime - @CreatorDid = creatordid - @AppName = appname - end - - def deserialize(params) - @Id = params['Id'] - @Name = params['Name'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @ServiceId = params['ServiceId'] - @ContractAppId = params['ContractAppId'] - @CptId = params['CptId'] - @CptType = params['CptType'] - @Description = params['Description'] - @CptJson = params['CptJson'] - @CreateTime = params['CreateTime'] - @UpdateTime = params['UpdateTime'] - @CreatorDid = params['CreatorDid'] - @AppName = params['AppName'] - end - end - # CreateCredential请求参数结构体 class CreateCredentialRequest < TencentCloud::Common::AbstractModel # @param FunctionArg: 参数集合,详见示例 # @type FunctionArg: :class:`Tencentcloud::Tdid.v20210519.models.FunctionArg` # @param TransactionArg: 参数集合,详见示例 @@ -544,113 +281,10 @@ @CredentialData = params['CredentialData'] @RequestId = params['RequestId'] end end - # CreateDidService请求参数结构体 - class CreateDidServiceRequest < TencentCloud::Common::AbstractModel - # @param ConsortiumName: 联盟名称 - # @type ConsortiumName: String - # @param ConsortiumId: 联盟ID - # @type ConsortiumId: Integer - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param AgencyName: 机构名称 - # @type AgencyName: String - # @param AppName: 应用名称 - # @type AppName: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupName: 群组名称 - # @type GroupName: String - - attr_accessor :ConsortiumName, :ConsortiumId, :GroupId, :AgencyName, :AppName, :ClusterId, :GroupName - - def initialize(consortiumname=nil, consortiumid=nil, groupid=nil, agencyname=nil, appname=nil, clusterid=nil, groupname=nil) - @ConsortiumName = consortiumname - @ConsortiumId = consortiumid - @GroupId = groupid - @AgencyName = agencyname - @AppName = appname - @ClusterId = clusterid - @GroupName = groupname - end - - def deserialize(params) - @ConsortiumName = params['ConsortiumName'] - @ConsortiumId = params['ConsortiumId'] - @GroupId = params['GroupId'] - @AgencyName = params['AgencyName'] - @AppName = params['AppName'] - @ClusterId = params['ClusterId'] - @GroupName = params['GroupName'] - end - end - - # CreateDidService返回参数结构体 - class CreateDidServiceResponse < TencentCloud::Common::AbstractModel - # @param Task: 服务信息 - # @type Task: :class:`Tencentcloud::Tdid.v20210519.models.Task` - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Task, :RequestId - - def initialize(task=nil, requestid=nil) - @Task = task - @RequestId = requestid - end - - def deserialize(params) - unless params['Task'].nil? - @Task = Task.new - @Task.deserialize(params['Task']) - end - @RequestId = params['RequestId'] - end - end - - # CreateLabel请求参数结构体 - class CreateLabelRequest < TencentCloud::Common::AbstractModel - # @param LabelName: 标签名称 - # @type LabelName: String - # @param ClusterId: 网络Id - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - - attr_accessor :LabelName, :ClusterId, :GroupId - - def initialize(labelname=nil, clusterid=nil, groupid=nil) - @LabelName = labelname - @ClusterId = clusterid - @GroupId = groupid - end - - def deserialize(params) - @LabelName = params['LabelName'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - end - end - - # CreateLabel返回参数结构体 - class CreateLabelResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # CreateSelectiveCredential请求参数结构体 class CreateSelectiveCredentialRequest < TencentCloud::Common::AbstractModel # @param FunctionArg: 参数集合 # @type FunctionArg: :class:`Tencentcloud::Tdid.v20210519.models.VerifyFunctionArg` # @param PolicyId: 批露策略id @@ -865,54 +499,10 @@ @Signature = params['Signature'] @TimeStamp = params['TimeStamp'] end end - # DeployByName请求参数结构体 - class DeployByNameRequest < TencentCloud::Common::AbstractModel - # @param ApplicationName: 应用名称 - # @type ApplicationName: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - - attr_accessor :ApplicationName, :ClusterId, :GroupId - - def initialize(applicationname=nil, clusterid=nil, groupid=nil) - @ApplicationName = applicationname - @ClusterId = clusterid - @GroupId = groupid - end - - def deserialize(params) - @ApplicationName = params['ApplicationName'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - end - end - - # DeployByName返回参数结构体 - class DeployByNameResponse < TencentCloud::Common::AbstractModel - # @param Hash: 哈希值 - # @type Hash: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Hash, :RequestId - - def initialize(hash=nil, requestid=nil) - @Hash = hash - @RequestId = requestid - end - - def deserialize(params) - @Hash = params['Hash'] - @RequestId = params['RequestId'] - end - end - # did区块链网络信息 class DidCluster < TencentCloud::Common::AbstractModel # @param ChainId: 链ID # @type ChainId: Integer # @param ChainName: 链名称 @@ -985,202 +575,10 @@ @TotalGroups = params['TotalGroups'] @DidCount = params['DidCount'] end end - # DID列表 - class DidData < TencentCloud::Common::AbstractModel - # @param ServiceId: 服务ID - # @type ServiceId: Integer - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param AppName: 应用名称 - # @type AppName: String - # @param Did: did号码 - # @type Did: String - # @param Remark: 备注 - # @type Remark: String - # @param AuthorityState: 权威机构认证状态 1未注册 2 未认证 3 已认证 - # @type AuthorityState: Integer - # @param LabelName: DID标签名称 - # @type LabelName: String - # @param CreatedAt: DID创建时间 - # @type CreatedAt: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param AllianceName: 联盟名称 - # @type AllianceName: String - # @param LabelId: DID标签id - # @type LabelId: Integer - - attr_accessor :ServiceId, :GroupId, :AppName, :Did, :Remark, :AuthorityState, :LabelName, :CreatedAt, :ClusterId, :AllianceName, :LabelId - - def initialize(serviceid=nil, groupid=nil, appname=nil, did=nil, remark=nil, authoritystate=nil, labelname=nil, createdat=nil, clusterid=nil, alliancename=nil, labelid=nil) - @ServiceId = serviceid - @GroupId = groupid - @AppName = appname - @Did = did - @Remark = remark - @AuthorityState = authoritystate - @LabelName = labelname - @CreatedAt = createdat - @ClusterId = clusterid - @AllianceName = alliancename - @LabelId = labelid - end - - def deserialize(params) - @ServiceId = params['ServiceId'] - @GroupId = params['GroupId'] - @AppName = params['AppName'] - @Did = params['Did'] - @Remark = params['Remark'] - @AuthorityState = params['AuthorityState'] - @LabelName = params['LabelName'] - @CreatedAt = params['CreatedAt'] - @ClusterId = params['ClusterId'] - @AllianceName = params['AllianceName'] - @LabelId = params['LabelId'] - end - end - - # DID服务基本信息 - class DidServiceInfo < TencentCloud::Common::AbstractModel - # @param Id: DID服务索引 - # @type Id: Integer - # @param Appid: 应用ID - # @type Appid: Integer - # @param Uin: 账号唯一标识 - # @type Uin: String - # @param ConsortiumId: 联盟id - # @type ConsortiumId: Integer - # @param ConsortiumName: 联盟名称 - # @type ConsortiumName: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param ChainId: 链ID - # @type ChainId: String - # @param RoleType: 1为盟主,0为非盟主 - # @type RoleType: Integer - # @param AgencyDid: 机构DID - # @type AgencyDid: String - # @param CreateOrg: 机构名称 - # @type CreateOrg: String - # @param Endpoint: 端点 - # @type Endpoint: String - # @param CreateTime: 生成时间 - # @type CreateTime: String - # @param UpdateTime: 更新时间 - # @type UpdateTime: String - # @param GroupName: 群组名称 - # @type GroupName: String - - attr_accessor :Id, :Appid, :Uin, :ConsortiumId, :ConsortiumName, :ClusterId, :GroupId, :ChainId, :RoleType, :AgencyDid, :CreateOrg, :Endpoint, :CreateTime, :UpdateTime, :GroupName - - def initialize(id=nil, appid=nil, uin=nil, consortiumid=nil, consortiumname=nil, clusterid=nil, groupid=nil, chainid=nil, roletype=nil, agencydid=nil, createorg=nil, endpoint=nil, createtime=nil, updatetime=nil, groupname=nil) - @Id = id - @Appid = appid - @Uin = uin - @ConsortiumId = consortiumid - @ConsortiumName = consortiumname - @ClusterId = clusterid - @GroupId = groupid - @ChainId = chainid - @RoleType = roletype - @AgencyDid = agencydid - @CreateOrg = createorg - @Endpoint = endpoint - @CreateTime = createtime - @UpdateTime = updatetime - @GroupName = groupname - end - - def deserialize(params) - @Id = params['Id'] - @Appid = params['Appid'] - @Uin = params['Uin'] - @ConsortiumId = params['ConsortiumId'] - @ConsortiumName = params['ConsortiumName'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @ChainId = params['ChainId'] - @RoleType = params['RoleType'] - @AgencyDid = params['AgencyDid'] - @CreateOrg = params['CreateOrg'] - @Endpoint = params['Endpoint'] - @CreateTime = params['CreateTime'] - @UpdateTime = params['UpdateTime'] - @GroupName = params['GroupName'] - end - end - - # DownCpt请求参数结构体 - class DownCptRequest < TencentCloud::Common::AbstractModel - # @param CptIndex: Cpt索引 - # @type CptIndex: Integer - - attr_accessor :CptIndex - - def initialize(cptindex=nil) - @CptIndex = cptindex - end - - def deserialize(params) - @CptIndex = params['CptIndex'] - end - end - - # DownCpt返回参数结构体 - class DownCptResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # EnableHash请求参数结构体 - class EnableHashRequest < TencentCloud::Common::AbstractModel - # @param Hash: 合约CNS地址 - # @type Hash: String - - attr_accessor :Hash - - def initialize(hash=nil) - @Hash = hash - end - - def deserialize(params) - @Hash = params['Hash'] - end - end - - # EnableHash返回参数结构体 - class EnableHashResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # 创建凭证入参的FunctionArg class FunctionArg < TencentCloud::Common::AbstractModel # @param CptId: CPT ID # @type CptId: Integer # @param Issuer: 签发者 did @@ -1252,69 +650,10 @@ end @RequestId = params['RequestId'] end end - # GetAuthoritiesList请求参数结构体 - class GetAuthoritiesListRequest < TencentCloud::Common::AbstractModel - # @param PageNumber: 页码,从1开始 - # @type PageNumber: Integer - # @param PageSize: 每页大小 - # @type PageSize: Integer - # @param Did: Did信息 - # @type Did: String - # @param Status: 权威认证 1:已认证,2:未认证 - # @type Status: Integer - - attr_accessor :PageNumber, :PageSize, :Did, :Status - - def initialize(pagenumber=nil, pagesize=nil, did=nil, status=nil) - @PageNumber = pagenumber - @PageSize = pagesize - @Did = did - @Status = status - end - - def deserialize(params) - @PageNumber = params['PageNumber'] - @PageSize = params['PageSize'] - @Did = params['Did'] - @Status = params['Status'] - end - end - - # GetAuthoritiesList返回参数结构体 - class GetAuthoritiesListResponse < TencentCloud::Common::AbstractModel - # @param ResultList: 数据集合 - # @type ResultList: Array - # @param AllCount: 总数 - # @type AllCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ResultList, :AllCount, :RequestId - - def initialize(resultlist=nil, allcount=nil, requestid=nil) - @ResultList = resultlist - @AllCount = allcount - @RequestId = requestid - end - - def deserialize(params) - unless params['ResultList'].nil? - @ResultList = [] - params['ResultList'].each do |i| - authority_tmp = Authority.new - authority_tmp.deserialize(i) - @ResultList << authority_tmp - end - end - @AllCount = params['AllCount'] - @RequestId = params['RequestId'] - end - end - # GetAuthorityIssuer请求参数结构体 class GetAuthorityIssuerRequest < TencentCloud::Common::AbstractModel # @param Did: tdid # @type Did: String @@ -1488,65 +827,10 @@ @CptJsonData = params['CptJsonData'] @RequestId = params['RequestId'] end end - # GetCptList请求参数结构体 - class GetCptListRequest < TencentCloud::Common::AbstractModel - # @param DisplayStart: 起始位置 - # @type DisplayStart: Integer - # @param DisplayLength: 长度 - # @type DisplayLength: Integer - # @param CptType: 模板类型,0: 所有模板,1: 系统模板,2: 用户模板,3:普通模板 - # @type CptType: Integer - - attr_accessor :DisplayStart, :DisplayLength, :CptType - - def initialize(displaystart=nil, displaylength=nil, cpttype=nil) - @DisplayStart = displaystart - @DisplayLength = displaylength - @CptType = cpttype - end - - def deserialize(params) - @DisplayStart = params['DisplayStart'] - @DisplayLength = params['DisplayLength'] - @CptType = params['CptType'] - end - end - - # GetCptList返回参数结构体 - class GetCptListResponse < TencentCloud::Common::AbstractModel - # @param CptDataList: cpt数据集合 - # @type CptDataList: Array - # @param AllCount: 凭证模板总数 - # @type AllCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :CptDataList, :AllCount, :RequestId - - def initialize(cptdatalist=nil, allcount=nil, requestid=nil) - @CptDataList = cptdatalist - @AllCount = allcount - @RequestId = requestid - end - - def deserialize(params) - unless params['CptDataList'].nil? - @CptDataList = [] - params['CptDataList'].each do |i| - cptlistdata_tmp = CptListData.new - cptlistdata_tmp.deserialize(i) - @CptDataList << cptlistdata_tmp - end - end - @AllCount = params['AllCount'] - @RequestId = params['RequestId'] - end - end - # GetCredentialCptRank请求参数结构体 class GetCredentialCptRankRequest < TencentCloud::Common::AbstractModel # @param StartTime: 开始时间(支持到天 2021-4-23) # @type StartTime: String # @param EndTime: 结束时间(支持到天 2021-4-23) @@ -1594,112 +878,10 @@ end @RequestId = params['RequestId'] end end - # GetCredentialIssueRank请求参数结构体 - class GetCredentialIssueRankRequest < TencentCloud::Common::AbstractModel - # @param StartTime: 开始时间(支持到天 2021-4-23) - # @type StartTime: String - # @param EndTime: 结束时间(支持到天 2021-4-23) - # @type EndTime: String - # @param ClusterId: 网络ID - # @type ClusterId: String - - attr_accessor :StartTime, :EndTime, :ClusterId - - def initialize(starttime=nil, endtime=nil, clusterid=nil) - @StartTime = starttime - @EndTime = endtime - @ClusterId = clusterid - end - - def deserialize(params) - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @ClusterId = params['ClusterId'] - end - end - - # GetCredentialIssueRank返回参数结构体 - class GetCredentialIssueRankResponse < TencentCloud::Common::AbstractModel - # @param RankIssueResult: Rank集合 - # @type RankIssueResult: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RankIssueResult, :RequestId - - def initialize(rankissueresult=nil, requestid=nil) - @RankIssueResult = rankissueresult - @RequestId = requestid - end - - def deserialize(params) - unless params['RankIssueResult'].nil? - @RankIssueResult = [] - params['RankIssueResult'].each do |i| - cptissuerank_tmp = CptIssueRank.new - cptissuerank_tmp.deserialize(i) - @RankIssueResult << cptissuerank_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # GetCredentialIssueTrend请求参数结构体 - class GetCredentialIssueTrendRequest < TencentCloud::Common::AbstractModel - # @param StartTime: 开始时间(支持到天 2021-4-23) - # @type StartTime: String - # @param EndTime: 结束时间(支持到天 2021-4-23) - # @type EndTime: String - # @param ClusterId: 网络ID - # @type ClusterId: String - - attr_accessor :StartTime, :EndTime, :ClusterId - - def initialize(starttime=nil, endtime=nil, clusterid=nil) - @StartTime = starttime - @EndTime = endtime - @ClusterId = clusterid - end - - def deserialize(params) - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @ClusterId = params['ClusterId'] - end - end - - # GetCredentialIssueTrend返回参数结构体 - class GetCredentialIssueTrendResponse < TencentCloud::Common::AbstractModel - # @param Trend: Trend集合 - # @type Trend: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Trend, :RequestId - - def initialize(trend=nil, requestid=nil) - @Trend = trend - @RequestId = requestid - end - - def deserialize(params) - unless params['Trend'].nil? - @Trend = [] - params['Trend'].each do |i| - trend_tmp = Trend.new - trend_tmp.deserialize(i) - @Trend << trend_tmp - end - end - @RequestId = params['RequestId'] - end - end - # GetCredentialStatus请求参数结构体 class GetCredentialStatusRequest < TencentCloud::Common::AbstractModel # @param CredentialId: 凭证id # @type CredentialId: String @@ -1735,233 +917,10 @@ end @RequestId = params['RequestId'] end end - # GetDataPanel请求参数结构体 - class GetDataPanelRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID - # @type ClusterId: String - - attr_accessor :ClusterId - - def initialize(clusterid=nil) - @ClusterId = clusterid - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - end - end - - # GetDataPanel返回参数结构体 - class GetDataPanelResponse < TencentCloud::Common::AbstractModel - # @param BlockNetworkCount: 区块链网络数量 - # @type BlockNetworkCount: Integer - # @param BlockNetworkName: 区块链网络名称 - # @type BlockNetworkName: String - # @param BlockHeight: 当前区块高度 - # @type BlockHeight: Integer - # @param BlockNetworkType: 区块链网络类型 - # @type BlockNetworkType: Integer - # @param DidCount: did数量 - # @type DidCount: Integer - # @param CptCount: 凭证模版数量 - # @type CptCount: Integer - # @param CertificatedAuthCount: 已认证权威机构数量 - # @type CertificatedAuthCount: Integer - # @param IssueCptCount: 颁发凭证数量 - # @type IssueCptCount: Integer - # @param NewDidCount: 本周新增DID数量 - # @type NewDidCount: Integer - # @param BcosCount: BCOS网络类型数量 - # @type BcosCount: Integer - # @param FabricCount: Fabric网络类型数量 - # @type FabricCount: Integer - # @param ChainMakerCount: 长安链网络类型数量 - # @type ChainMakerCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :BlockNetworkCount, :BlockNetworkName, :BlockHeight, :BlockNetworkType, :DidCount, :CptCount, :CertificatedAuthCount, :IssueCptCount, :NewDidCount, :BcosCount, :FabricCount, :ChainMakerCount, :RequestId - - def initialize(blocknetworkcount=nil, blocknetworkname=nil, blockheight=nil, blocknetworktype=nil, didcount=nil, cptcount=nil, certificatedauthcount=nil, issuecptcount=nil, newdidcount=nil, bcoscount=nil, fabriccount=nil, chainmakercount=nil, requestid=nil) - @BlockNetworkCount = blocknetworkcount - @BlockNetworkName = blocknetworkname - @BlockHeight = blockheight - @BlockNetworkType = blocknetworktype - @DidCount = didcount - @CptCount = cptcount - @CertificatedAuthCount = certificatedauthcount - @IssueCptCount = issuecptcount - @NewDidCount = newdidcount - @BcosCount = bcoscount - @FabricCount = fabriccount - @ChainMakerCount = chainmakercount - @RequestId = requestid - end - - def deserialize(params) - @BlockNetworkCount = params['BlockNetworkCount'] - @BlockNetworkName = params['BlockNetworkName'] - @BlockHeight = params['BlockHeight'] - @BlockNetworkType = params['BlockNetworkType'] - @DidCount = params['DidCount'] - @CptCount = params['CptCount'] - @CertificatedAuthCount = params['CertificatedAuthCount'] - @IssueCptCount = params['IssueCptCount'] - @NewDidCount = params['NewDidCount'] - @BcosCount = params['BcosCount'] - @FabricCount = params['FabricCount'] - @ChainMakerCount = params['ChainMakerCount'] - @RequestId = params['RequestId'] - end - end - - # GetDeployInfo请求参数结构体 - class GetDeployInfoRequest < TencentCloud::Common::AbstractModel - # @param Hash: 合约CNS地址 - # @type Hash: String - - attr_accessor :Hash - - def initialize(hash=nil) - @Hash = hash - end - - def deserialize(params) - @Hash = params['Hash'] - end - end - - # GetDeployInfo返回参数结构体 - class GetDeployInfoResponse < TencentCloud::Common::AbstractModel - # @param Hash: 合约CNS地址 - # @type Hash: String - # @param GroupId: 合约主群组ID - # @type GroupId: String - # @param DeployDid: 部署机构DID - # @type DeployDid: String - # @param SdkVersion: TDID SDK版本 - # @type SdkVersion: String - # @param ContractVersion: TDID 合约版本 - # @type ContractVersion: String - # @param BlockVersion: 区块链节点版本 - # @type BlockVersion: String - # @param BlockIp: 区块链节点IP - # @type BlockIp: String - # @param DidAddress: DID合约地址 - # @type DidAddress: String - # @param CptAddress: CPT合约地址 - # @type CptAddress: String - # @param AuthorityAddress: Authority Issuer地址 - # @type AuthorityAddress: String - # @param EvidenceAddress: Evidence合约地址 - # @type EvidenceAddress: String - # @param SpecificAddress: Specific Issuer合约地址 - # @type SpecificAddress: String - # @param ChainId: 链ID - # @type ChainId: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Hash, :GroupId, :DeployDid, :SdkVersion, :ContractVersion, :BlockVersion, :BlockIp, :DidAddress, :CptAddress, :AuthorityAddress, :EvidenceAddress, :SpecificAddress, :ChainId, :RequestId - - def initialize(hash=nil, groupid=nil, deploydid=nil, sdkversion=nil, contractversion=nil, blockversion=nil, blockip=nil, didaddress=nil, cptaddress=nil, authorityaddress=nil, evidenceaddress=nil, specificaddress=nil, chainid=nil, requestid=nil) - @Hash = hash - @GroupId = groupid - @DeployDid = deploydid - @SdkVersion = sdkversion - @ContractVersion = contractversion - @BlockVersion = blockversion - @BlockIp = blockip - @DidAddress = didaddress - @CptAddress = cptaddress - @AuthorityAddress = authorityaddress - @EvidenceAddress = evidenceaddress - @SpecificAddress = specificaddress - @ChainId = chainid - @RequestId = requestid - end - - def deserialize(params) - @Hash = params['Hash'] - @GroupId = params['GroupId'] - @DeployDid = params['DeployDid'] - @SdkVersion = params['SdkVersion'] - @ContractVersion = params['ContractVersion'] - @BlockVersion = params['BlockVersion'] - @BlockIp = params['BlockIp'] - @DidAddress = params['DidAddress'] - @CptAddress = params['CptAddress'] - @AuthorityAddress = params['AuthorityAddress'] - @EvidenceAddress = params['EvidenceAddress'] - @SpecificAddress = params['SpecificAddress'] - @ChainId = params['ChainId'] - @RequestId = params['RequestId'] - end - end - - # GetDeployList请求参数结构体 - class GetDeployListRequest < TencentCloud::Common::AbstractModel - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param DisplayStart: 起始位置 - # @type DisplayStart: Integer - # @param DisplayLength: 长度 - # @type DisplayLength: Integer - - attr_accessor :ClusterId, :GroupId, :DisplayStart, :DisplayLength - - def initialize(clusterid=nil, groupid=nil, displaystart=nil, displaylength=nil) - @ClusterId = clusterid - @GroupId = groupid - @DisplayStart = displaystart - @DisplayLength = displaylength - end - - def deserialize(params) - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @DisplayStart = params['DisplayStart'] - @DisplayLength = params['DisplayLength'] - end - end - - # GetDeployList返回参数结构体 - class GetDeployListResponse < TencentCloud::Common::AbstractModel - # @param AllCount: 合约总数 - # @type AllCount: Integer - # @param Result: 合约部署列表 - # @type Result: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :AllCount, :Result, :RequestId - - def initialize(allcount=nil, result=nil, requestid=nil) - @AllCount = allcount - @Result = result - @RequestId = requestid - end - - def deserialize(params) - @AllCount = params['AllCount'] - unless params['Result'].nil? - @Result = [] - params['Result'].each do |i| - contract_tmp = Contract.new - contract_tmp.deserialize(i) - @Result << contract_tmp - end - end - @RequestId = params['RequestId'] - end - end - # GetDidClusterDetail请求参数结构体 class GetDidClusterDetailRequest < TencentCloud::Common::AbstractModel # @param ClusterId: DID网络ID # @type ClusterId: String @@ -2040,82 +999,10 @@ end @RequestId = params['RequestId'] end end - # GetDidDetail请求参数结构体 - class GetDidDetailRequest < TencentCloud::Common::AbstractModel - # @param Did: DID号码的具体信息 - # @type Did: String - - attr_accessor :Did - - def initialize(did=nil) - @Did = did - end - - def deserialize(params) - @Did = params['Did'] - end - end - - # GetDidDetail返回参数结构体 - class GetDidDetailResponse < TencentCloud::Common::AbstractModel - # @param Did: DID名称 - # @type Did: String - # @param Remark: 备注 - # @type Remark: String - # @param PublicKey: 公钥 - # @type PublicKey: String - # @param AuthorityState: 权威认证 - # @type AuthorityState: Integer - # @param ConsortiumId: 联盟ID - # @type ConsortiumId: Integer - # @param ConsortiumName: 联盟名称 - # @type ConsortiumName: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param ResChainId: bcos资源ID - # @type ResChainId: String - # @param CreateTime: 创建时间 - # @type CreateTime: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Did, :Remark, :PublicKey, :AuthorityState, :ConsortiumId, :ConsortiumName, :GroupId, :ClusterId, :ResChainId, :CreateTime, :RequestId - - def initialize(did=nil, remark=nil, publickey=nil, authoritystate=nil, consortiumid=nil, consortiumname=nil, groupid=nil, clusterid=nil, reschainid=nil, createtime=nil, requestid=nil) - @Did = did - @Remark = remark - @PublicKey = publickey - @AuthorityState = authoritystate - @ConsortiumId = consortiumid - @ConsortiumName = consortiumname - @GroupId = groupid - @ClusterId = clusterid - @ResChainId = reschainid - @CreateTime = createtime - @RequestId = requestid - end - - def deserialize(params) - @Did = params['Did'] - @Remark = params['Remark'] - @PublicKey = params['PublicKey'] - @AuthorityState = params['AuthorityState'] - @ConsortiumId = params['ConsortiumId'] - @ConsortiumName = params['ConsortiumName'] - @GroupId = params['GroupId'] - @ClusterId = params['ClusterId'] - @ResChainId = params['ResChainId'] - @CreateTime = params['CreateTime'] - @RequestId = params['RequestId'] - end - end - # GetDidDocument请求参数结构体 class GetDidDocumentRequest < TencentCloud::Common::AbstractModel # @param Did: tdid # @type Did: String @@ -2152,439 +1039,10 @@ @Document = params['Document'] @RequestId = params['RequestId'] end end - # GetDidList请求参数结构体 - class GetDidListRequest < TencentCloud::Common::AbstractModel - # @param PageSize: 每页大小 - # @type PageSize: Integer - # @param PageNumber: 页码,从1开始 - # @type PageNumber: Integer - # @param Did: Did信息 - # @type Did: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - - attr_accessor :PageSize, :PageNumber, :Did, :ClusterId, :GroupId - - def initialize(pagesize=nil, pagenumber=nil, did=nil, clusterid=nil, groupid=nil) - @PageSize = pagesize - @PageNumber = pagenumber - @Did = did - @ClusterId = clusterid - @GroupId = groupid - end - - def deserialize(params) - @PageSize = params['PageSize'] - @PageNumber = params['PageNumber'] - @Did = params['Did'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - end - end - - # GetDidList返回参数结构体 - class GetDidListResponse < TencentCloud::Common::AbstractModel - # @param DataList: 数据列表 - # @type DataList: Array - # @param AllCount: 数据总条数 - # @type AllCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :DataList, :AllCount, :RequestId - - def initialize(datalist=nil, allcount=nil, requestid=nil) - @DataList = datalist - @AllCount = allcount - @RequestId = requestid - end - - def deserialize(params) - unless params['DataList'].nil? - @DataList = [] - params['DataList'].each do |i| - diddata_tmp = DidData.new - diddata_tmp.deserialize(i) - @DataList << diddata_tmp - end - end - @AllCount = params['AllCount'] - @RequestId = params['RequestId'] - end - end - - # GetDidRegisterTrend请求参数结构体 - class GetDidRegisterTrendRequest < TencentCloud::Common::AbstractModel - # @param StartTime: 开始时间(支持到天 2021-4-23) - # @type StartTime: String - # @param EndTime: 结束时间(支持到天 2021-4-23) - # @type EndTime: String - # @param ClusterId: 网络ID - # @type ClusterId: String - - attr_accessor :StartTime, :EndTime, :ClusterId - - def initialize(starttime=nil, endtime=nil, clusterid=nil) - @StartTime = starttime - @EndTime = endtime - @ClusterId = clusterid - end - - def deserialize(params) - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @ClusterId = params['ClusterId'] - end - end - - # GetDidRegisterTrend返回参数结构体 - class GetDidRegisterTrendResponse < TencentCloud::Common::AbstractModel - # @param Trend: Trend集合 - # @type Trend: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Trend, :RequestId - - def initialize(trend=nil, requestid=nil) - @Trend = trend - @RequestId = requestid - end - - def deserialize(params) - unless params['Trend'].nil? - @Trend = [] - params['Trend'].each do |i| - trend_tmp = Trend.new - trend_tmp.deserialize(i) - @Trend << trend_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # GetDidServiceDetail请求参数结构体 - class GetDidServiceDetailRequest < TencentCloud::Common::AbstractModel - # @param ServiceId: DID服务ID - # @type ServiceId: Integer - - attr_accessor :ServiceId - - def initialize(serviceid=nil) - @ServiceId = serviceid - end - - def deserialize(params) - @ServiceId = params['ServiceId'] - end - end - - # GetDidServiceDetail返回参数结构体 - class GetDidServiceDetailResponse < TencentCloud::Common::AbstractModel - # @param DidService: did服务信息 - # @type DidService: :class:`Tencentcloud::Tdid.v20210519.models.DidServiceInfo` - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :DidService, :RequestId - - def initialize(didservice=nil, requestid=nil) - @DidService = didservice - @RequestId = requestid - end - - def deserialize(params) - unless params['DidService'].nil? - @DidService = DidServiceInfo.new - @DidService.deserialize(params['DidService']) - end - @RequestId = params['RequestId'] - end - end - - # GetDidServiceList请求参数结构体 - class GetDidServiceListRequest < TencentCloud::Common::AbstractModel - # @param Type: 1: 以网络维度输出, 0: 以服务维度输出 - # @type Type: Integer - - attr_accessor :Type - - def initialize(type=nil) - @Type = type - end - - def deserialize(params) - @Type = params['Type'] - end - end - - # GetDidServiceList返回参数结构体 - class GetDidServiceListResponse < TencentCloud::Common::AbstractModel - # @param DidServiceList: DID服务列表 - # @type DidServiceList: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :DidServiceList, :RequestId - - def initialize(didservicelist=nil, requestid=nil) - @DidServiceList = didservicelist - @RequestId = requestid - end - - def deserialize(params) - unless params['DidServiceList'].nil? - @DidServiceList = [] - params['DidServiceList'].each do |i| - didserviceinfo_tmp = DidServiceInfo.new - didserviceinfo_tmp.deserialize(i) - @DidServiceList << didserviceinfo_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # GetGroupList请求参数结构体 - class GetGroupListRequest < TencentCloud::Common::AbstractModel - # @param Status: 0为未部署DID服务的群组,1为已部署DID服务的群组 - # @type Status: Integer - # @param ClusterId: 网络ID - # @type ClusterId: String - - attr_accessor :Status, :ClusterId - - def initialize(status=nil, clusterid=nil) - @Status = status - @ClusterId = clusterid - end - - def deserialize(params) - @Status = params['Status'] - @ClusterId = params['ClusterId'] - end - end - - # GetGroupList返回参数结构体 - class GetGroupListResponse < TencentCloud::Common::AbstractModel - # @param Result: 群组数据集合 - # @type Result: Array - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Result, :RequestId - - def initialize(result=nil, requestid=nil) - @Result = result - @RequestId = requestid - end - - def deserialize(params) - unless params['Result'].nil? - @Result = [] - params['Result'].each do |i| - group_tmp = Group.new - group_tmp.deserialize(i) - @Result << group_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # GetLabelList请求参数结构体 - class GetLabelListRequest < TencentCloud::Common::AbstractModel - # @param PageSize: 每页大小 - # @type PageSize: Integer - # @param PageNumber: 页码,从1开始 - # @type PageNumber: Integer - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - - attr_accessor :PageSize, :PageNumber, :ClusterId, :GroupId - - def initialize(pagesize=nil, pagenumber=nil, clusterid=nil, groupid=nil) - @PageSize = pagesize - @PageNumber = pagenumber - @ClusterId = clusterid - @GroupId = groupid - end - - def deserialize(params) - @PageSize = params['PageSize'] - @PageNumber = params['PageNumber'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - end - end - - # GetLabelList返回参数结构体 - class GetLabelListResponse < TencentCloud::Common::AbstractModel - # @param Result: 数据集合 - # @type Result: Array - # @param TotalCount: 总条数 - # @type TotalCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Result, :TotalCount, :RequestId - - def initialize(result=nil, totalcount=nil, requestid=nil) - @Result = result - @TotalCount = totalcount - @RequestId = requestid - end - - def deserialize(params) - unless params['Result'].nil? - @Result = [] - params['Result'].each do |i| - label_tmp = Label.new - label_tmp.deserialize(i) - @Result << label_tmp - end - end - @TotalCount = params['TotalCount'] - @RequestId = params['RequestId'] - end - end - - # GetPolicyList请求参数结构体 - class GetPolicyListRequest < TencentCloud::Common::AbstractModel - # @param DisplayStart: 起始位置 - # @type DisplayStart: Integer - # @param DisplayLength: 长度 - # @type DisplayLength: Integer - - attr_accessor :DisplayStart, :DisplayLength - - def initialize(displaystart=nil, displaylength=nil) - @DisplayStart = displaystart - @DisplayLength = displaylength - end - - def deserialize(params) - @DisplayStart = params['DisplayStart'] - @DisplayLength = params['DisplayLength'] - end - end - - # GetPolicyList返回参数结构体 - class GetPolicyListResponse < TencentCloud::Common::AbstractModel - # @param PolicyDataList: 策略Policy管理列表 - # @type PolicyDataList: Array - # @param AllCount: 总数 - # @type AllCount: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :PolicyDataList, :AllCount, :RequestId - - def initialize(policydatalist=nil, allcount=nil, requestid=nil) - @PolicyDataList = policydatalist - @AllCount = allcount - @RequestId = requestid - end - - def deserialize(params) - unless params['PolicyDataList'].nil? - @PolicyDataList = [] - params['PolicyDataList'].each do |i| - policy_tmp = Policy.new - policy_tmp.deserialize(i) - @PolicyDataList << policy_tmp - end - end - @AllCount = params['AllCount'] - @RequestId = params['RequestId'] - end - end - - # GetPublicKey请求参数结构体 - class GetPublicKeyRequest < TencentCloud::Common::AbstractModel - # @param Did: did的具体号码 - # @type Did: String - - attr_accessor :Did - - def initialize(did=nil) - @Did = did - end - - def deserialize(params) - @Did = params['Did'] - end - end - - # GetPublicKey返回参数结构体 - class GetPublicKeyResponse < TencentCloud::Common::AbstractModel - # @param Did: DID的具体信息 - # @type Did: String - # @param PublicKey: 公钥 - # @type PublicKey: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Did, :PublicKey, :RequestId - - def initialize(did=nil, publickey=nil, requestid=nil) - @Did = did - @PublicKey = publickey - @RequestId = requestid - end - - def deserialize(params) - @Did = params['Did'] - @PublicKey = params['PublicKey'] - @RequestId = params['RequestId'] - end - end - - # 群组 - class Group < TencentCloud::Common::AbstractModel - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param NodeCount: 节点数量 - # @type NodeCount: Integer - # @param NodeCountOfAgency: 所属机构节点数量 - # @type NodeCountOfAgency: Integer - # @param Description: 群组描述 - # @type Description: String - # @param RoleType: 参与角色,盟主或非盟主 - # @type RoleType: Integer - # @param ChainId: 链id - # @type ChainId: String - - attr_accessor :GroupId, :NodeCount, :NodeCountOfAgency, :Description, :RoleType, :ChainId - - def initialize(groupid=nil, nodecount=nil, nodecountofagency=nil, description=nil, roletype=nil, chainid=nil) - @GroupId = groupid - @NodeCount = nodecount - @NodeCountOfAgency = nodecountofagency - @Description = description - @RoleType = roletype - @ChainId = chainid - end - - def deserialize(params) - @GroupId = params['GroupId'] - @NodeCount = params['NodeCount'] - @NodeCountOfAgency = params['NodeCountOfAgency'] - @Description = params['Description'] - @RoleType = params['RoleType'] - @ChainId = params['ChainId'] - end - end - # did详情 class Identity < TencentCloud::Common::AbstractModel # @param AccountIdentifier: 账户标识符 # @type AccountIdentifier: String # @param ChainID: 链ID @@ -2613,118 +1071,10 @@ @GroupId = params['GroupId'] @GroupName = params['GroupName'] end end - # 标签 - class Label < TencentCloud::Common::AbstractModel - # @param LabelId: 标签ID - # @type LabelId: Integer - # @param LabelName: 标签名称 - # @type LabelName: String - # @param DidCount: did数量 - # @type DidCount: Integer - # @param Did: 创建者did - # @type Did: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param CreateTime: 创建时间 - # @type CreateTime: String - # @param GroupId: 群组ID - # @type GroupId: Integer - - attr_accessor :LabelId, :LabelName, :DidCount, :Did, :ClusterId, :CreateTime, :GroupId - - def initialize(labelid=nil, labelname=nil, didcount=nil, did=nil, clusterid=nil, createtime=nil, groupid=nil) - @LabelId = labelid - @LabelName = labelname - @DidCount = didcount - @Did = did - @ClusterId = clusterid - @CreateTime = createtime - @GroupId = groupid - end - - def deserialize(params) - @LabelId = params['LabelId'] - @LabelName = params['LabelName'] - @DidCount = params['DidCount'] - @Did = params['Did'] - @ClusterId = params['ClusterId'] - @CreateTime = params['CreateTime'] - @GroupId = params['GroupId'] - end - end - - # 策略管理 - class Policy < TencentCloud::Common::AbstractModel - # @param Id: 披露策略索引 - # @type Id: Integer - # @param Name: 披露策略名称 - # @type Name: String - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param ServiceId: 服务ID - # @type ServiceId: Integer - # @param ContractAppId: 合约应用ID - # @type ContractAppId: Integer - # @param PolicyId: 披露策略ID - # @type PolicyId: Integer - # @param CptId: 凭证模板ID - # @type CptId: Integer - # @param PolicyJson: 策略Json - # @type PolicyJson: String - # @param CreateTime: 生成时间 - # @type CreateTime: String - # @param UpdateTime: 更新时间 - # @type UpdateTime: String - # @param CreatorDid: 创建者DID - # @type CreatorDid: String - # @param AppName: 应用名称 - # @type AppName: String - # @param CptIndex: 模板索引 - # @type CptIndex: Integer - - attr_accessor :Id, :Name, :ClusterId, :GroupId, :ServiceId, :ContractAppId, :PolicyId, :CptId, :PolicyJson, :CreateTime, :UpdateTime, :CreatorDid, :AppName, :CptIndex - - def initialize(id=nil, name=nil, clusterid=nil, groupid=nil, serviceid=nil, contractappid=nil, policyid=nil, cptid=nil, policyjson=nil, createtime=nil, updatetime=nil, creatordid=nil, appname=nil, cptindex=nil) - @Id = id - @Name = name - @ClusterId = clusterid - @GroupId = groupid - @ServiceId = serviceid - @ContractAppId = contractappid - @PolicyId = policyid - @CptId = cptid - @PolicyJson = policyjson - @CreateTime = createtime - @UpdateTime = updatetime - @CreatorDid = creatordid - @AppName = appname - @CptIndex = cptindex - end - - def deserialize(params) - @Id = params['Id'] - @Name = params['Name'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @ServiceId = params['ServiceId'] - @ContractAppId = params['ContractAppId'] - @PolicyId = params['PolicyId'] - @CptId = params['CptId'] - @PolicyJson = params['PolicyJson'] - @CreateTime = params['CreateTime'] - @UpdateTime = params['UpdateTime'] - @CreatorDid = params['CreatorDid'] - @AppName = params['AppName'] - @CptIndex = params['CptIndex'] - end - end - # 验证凭证签名 class Proof < TencentCloud::Common::AbstractModel # @param Created: 创建时间 # @type Created: Integer # @param Creator: 创建着did @@ -2753,134 +1103,10 @@ @SignatureValue = params['SignatureValue'] @Type = params['Type'] end end - # QueryPolicy请求参数结构体 - class QueryPolicyRequest < TencentCloud::Common::AbstractModel - # @param PolicyIndex: policy索引 - # @type PolicyIndex: Integer - - attr_accessor :PolicyIndex - - def initialize(policyindex=nil) - @PolicyIndex = policyindex - end - - def deserialize(params) - @PolicyIndex = params['PolicyIndex'] - end - end - - # QueryPolicy返回参数结构体 - class QueryPolicyResponse < TencentCloud::Common::AbstractModel - # @param Id: 披露策略索引 - # @type Id: Integer - # @param PolicyId: 披露策略ID - # @type PolicyId: Integer - # @param CptId: 凭证模板ID - # @type CptId: Integer - # @param PolicyData: 披露策略的具体信息 - # @type PolicyData: String - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Id, :PolicyId, :CptId, :PolicyData, :RequestId - - def initialize(id=nil, policyid=nil, cptid=nil, policydata=nil, requestid=nil) - @Id = id - @PolicyId = policyid - @CptId = cptid - @PolicyData = policydata - @RequestId = requestid - end - - def deserialize(params) - @Id = params['Id'] - @PolicyId = params['PolicyId'] - @CptId = params['CptId'] - @PolicyData = params['PolicyData'] - @RequestId = params['RequestId'] - end - end - - # RecognizeAuthorityIssuer请求参数结构体 - class RecognizeAuthorityIssuerRequest < TencentCloud::Common::AbstractModel - # @param Did: did具体信息 - # @type Did: String - - attr_accessor :Did - - def initialize(did=nil) - @Did = did - end - - def deserialize(params) - @Did = params['Did'] - end - end - - # RecognizeAuthorityIssuer返回参数结构体 - class RecognizeAuthorityIssuerResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # RegisterClaimPolicy请求参数结构体 - class RegisterClaimPolicyRequest < TencentCloud::Common::AbstractModel - # @param CptIndex: Cpt索引 - # @type CptIndex: Integer - # @param Policy: 披露策略 - # @type Policy: String - - attr_accessor :CptIndex, :Policy - - def initialize(cptindex=nil, policy=nil) - @CptIndex = cptindex - @Policy = policy - end - - def deserialize(params) - @CptIndex = params['CptIndex'] - @Policy = params['Policy'] - end - end - - # RegisterClaimPolicy返回参数结构体 - class RegisterClaimPolicyResponse < TencentCloud::Common::AbstractModel - # @param Id: 披露策略索引 - # @type Id: Integer - # @param PolicyId: 披露策略ID - # @type PolicyId: Integer - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Id, :PolicyId, :RequestId - - def initialize(id=nil, policyid=nil, requestid=nil) - @Id = id - @PolicyId = policyid - @RequestId = requestid - end - - def deserialize(params) - @Id = params['Id'] - @PolicyId = params['PolicyId'] - @RequestId = params['RequestId'] - end - end - # RegisterCpt请求参数结构体 class RegisterCptRequest < TencentCloud::Common::AbstractModel # @param GroupId: 群组ID # @type GroupId: Integer # @param ClusterId: 网络ID @@ -2929,82 +1155,10 @@ @CptId = params['CptId'] @RequestId = params['RequestId'] end end - # RegisterIssuer请求参数结构体 - class RegisterIssuerRequest < TencentCloud::Common::AbstractModel - # @param Did: tdid - # @type Did: String - # @param Name: 权威机构名称 - # @type Name: String - # @param Description: 备注 - # @type Description: String - - attr_accessor :Did, :Name, :Description - - def initialize(did=nil, name=nil, description=nil) - @Did = did - @Name = name - @Description = description - end - - def deserialize(params) - @Did = params['Did'] - @Name = params['Name'] - @Description = params['Description'] - end - end - - # RegisterIssuer返回参数结构体 - class RegisterIssuerResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # RemoveHash请求参数结构体 - class RemoveHashRequest < TencentCloud::Common::AbstractModel - # @param Hash: 合约CNS地址 - # @type Hash: String - - attr_accessor :Hash - - def initialize(hash=nil) - @Hash = hash - end - - def deserialize(params) - @Hash = params['Hash'] - end - end - - # RemoveHash返回参数结构体 - class RemoveHashResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # SetCredentialStatus请求参数结构体 class SetCredentialStatusRequest < TencentCloud::Common::AbstractModel # @param CredentialStatus: 凭证状态 # @type CredentialStatus: :class:`Tencentcloud::Tdid.v20210519.models.CredentialStatus` @@ -3036,62 +1190,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # CreateDidService、CheckDidDeploy出参 - class Task < TencentCloud::Common::AbstractModel - # @param Id: 任务ID - # @type Id: Integer - # @param AppId: 应用ID - # @type AppId: Integer - # @param ClusterId: 网络ID - # @type ClusterId: String - # @param GroupId: 群组ID - # @type GroupId: Integer - # @param ServiceId: 服务ID - # @type ServiceId: Integer - # @param Status: 0: 部署中,1:部署成功,其他失败 - # @type Status: Integer - # @param ErrorCode: 错误码 - # @type ErrorCode: String - # @param ErrorMsg: 错误提示 - # @type ErrorMsg: String - # @param CreateTime: 生成时间 - # @type CreateTime: String - # @param UpdateTime: 更新时间 - # @type UpdateTime: String - - attr_accessor :Id, :AppId, :ClusterId, :GroupId, :ServiceId, :Status, :ErrorCode, :ErrorMsg, :CreateTime, :UpdateTime - - def initialize(id=nil, appid=nil, clusterid=nil, groupid=nil, serviceid=nil, status=nil, errorcode=nil, errormsg=nil, createtime=nil, updatetime=nil) - @Id = id - @AppId = appid - @ClusterId = clusterid - @GroupId = groupid - @ServiceId = serviceid - @Status = status - @ErrorCode = errorcode - @ErrorMsg = errormsg - @CreateTime = createtime - @UpdateTime = updatetime - end - - def deserialize(params) - @Id = params['Id'] - @AppId = params['AppId'] - @ClusterId = params['ClusterId'] - @GroupId = params['GroupId'] - @ServiceId = params['ServiceId'] - @Status = params['Status'] - @ErrorCode = params['ErrorCode'] - @ErrorMsg = params['ErrorMsg'] - @CreateTime = params['CreateTime'] - @UpdateTime = params['UpdateTime'] - end - end - # 创建凭证第二个 class TransactionArg < TencentCloud::Common::AbstractModel # @param InvokerTDid: 凭证did # @type InvokerTDid: String @@ -3101,29 +1203,9 @@ @InvokerTDid = invokertdid end def deserialize(params) @InvokerTDid = params['InvokerTDid'] - end - end - - # 趋势 - class Trend < TencentCloud::Common::AbstractModel - # @param Time: 时间点 - # @type Time: String - # @param Count: 数量 - # @type Count: Integer - - attr_accessor :Time, :Count - - def initialize(time=nil, count=nil) - @Time = time - @Count = count - end - - def deserialize(params) - @Time = params['Time'] - @Count = params['Count'] end end # VerifyCredential请求参数结构体 class VerifyCredentialRequest < TencentCloud::Common::AbstractModel