tencentcloud-sdk-tdid 3.0.746 → 3.0.748

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,95 +17,89 @@
17
17
  module TencentCloud
18
18
  module Tdid
19
19
  module V20210519
20
- # CheckChain请求参数结构体
21
- class CheckChainRequest < TencentCloud::Common::AbstractModel
22
- # @param GroupId: 群组ID
23
- # @type GroupId: Integer
24
- # @param ClusterId: 网络ID
25
- # @type ClusterId: String
26
- # @param AgencyName: did服务机构名称
27
- # @type AgencyName: String
20
+ # 颁发凭证的数据参数
21
+ class CRDLArg < TencentCloud::Common::AbstractModel
22
+ # @param CPTId: CPT ID
23
+ # @type CPTId: Integer
24
+ # @param Issuer: 签发者 did
25
+ # @type Issuer: String
26
+ # @param ExpirationDate: 过期时间
27
+ # @type ExpirationDate: String
28
+ # @param ClaimJson: 声明
29
+ # @type ClaimJson: String
30
+ # @param Type: 凭证类型
31
+ # @type Type: Array
32
+ # @param Parties: 多方签名的用户did
33
+ # @type Parties: Array
28
34
 
29
- attr_accessor :GroupId, :ClusterId, :AgencyName
35
+ attr_accessor :CPTId, :Issuer, :ExpirationDate, :ClaimJson, :Type, :Parties
30
36
 
31
- def initialize(groupid=nil, clusterid=nil, agencyname=nil)
32
- @GroupId = groupid
33
- @ClusterId = clusterid
34
- @AgencyName = agencyname
37
+ def initialize(cptid=nil, issuer=nil, expirationdate=nil, claimjson=nil, type=nil, parties=nil)
38
+ @CPTId = cptid
39
+ @Issuer = issuer
40
+ @ExpirationDate = expirationdate
41
+ @ClaimJson = claimjson
42
+ @Type = type
43
+ @Parties = parties
35
44
  end
36
45
 
37
46
  def deserialize(params)
38
- @GroupId = params['GroupId']
39
- @ClusterId = params['ClusterId']
40
- @AgencyName = params['AgencyName']
47
+ @CPTId = params['CPTId']
48
+ @Issuer = params['Issuer']
49
+ @ExpirationDate = params['ExpirationDate']
50
+ @ClaimJson = params['ClaimJson']
51
+ @Type = params['Type']
52
+ @Parties = params['Parties']
41
53
  end
42
54
  end
43
55
 
44
- # CheckChain返回参数结构体
45
- class CheckChainResponse < TencentCloud::Common::AbstractModel
46
- # @param RoleType: 1为盟主,0为非盟主
47
- # @type RoleType: Integer
48
- # @param ChainId: 链ID
49
- # @type ChainId: String
50
- # @param AppName: 应用名称
51
- # @type AppName: String
52
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
53
- # @type RequestId: String
56
+ # 链上交易信息
57
+ class ChainTransaction < TencentCloud::Common::AbstractModel
58
+ # @param TransactionHash: 交易哈希
59
+ # @type TransactionHash: String
54
60
 
55
- attr_accessor :RoleType, :ChainId, :AppName, :RequestId
61
+ attr_accessor :TransactionHash
56
62
 
57
- def initialize(roletype=nil, chainid=nil, appname=nil, requestid=nil)
58
- @RoleType = roletype
59
- @ChainId = chainid
60
- @AppName = appname
61
- @RequestId = requestid
63
+ def initialize(transactionhash=nil)
64
+ @TransactionHash = transactionhash
62
65
  end
63
66
 
64
67
  def deserialize(params)
65
- @RoleType = params['RoleType']
66
- @ChainId = params['ChainId']
67
- @AppName = params['AppName']
68
- @RequestId = params['RequestId']
68
+ @TransactionHash = params['TransactionHash']
69
69
  end
70
70
  end
71
71
 
72
- # CreateCredential请求参数结构体
73
- class CreateCredentialRequest < TencentCloud::Common::AbstractModel
74
- # @param FunctionArg: 参数集合,详见示例
75
- # @type FunctionArg: :class:`Tencentcloud::Tdid.v20210519.models.FunctionArg`
76
- # @param TransactionArg: 参数集合,详见示例
77
- # @type TransactionArg: :class:`Tencentcloud::Tdid.v20210519.models.TransactionArg`
78
- # @param VersionCredential: 版本
79
- # @type VersionCredential: String
80
- # @param UnSigned: 是否未签名
81
- # @type UnSigned: Boolean
72
+ # CreateDisclosedCredential请求参数结构体
73
+ class CreateDisclosedCredentialRequest < TencentCloud::Common::AbstractModel
74
+ # @param PolicyId: 披露策略id,PolicyJson和PolicyId任选其一
75
+ # @type PolicyId: Integer
76
+ # @param CredentialData: 凭证文本内容,FunctionArg和CredentialText任选其一
77
+ # @type CredentialData: String
78
+ # @param PolicyJson: 披露策略文本
79
+ # @type PolicyJson: String
80
+ # @param DAPId: DID应用ID
81
+ # @type DAPId: Integer
82
82
 
83
- attr_accessor :FunctionArg, :TransactionArg, :VersionCredential, :UnSigned
83
+ attr_accessor :PolicyId, :CredentialData, :PolicyJson, :DAPId
84
84
 
85
- def initialize(functionarg=nil, transactionarg=nil, versioncredential=nil, unsigned=nil)
86
- @FunctionArg = functionarg
87
- @TransactionArg = transactionarg
88
- @VersionCredential = versioncredential
89
- @UnSigned = unsigned
85
+ def initialize(policyid=nil, credentialdata=nil, policyjson=nil, dapid=nil)
86
+ @PolicyId = policyid
87
+ @CredentialData = credentialdata
88
+ @PolicyJson = policyjson
89
+ @DAPId = dapid
90
90
  end
91
91
 
92
92
  def deserialize(params)
93
- unless params['FunctionArg'].nil?
94
- @FunctionArg = FunctionArg.new
95
- @FunctionArg.deserialize(params['FunctionArg'])
96
- end
97
- unless params['TransactionArg'].nil?
98
- @TransactionArg = TransactionArg.new
99
- @TransactionArg.deserialize(params['TransactionArg'])
100
- end
101
- @VersionCredential = params['VersionCredential']
102
- @UnSigned = params['UnSigned']
93
+ @PolicyId = params['PolicyId']
94
+ @CredentialData = params['CredentialData']
95
+ @PolicyJson = params['PolicyJson']
96
+ @DAPId = params['DAPId']
103
97
  end
104
98
  end
105
99
 
106
- # CreateCredential返回参数结构体
107
- class CreateCredentialResponse < TencentCloud::Common::AbstractModel
108
- # @param CredentialData: Credential的具体信息
100
+ # CreateDisclosedCredential返回参数结构体
101
+ class CreateDisclosedCredentialResponse < TencentCloud::Common::AbstractModel
102
+ # @param CredentialData: 凭证字符串
109
103
  # @type CredentialData: String
110
104
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
111
105
  # @type RequestId: String
@@ -123,588 +117,899 @@ module TencentCloud
123
117
  end
124
118
  end
125
119
 
126
- # CreateSelectiveCredential请求参数结构体
127
- class CreateSelectiveCredentialRequest < TencentCloud::Common::AbstractModel
128
- # @param FunctionArg: 参数集合
129
- # @type FunctionArg: :class:`Tencentcloud::Tdid.v20210519.models.VerifyFunctionArg`
130
- # @param PolicyId: 批露策略id
131
- # @type PolicyId: Integer
132
-
133
- attr_accessor :FunctionArg, :PolicyId
134
-
135
- def initialize(functionarg=nil, policyid=nil)
136
- @FunctionArg = functionarg
137
- @PolicyId = policyid
120
+ # CreatePresentation请求参数结构体
121
+ class CreatePresentationRequest < TencentCloud::Common::AbstractModel
122
+ # @param DAPId: DID应用id
123
+ # @type DAPId: Integer
124
+ # @param Credentials: 凭证列表
125
+ # @type Credentials: Array
126
+ # @param Did: VP持有人的DID标识
127
+ # @type Did: String
128
+ # @param VerifyCode: VP随机验证码
129
+ # @type VerifyCode: String
130
+ # @param PolicyJson: 选择性披露策略
131
+ # @type PolicyJson: String
132
+ # @param Unsigned: 是否签名,ture时signatureValue为待签名内容由调用端自行签名,false时signatureValue为平台自动已签名的内容。默认false
133
+ # @type Unsigned: Boolean
134
+ # @param CredentialList: 可验证凭证证明列表
135
+ # @type CredentialList: Array
136
+
137
+ attr_accessor :DAPId, :Credentials, :Did, :VerifyCode, :PolicyJson, :Unsigned, :CredentialList
138
+
139
+ def initialize(dapid=nil, credentials=nil, did=nil, verifycode=nil, policyjson=nil, unsigned=nil, credentiallist=nil)
140
+ @DAPId = dapid
141
+ @Credentials = credentials
142
+ @Did = did
143
+ @VerifyCode = verifycode
144
+ @PolicyJson = policyjson
145
+ @Unsigned = unsigned
146
+ @CredentialList = credentiallist
138
147
  end
139
148
 
140
149
  def deserialize(params)
141
- unless params['FunctionArg'].nil?
142
- @FunctionArg = VerifyFunctionArg.new
143
- @FunctionArg.deserialize(params['FunctionArg'])
150
+ @DAPId = params['DAPId']
151
+ @Credentials = params['Credentials']
152
+ @Did = params['Did']
153
+ @VerifyCode = params['VerifyCode']
154
+ @PolicyJson = params['PolicyJson']
155
+ @Unsigned = params['Unsigned']
156
+ unless params['CredentialList'].nil?
157
+ @CredentialList = []
158
+ params['CredentialList'].each do |i|
159
+ credentialproof_tmp = CredentialProof.new
160
+ credentialproof_tmp.deserialize(i)
161
+ @CredentialList << credentialproof_tmp
162
+ end
144
163
  end
145
- @PolicyId = params['PolicyId']
146
164
  end
147
165
  end
148
166
 
149
- # CreateSelectiveCredential返回参数结构体
150
- class CreateSelectiveCredentialResponse < TencentCloud::Common::AbstractModel
151
- # @param CredentialData: 凭证字符串
152
- # @type CredentialData: String
167
+ # CreatePresentation返回参数结构体
168
+ class CreatePresentationResponse < TencentCloud::Common::AbstractModel
169
+ # @param PresentationData: 可验证表达内容
170
+ # @type PresentationData: String
153
171
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
154
172
  # @type RequestId: String
155
173
 
156
- attr_accessor :CredentialData, :RequestId
174
+ attr_accessor :PresentationData, :RequestId
157
175
 
158
- def initialize(credentialdata=nil, requestid=nil)
159
- @CredentialData = credentialdata
176
+ def initialize(presentationdata=nil, requestid=nil)
177
+ @PresentationData = presentationdata
160
178
  @RequestId = requestid
161
179
  end
162
180
 
163
181
  def deserialize(params)
164
- @CredentialData = params['CredentialData']
182
+ @PresentationData = params['PresentationData']
165
183
  @RequestId = params['RequestId']
166
184
  end
167
185
  end
168
186
 
169
- # CreateTDidByPrivateKey请求参数结构体
170
- class CreateTDidByPrivateKeyRequest < TencentCloud::Common::AbstractModel
171
- # @param ClusterId: 网络ID
172
- # @type ClusterId: String
173
- # @param GroupId: 群组ID
174
- # @type GroupId: Integer
175
- # @param PrivateKey: 私钥
176
- # @type PrivateKey: String
187
+ # CreateTDidByHost请求参数结构体
188
+ class CreateTDidByHostRequest < TencentCloud::Common::AbstractModel
189
+ # @param DAPId: DID应用ID
190
+ # @type DAPId: Integer
191
+ # @param CustomAttribute: 自定义DID文档json属性
192
+ # @type CustomAttribute: String
177
193
 
178
- attr_accessor :ClusterId, :GroupId, :PrivateKey
194
+ attr_accessor :DAPId, :CustomAttribute
179
195
 
180
- def initialize(clusterid=nil, groupid=nil, privatekey=nil)
181
- @ClusterId = clusterid
182
- @GroupId = groupid
183
- @PrivateKey = privatekey
196
+ def initialize(dapid=nil, customattribute=nil)
197
+ @DAPId = dapid
198
+ @CustomAttribute = customattribute
184
199
  end
185
200
 
186
201
  def deserialize(params)
187
- @ClusterId = params['ClusterId']
188
- @GroupId = params['GroupId']
189
- @PrivateKey = params['PrivateKey']
202
+ @DAPId = params['DAPId']
203
+ @CustomAttribute = params['CustomAttribute']
190
204
  end
191
205
  end
192
206
 
193
- # CreateTDidByPrivateKey返回参数结构体
194
- class CreateTDidByPrivateKeyResponse < TencentCloud::Common::AbstractModel
195
- # @param Did: did的具体信息
207
+ # CreateTDidByHost返回参数结构体
208
+ class CreateTDidByHostResponse < TencentCloud::Common::AbstractModel
209
+ # @param Did: DID标识
196
210
  # @type Did: String
211
+ # @param Transaction: 链上交易信息
212
+ # @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
197
213
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
198
214
  # @type RequestId: String
199
215
 
200
- attr_accessor :Did, :RequestId
216
+ attr_accessor :Did, :Transaction, :RequestId
201
217
 
202
- def initialize(did=nil, requestid=nil)
218
+ def initialize(did=nil, transaction=nil, requestid=nil)
203
219
  @Did = did
220
+ @Transaction = transaction
204
221
  @RequestId = requestid
205
222
  end
206
223
 
207
224
  def deserialize(params)
208
225
  @Did = params['Did']
226
+ unless params['Transaction'].nil?
227
+ @Transaction = ChainTransaction.new
228
+ @Transaction.deserialize(params['Transaction'])
229
+ end
209
230
  @RequestId = params['RequestId']
210
231
  end
211
232
  end
212
233
 
213
- # CreateTDidByPublicKey请求参数结构体
214
- class CreateTDidByPublicKeyRequest < TencentCloud::Common::AbstractModel
215
- # @param ClusterId: 网络ID
216
- # @type ClusterId: String
217
- # @param GroupId: 群组ID
218
- # @type GroupId: Integer
219
- # @param PublicKey: 身份公钥
234
+ # CreateTDidByPubKey请求参数结构体
235
+ class CreateTDidByPubKeyRequest < TencentCloud::Common::AbstractModel
236
+ # @param DAPId: DID应用id
237
+ # @type DAPId: Integer
238
+ # @param PublicKey: pem格式的认证公钥
220
239
  # @type PublicKey: String
221
- # @param EncryptPubKey: 加密公钥
222
- # @type EncryptPubKey: String
240
+ # @param CustomAttribute: 自定义DID初始化属性json字符串
241
+ # @type CustomAttribute: String
242
+ # @param IgnoreExisted: 0:did存在返回错误,1:did存在返回该did,默认:0
243
+ # @type IgnoreExisted: Integer
223
244
 
224
- attr_accessor :ClusterId, :GroupId, :PublicKey, :EncryptPubKey
245
+ attr_accessor :DAPId, :PublicKey, :CustomAttribute, :IgnoreExisted
225
246
 
226
- def initialize(clusterid=nil, groupid=nil, publickey=nil, encryptpubkey=nil)
227
- @ClusterId = clusterid
228
- @GroupId = groupid
247
+ def initialize(dapid=nil, publickey=nil, customattribute=nil, ignoreexisted=nil)
248
+ @DAPId = dapid
229
249
  @PublicKey = publickey
230
- @EncryptPubKey = encryptpubkey
250
+ @CustomAttribute = customattribute
251
+ @IgnoreExisted = ignoreexisted
231
252
  end
232
253
 
233
254
  def deserialize(params)
234
- @ClusterId = params['ClusterId']
235
- @GroupId = params['GroupId']
255
+ @DAPId = params['DAPId']
236
256
  @PublicKey = params['PublicKey']
237
- @EncryptPubKey = params['EncryptPubKey']
257
+ @CustomAttribute = params['CustomAttribute']
258
+ @IgnoreExisted = params['IgnoreExisted']
238
259
  end
239
260
  end
240
261
 
241
- # CreateTDidByPublicKey返回参数结构体
242
- class CreateTDidByPublicKeyResponse < TencentCloud::Common::AbstractModel
243
- # @param Did: did具体信息
262
+ # CreateTDidByPubKey返回参数结构体
263
+ class CreateTDidByPubKeyResponse < TencentCloud::Common::AbstractModel
264
+ # @param Did: did标识
244
265
  # @type Did: String
266
+ # @param Transaction: 链上交易信息
267
+ # @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
245
268
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
246
269
  # @type RequestId: String
247
270
 
248
- attr_accessor :Did, :RequestId
271
+ attr_accessor :Did, :Transaction, :RequestId
249
272
 
250
- def initialize(did=nil, requestid=nil)
273
+ def initialize(did=nil, transaction=nil, requestid=nil)
251
274
  @Did = did
275
+ @Transaction = transaction
252
276
  @RequestId = requestid
253
277
  end
254
278
 
255
279
  def deserialize(params)
256
280
  @Did = params['Did']
281
+ unless params['Transaction'].nil?
282
+ @Transaction = ChainTransaction.new
283
+ @Transaction.deserialize(params['Transaction'])
284
+ end
257
285
  @RequestId = params['RequestId']
258
286
  end
259
287
  end
260
288
 
261
- # CreateTDid请求参数结构体
262
- class CreateTDidRequest < TencentCloud::Common::AbstractModel
263
- # @param GroupId: 群组ID
264
- # @type GroupId: Integer
265
- # @param ClusterId: 网络ID
266
- # @type ClusterId: String
267
- # @param Relegation: 部署机构为1,否则为0
268
- # @type Relegation: Integer
289
+ # 可验证凭证证明信息
290
+ class CredentialProof < TencentCloud::Common::AbstractModel
291
+ # @param Credential: 可验证凭证内容
292
+ # @type Credential: String
269
293
 
270
- attr_accessor :GroupId, :ClusterId, :Relegation
294
+ attr_accessor :Credential
271
295
 
272
- def initialize(groupid=nil, clusterid=nil, relegation=nil)
273
- @GroupId = groupid
274
- @ClusterId = clusterid
275
- @Relegation = relegation
296
+ def initialize(credential=nil)
297
+ @Credential = credential
276
298
  end
277
299
 
278
300
  def deserialize(params)
279
- @GroupId = params['GroupId']
280
- @ClusterId = params['ClusterId']
281
- @Relegation = params['Relegation']
301
+ @Credential = params['Credential']
282
302
  end
283
303
  end
284
304
 
285
- # CreateTDid返回参数结构体
286
- class CreateTDidResponse < TencentCloud::Common::AbstractModel
287
- # @param Did: TDID
305
+ # 凭证链上状态信息
306
+ class CredentialState < TencentCloud::Common::AbstractModel
307
+ # @param Id: 凭证唯一id
308
+ # @type Id: String
309
+ # @param Status: 凭证状态(0:吊销;1:有效)
310
+ # @type Status: Integer
311
+ # @param Issuer: 凭证颁发者Did
312
+ # @type Issuer: String
313
+ # @param VCDigest: VC摘要,对应凭证Proof的vcDigest字段
314
+ # @type VCDigest: String
315
+ # @param TXDigest: 交易摘要,对应凭证Proof的txDigest字段
316
+ # @type TXDigest: String
317
+ # @param IssueTime: 颁布凭证的UTC时间戳
318
+ # @type IssueTime: Integer
319
+ # @param ExpireTime: 凭证过期的UTC时间戳
320
+ # @type ExpireTime: Integer
321
+ # @param CPTId: 凭证模板id
322
+ # @type CPTId: Integer
323
+ # @param Signature: 凭证签名
324
+ # @type Signature: String
325
+ # @param MetaDigest: 元数据摘要
326
+ # @type MetaDigest: String
327
+
328
+ attr_accessor :Id, :Status, :Issuer, :VCDigest, :TXDigest, :IssueTime, :ExpireTime, :CPTId, :Signature, :MetaDigest
329
+
330
+ def initialize(id=nil, status=nil, issuer=nil, vcdigest=nil, txdigest=nil, issuetime=nil, expiretime=nil, cptid=nil, signature=nil, metadigest=nil)
331
+ @Id = id
332
+ @Status = status
333
+ @Issuer = issuer
334
+ @VCDigest = vcdigest
335
+ @TXDigest = txdigest
336
+ @IssueTime = issuetime
337
+ @ExpireTime = expiretime
338
+ @CPTId = cptid
339
+ @Signature = signature
340
+ @MetaDigest = metadigest
341
+ end
342
+
343
+ def deserialize(params)
344
+ @Id = params['Id']
345
+ @Status = params['Status']
346
+ @Issuer = params['Issuer']
347
+ @VCDigest = params['VCDigest']
348
+ @TXDigest = params['TXDigest']
349
+ @IssueTime = params['IssueTime']
350
+ @ExpireTime = params['ExpireTime']
351
+ @CPTId = params['CPTId']
352
+ @Signature = params['Signature']
353
+ @MetaDigest = params['MetaDigest']
354
+ end
355
+ end
356
+
357
+ # DeactivateTDid请求参数结构体
358
+ class DeactivateTDidRequest < TencentCloud::Common::AbstractModel
359
+ # @param Did: DID标识符
288
360
  # @type Did: String
361
+ # @param OperateCredential: 设置DID禁用状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
362
+ # @type OperateCredential: String
363
+ # @param DAPId: DID应用Id
364
+ # @type DAPId: Integer
365
+ # @param Deactivated: 是否禁用
366
+ # @type Deactivated: String
367
+
368
+ attr_accessor :Did, :OperateCredential, :DAPId, :Deactivated
369
+
370
+ def initialize(did=nil, operatecredential=nil, dapid=nil, deactivated=nil)
371
+ @Did = did
372
+ @OperateCredential = operatecredential
373
+ @DAPId = dapid
374
+ @Deactivated = deactivated
375
+ end
376
+
377
+ def deserialize(params)
378
+ @Did = params['Did']
379
+ @OperateCredential = params['OperateCredential']
380
+ @DAPId = params['DAPId']
381
+ @Deactivated = params['Deactivated']
382
+ end
383
+ end
384
+
385
+ # DeactivateTDid返回参数结构体
386
+ class DeactivateTDidResponse < TencentCloud::Common::AbstractModel
387
+ # @param Transaction: 上链交易信息
388
+ # @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
289
389
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
290
390
  # @type RequestId: String
291
391
 
292
- attr_accessor :Did, :RequestId
392
+ attr_accessor :Transaction, :RequestId
293
393
 
294
- def initialize(did=nil, requestid=nil)
295
- @Did = did
394
+ def initialize(transaction=nil, requestid=nil)
395
+ @Transaction = transaction
296
396
  @RequestId = requestid
297
397
  end
298
398
 
299
399
  def deserialize(params)
300
- @Did = params['Did']
400
+ unless params['Transaction'].nil?
401
+ @Transaction = ChainTransaction.new
402
+ @Transaction.deserialize(params['Transaction'])
403
+ end
301
404
  @RequestId = params['RequestId']
302
405
  end
303
406
  end
304
407
 
305
- # 凭证链上状态信息
306
- class CredentialStatus < TencentCloud::Common::AbstractModel
307
- # @param CredentialId: 凭证唯一id
308
- # @type CredentialId: String
309
- # @param Status: 凭证状态(0:吊销;1:有效)
310
- # @type Status: Integer
311
- # @param Issuer: 凭证颁发者Did
312
- # @type Issuer: String
313
- # @param Digest: 凭证摘要
314
- # 注意:此字段可能返回 null,表示取不到有效值。
315
- # @type Digest: String
316
- # @param Signature: 凭证签名
408
+ # did自定义属性
409
+ class DidAttribute < TencentCloud::Common::AbstractModel
410
+ # @param Key: 键名
411
+ # @type Key: String
412
+ # @param Val: 键值
413
+ # @type Val: String
414
+
415
+ attr_accessor :Key, :Val
416
+
417
+ def initialize(key=nil, val=nil)
418
+ @Key = key
419
+ @Val = val
420
+ end
421
+
422
+ def deserialize(params)
423
+ @Key = params['Key']
424
+ @Val = params['Val']
425
+ end
426
+ end
427
+
428
+ # GetAppSummary请求参数结构体
429
+ class GetAppSummaryRequest < TencentCloud::Common::AbstractModel
430
+ # @param DAPId: DID应用Id
431
+ # @type DAPId: Integer
432
+
433
+ attr_accessor :DAPId
434
+
435
+ def initialize(dapid=nil)
436
+ @DAPId = dapid
437
+ end
438
+
439
+ def deserialize(params)
440
+ @DAPId = params['DAPId']
441
+ end
442
+ end
443
+
444
+ # GetAppSummary返回参数结构体
445
+ class GetAppSummaryResponse < TencentCloud::Common::AbstractModel
446
+ # @param AppCounter: 用户参与应用的统计指标
317
447
  # 注意:此字段可能返回 null,表示取不到有效值。
318
- # @type Signature: String
319
- # @param TimeStamp: 更新时间戳
448
+ # @type AppCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
449
+ # @param UserCounter: 用户创建资源的统计指标
320
450
  # 注意:此字段可能返回 null,表示取不到有效值。
321
- # @type TimeStamp: Integer
451
+ # @type UserCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
452
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
453
+ # @type RequestId: String
322
454
 
323
- attr_accessor :CredentialId, :Status, :Issuer, :Digest, :Signature, :TimeStamp
455
+ attr_accessor :AppCounter, :UserCounter, :RequestId
324
456
 
325
- def initialize(credentialid=nil, status=nil, issuer=nil, digest=nil, signature=nil, timestamp=nil)
457
+ def initialize(appcounter=nil, usercounter=nil, requestid=nil)
458
+ @AppCounter = appcounter
459
+ @UserCounter = usercounter
460
+ @RequestId = requestid
461
+ end
462
+
463
+ def deserialize(params)
464
+ unless params['AppCounter'].nil?
465
+ @AppCounter = ResourceCounterData.new
466
+ @AppCounter.deserialize(params['AppCounter'])
467
+ end
468
+ unless params['UserCounter'].nil?
469
+ @UserCounter = ResourceCounterData.new
470
+ @UserCounter.deserialize(params['UserCounter'])
471
+ end
472
+ @RequestId = params['RequestId']
473
+ end
474
+ end
475
+
476
+ # GetCredentialState请求参数结构体
477
+ class GetCredentialStateRequest < TencentCloud::Common::AbstractModel
478
+ # @param CredentialId: 凭证唯一Id
479
+ # @type CredentialId: String
480
+ # @param DAPId: 用户应用Id
481
+ # @type DAPId: Integer
482
+
483
+ attr_accessor :CredentialId, :DAPId
484
+
485
+ def initialize(credentialid=nil, dapid=nil)
326
486
  @CredentialId = credentialid
327
- @Status = status
328
- @Issuer = issuer
329
- @Digest = digest
330
- @Signature = signature
331
- @TimeStamp = timestamp
487
+ @DAPId = dapid
332
488
  end
333
489
 
334
490
  def deserialize(params)
335
491
  @CredentialId = params['CredentialId']
336
- @Status = params['Status']
337
- @Issuer = params['Issuer']
338
- @Digest = params['Digest']
339
- @Signature = params['Signature']
340
- @TimeStamp = params['TimeStamp']
492
+ @DAPId = params['DAPId']
341
493
  end
342
494
  end
343
495
 
344
- # 创建凭证入参的FunctionArg
345
- class FunctionArg < TencentCloud::Common::AbstractModel
346
- # @param CptId: CPT ID
347
- # @type CptId: Integer
348
- # @param Issuer: 签发者 did
349
- # @type Issuer: String
350
- # @param ExpirationDate: 过期时间
351
- # @type ExpirationDate: String
352
- # @param ClaimJson: 声明
353
- # @type ClaimJson: String
496
+ # GetCredentialState返回参数结构体
497
+ class GetCredentialStateResponse < TencentCloud::Common::AbstractModel
498
+ # @param CredentialState: 凭证状态信息
499
+ # 注意:此字段可能返回 null,表示取不到有效值。
500
+ # @type CredentialState: :class:`Tencentcloud::Tdid.v20210519.models.CredentialState`
501
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
502
+ # @type RequestId: String
354
503
 
355
- attr_accessor :CptId, :Issuer, :ExpirationDate, :ClaimJson
504
+ attr_accessor :CredentialState, :RequestId
356
505
 
357
- def initialize(cptid=nil, issuer=nil, expirationdate=nil, claimjson=nil)
358
- @CptId = cptid
359
- @Issuer = issuer
360
- @ExpirationDate = expirationdate
361
- @ClaimJson = claimjson
506
+ def initialize(credentialstate=nil, requestid=nil)
507
+ @CredentialState = credentialstate
508
+ @RequestId = requestid
362
509
  end
363
510
 
364
511
  def deserialize(params)
365
- @CptId = params['CptId']
366
- @Issuer = params['Issuer']
367
- @ExpirationDate = params['ExpirationDate']
368
- @ClaimJson = params['ClaimJson']
512
+ unless params['CredentialState'].nil?
513
+ @CredentialState = CredentialState.new
514
+ @CredentialState.deserialize(params['CredentialState'])
515
+ end
516
+ @RequestId = params['RequestId']
369
517
  end
370
518
  end
371
519
 
372
- # GetAuthorityIssuer请求参数结构体
373
- class GetAuthorityIssuerRequest < TencentCloud::Common::AbstractModel
374
- # @param Did: tdid
375
- # @type Did: String
520
+ # GetOverSummary请求参数结构体
521
+ class GetOverSummaryRequest < TencentCloud::Common::AbstractModel
376
522
 
377
- attr_accessor :Did
378
523
 
379
- def initialize(did=nil)
380
- @Did = did
524
+ def initialize()
381
525
  end
382
526
 
383
527
  def deserialize(params)
384
- @Did = params['Did']
385
528
  end
386
529
  end
387
530
 
388
- # GetAuthorityIssuer返回参数结构体
389
- class GetAuthorityIssuerResponse < TencentCloud::Common::AbstractModel
390
- # @param Name: 名称
391
- # @type Name: String
392
- # @param ClusterId: 区块链网络id
393
- # @type ClusterId: String
394
- # @param GroupId: 区块链群组id
395
- # @type GroupId: Integer
396
- # @param Did: 权威机构did
531
+ # GetOverSummary返回参数结构体
532
+ class GetOverSummaryResponse < TencentCloud::Common::AbstractModel
533
+ # @param AppCounter: 用户参与应用的统计指标
534
+ # 注意:此字段可能返回 null,表示取不到有效值。
535
+ # @type AppCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
536
+ # @param UserCounter: 用户部署应用的统计指标
537
+ # 注意:此字段可能返回 null,表示取不到有效值。
538
+ # @type UserCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
539
+ # @param AppCnt: 用户参与的应用总数
540
+ # 注意:此字段可能返回 null,表示取不到有效值。
541
+ # @type AppCnt: Integer
542
+ # @param DeployCnt: 用户部署的应用总数
543
+ # 注意:此字段可能返回 null,表示取不到有效值。
544
+ # @type DeployCnt: Integer
545
+ # @param ChainCnt: 部署网络子链总数
546
+ # 注意:此字段可能返回 null,表示取不到有效值。
547
+ # @type ChainCnt: Integer
548
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
549
+ # @type RequestId: String
550
+
551
+ attr_accessor :AppCounter, :UserCounter, :AppCnt, :DeployCnt, :ChainCnt, :RequestId
552
+
553
+ def initialize(appcounter=nil, usercounter=nil, appcnt=nil, deploycnt=nil, chaincnt=nil, requestid=nil)
554
+ @AppCounter = appcounter
555
+ @UserCounter = usercounter
556
+ @AppCnt = appcnt
557
+ @DeployCnt = deploycnt
558
+ @ChainCnt = chaincnt
559
+ @RequestId = requestid
560
+ end
561
+
562
+ def deserialize(params)
563
+ unless params['AppCounter'].nil?
564
+ @AppCounter = ResourceCounterData.new
565
+ @AppCounter.deserialize(params['AppCounter'])
566
+ end
567
+ unless params['UserCounter'].nil?
568
+ @UserCounter = ResourceCounterData.new
569
+ @UserCounter.deserialize(params['UserCounter'])
570
+ end
571
+ @AppCnt = params['AppCnt']
572
+ @DeployCnt = params['DeployCnt']
573
+ @ChainCnt = params['ChainCnt']
574
+ @RequestId = params['RequestId']
575
+ end
576
+ end
577
+
578
+ # GetTDidByObjectId请求参数结构体
579
+ class GetTDidByObjectIdRequest < TencentCloud::Common::AbstractModel
580
+ # @param ObjectId: 业务层为DID设置的唯一标识
581
+ # @type ObjectId: String
582
+ # @param DAPId: DID应用Id
583
+ # @type DAPId: Integer
584
+
585
+ attr_accessor :ObjectId, :DAPId
586
+
587
+ def initialize(objectid=nil, dapid=nil)
588
+ @ObjectId = objectid
589
+ @DAPId = dapid
590
+ end
591
+
592
+ def deserialize(params)
593
+ @ObjectId = params['ObjectId']
594
+ @DAPId = params['DAPId']
595
+ end
596
+ end
597
+
598
+ # GetTDidByObjectId返回参数结构体
599
+ class GetTDidByObjectIdResponse < TencentCloud::Common::AbstractModel
600
+ # @param Did: DID标识
601
+ # 注意:此字段可能返回 null,表示取不到有效值。
397
602
  # @type Did: String
398
- # @param Remark: 机构备注信息
399
- # @type Remark: String
400
- # @param RegisterTime: 注册时间
401
- # @type RegisterTime: String
402
- # @param RecognizeTime: 认证时间
403
- # @type RecognizeTime: String
404
603
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
405
604
  # @type RequestId: String
406
605
 
407
- attr_accessor :Name, :ClusterId, :GroupId, :Did, :Remark, :RegisterTime, :RecognizeTime, :RequestId
606
+ attr_accessor :Did, :RequestId
408
607
 
409
- def initialize(name=nil, clusterid=nil, groupid=nil, did=nil, remark=nil, registertime=nil, recognizetime=nil, requestid=nil)
410
- @Name = name
411
- @ClusterId = clusterid
412
- @GroupId = groupid
608
+ def initialize(did=nil, requestid=nil)
413
609
  @Did = did
414
- @Remark = remark
415
- @RegisterTime = registertime
416
- @RecognizeTime = recognizetime
417
610
  @RequestId = requestid
418
611
  end
419
612
 
420
613
  def deserialize(params)
421
- @Name = params['Name']
422
- @ClusterId = params['ClusterId']
423
- @GroupId = params['GroupId']
424
614
  @Did = params['Did']
425
- @Remark = params['Remark']
426
- @RegisterTime = params['RegisterTime']
427
- @RecognizeTime = params['RecognizeTime']
428
615
  @RequestId = params['RequestId']
429
616
  end
430
617
  end
431
618
 
432
- # GetCptInfo请求参数结构体
433
- class GetCptInfoRequest < TencentCloud::Common::AbstractModel
434
- # @param CptIndex: Cpt索引
435
- # @type CptIndex: Integer
619
+ # GetTDidDocument请求参数结构体
620
+ class GetTDidDocumentRequest < TencentCloud::Common::AbstractModel
621
+ # @param Did: DID标识
622
+ # @type Did: String
623
+ # @param DAPId: DID应用ID
624
+ # @type DAPId: Integer
436
625
 
437
- attr_accessor :CptIndex
626
+ attr_accessor :Did, :DAPId
438
627
 
439
- def initialize(cptindex=nil)
440
- @CptIndex = cptindex
628
+ def initialize(did=nil, dapid=nil)
629
+ @Did = did
630
+ @DAPId = dapid
441
631
  end
442
632
 
443
633
  def deserialize(params)
444
- @CptIndex = params['CptIndex']
634
+ @Did = params['Did']
635
+ @DAPId = params['DAPId']
445
636
  end
446
637
  end
447
638
 
448
- # GetCptInfo返回参数结构体
449
- class GetCptInfoResponse < TencentCloud::Common::AbstractModel
450
- # @param CptJsonData: CptJsonData的具体信息
451
- # @type CptJsonData: String
639
+ # GetTDidDocument返回参数结构体
640
+ class GetTDidDocumentResponse < TencentCloud::Common::AbstractModel
641
+ # @param Document: DID文档内容
642
+ # @type Document: String
452
643
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
453
644
  # @type RequestId: String
454
645
 
455
- attr_accessor :CptJsonData, :RequestId
646
+ attr_accessor :Document, :RequestId
456
647
 
457
- def initialize(cptjsondata=nil, requestid=nil)
458
- @CptJsonData = cptjsondata
648
+ def initialize(document=nil, requestid=nil)
649
+ @Document = document
459
650
  @RequestId = requestid
460
651
  end
461
652
 
462
653
  def deserialize(params)
463
- @CptJsonData = params['CptJsonData']
654
+ @Document = params['Document']
464
655
  @RequestId = params['RequestId']
465
656
  end
466
657
  end
467
658
 
468
- # GetCredentialStatus请求参数结构体
469
- class GetCredentialStatusRequest < TencentCloud::Common::AbstractModel
470
- # @param CredentialId: 凭证id
471
- # @type CredentialId: String
659
+ # GetTDidPubKey请求参数结构体
660
+ class GetTDidPubKeyRequest < TencentCloud::Common::AbstractModel
661
+ # @param Did: DID标识
662
+ # @type Did: String
663
+ # @param DAPId: DID应用Id
664
+ # @type DAPId: Integer
472
665
 
473
- attr_accessor :CredentialId
666
+ attr_accessor :Did, :DAPId
474
667
 
475
- def initialize(credentialid=nil)
476
- @CredentialId = credentialid
668
+ def initialize(did=nil, dapid=nil)
669
+ @Did = did
670
+ @DAPId = dapid
477
671
  end
478
672
 
479
673
  def deserialize(params)
480
- @CredentialId = params['CredentialId']
674
+ @Did = params['Did']
675
+ @DAPId = params['DAPId']
481
676
  end
482
677
  end
483
678
 
484
- # GetCredentialStatus返回参数结构体
485
- class GetCredentialStatusResponse < TencentCloud::Common::AbstractModel
486
- # @param CredentialStatus: 凭证状态信息
487
- # @type CredentialStatus: :class:`Tencentcloud::Tdid.v20210519.models.CredentialStatus`
679
+ # GetTDidPubKey返回参数结构体
680
+ class GetTDidPubKeyResponse < TencentCloud::Common::AbstractModel
681
+ # @param AuthPublicKeyList: DID公钥数组
682
+ # @type AuthPublicKeyList: Array
488
683
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
489
684
  # @type RequestId: String
490
685
 
491
- attr_accessor :CredentialStatus, :RequestId
686
+ attr_accessor :AuthPublicKeyList, :RequestId
492
687
 
493
- def initialize(credentialstatus=nil, requestid=nil)
494
- @CredentialStatus = credentialstatus
688
+ def initialize(authpublickeylist=nil, requestid=nil)
689
+ @AuthPublicKeyList = authpublickeylist
495
690
  @RequestId = requestid
496
691
  end
497
692
 
498
693
  def deserialize(params)
499
- unless params['CredentialStatus'].nil?
500
- @CredentialStatus = CredentialStatus.new
501
- @CredentialStatus.deserialize(params['CredentialStatus'])
694
+ @AuthPublicKeyList = params['AuthPublicKeyList']
695
+ @RequestId = params['RequestId']
696
+ end
697
+ end
698
+
699
+ # IssueCredential请求参数结构体
700
+ class IssueCredentialRequest < TencentCloud::Common::AbstractModel
701
+ # @param CRDLArg: 参数集合,详见示例
702
+ # @type CRDLArg: :class:`Tencentcloud::Tdid.v20210519.models.CRDLArg`
703
+ # @param UnSigned: 是否未签名
704
+ # @type UnSigned: Boolean
705
+ # @param DAPId: DID应用id
706
+ # @type DAPId: Integer
707
+
708
+ attr_accessor :CRDLArg, :UnSigned, :DAPId
709
+
710
+ def initialize(crdlarg=nil, unsigned=nil, dapid=nil)
711
+ @CRDLArg = crdlarg
712
+ @UnSigned = unsigned
713
+ @DAPId = dapid
714
+ end
715
+
716
+ def deserialize(params)
717
+ unless params['CRDLArg'].nil?
718
+ @CRDLArg = CRDLArg.new
719
+ @CRDLArg.deserialize(params['CRDLArg'])
502
720
  end
721
+ @UnSigned = params['UnSigned']
722
+ @DAPId = params['DAPId']
723
+ end
724
+ end
725
+
726
+ # IssueCredential返回参数结构体
727
+ class IssueCredentialResponse < TencentCloud::Common::AbstractModel
728
+ # @param CredentialData: 可验证凭证内容
729
+ # @type CredentialData: String
730
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
731
+ # @type RequestId: String
732
+
733
+ attr_accessor :CredentialData, :RequestId
734
+
735
+ def initialize(credentialdata=nil, requestid=nil)
736
+ @CredentialData = credentialdata
737
+ @RequestId = requestid
738
+ end
739
+
740
+ def deserialize(params)
741
+ @CredentialData = params['CredentialData']
503
742
  @RequestId = params['RequestId']
504
743
  end
505
744
  end
506
745
 
507
- # GetDidDocument请求参数结构体
508
- class GetDidDocumentRequest < TencentCloud::Common::AbstractModel
509
- # @param Did: tdid
746
+ # QueryAuthorityInfo请求参数结构体
747
+ class QueryAuthorityInfoRequest < TencentCloud::Common::AbstractModel
748
+ # @param Did: DID标识
510
749
  # @type Did: String
750
+ # @param DAPId: DID应用id
751
+ # @type DAPId: Integer
752
+ # @param Name: 权威机构名称
753
+ # @type Name: String
511
754
 
512
- attr_accessor :Did
755
+ attr_accessor :Did, :DAPId, :Name
513
756
 
514
- def initialize(did=nil)
757
+ def initialize(did=nil, dapid=nil, name=nil)
515
758
  @Did = did
759
+ @DAPId = dapid
760
+ @Name = name
516
761
  end
517
762
 
518
763
  def deserialize(params)
519
764
  @Did = params['Did']
765
+ @DAPId = params['DAPId']
766
+ @Name = params['Name']
520
767
  end
521
768
  end
522
769
 
523
- # GetDidDocument返回参数结构体
524
- class GetDidDocumentResponse < TencentCloud::Common::AbstractModel
770
+ # QueryAuthorityInfo返回参数结构体
771
+ class QueryAuthorityInfoResponse < TencentCloud::Common::AbstractModel
525
772
  # @param Name: 名称
526
773
  # @type Name: String
527
- # @param Document: DID文档
528
- # @type Document: String
774
+ # @param Did: 权威机构did
775
+ # @type Did: String
776
+ # @param Status: 状态:1为已认证,2为未认证
777
+ # @type Status: Integer
778
+ # @param Description: 机构备注信息
779
+ # @type Description: String
780
+ # @param RecognizeTime: 认证时间
781
+ # @type RecognizeTime: String
529
782
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
530
783
  # @type RequestId: String
531
784
 
532
- attr_accessor :Name, :Document, :RequestId
785
+ attr_accessor :Name, :Did, :Status, :Description, :RecognizeTime, :RequestId
533
786
 
534
- def initialize(name=nil, document=nil, requestid=nil)
787
+ def initialize(name=nil, did=nil, status=nil, description=nil, recognizetime=nil, requestid=nil)
535
788
  @Name = name
536
- @Document = document
789
+ @Did = did
790
+ @Status = status
791
+ @Description = description
792
+ @RecognizeTime = recognizetime
537
793
  @RequestId = requestid
538
794
  end
539
795
 
540
796
  def deserialize(params)
541
797
  @Name = params['Name']
542
- @Document = params['Document']
798
+ @Did = params['Did']
799
+ @Status = params['Status']
800
+ @Description = params['Description']
801
+ @RecognizeTime = params['RecognizeTime']
543
802
  @RequestId = params['RequestId']
544
803
  end
545
804
  end
546
805
 
547
- # 验证凭证签名
548
- class Proof < TencentCloud::Common::AbstractModel
549
- # @param Created: 创建时间
550
- # @type Created: Integer
551
- # @param Creator: 创建着did
552
- # @type Creator: String
553
- # @param SaltJson: salt值
554
- # @type SaltJson: String
555
- # @param SignatureValue: 签名
556
- # @type SignatureValue: String
557
- # @param Type: type类型
558
- # @type Type: String
806
+ # QueryCPT请求参数结构体
807
+ class QueryCPTRequest < TencentCloud::Common::AbstractModel
808
+ # @param DAPId: DID应用id
809
+ # @type DAPId: Integer
810
+ # @param CPTId: 凭证模板id
811
+ # @type CPTId: Integer
559
812
 
560
- attr_accessor :Created, :Creator, :SaltJson, :SignatureValue, :Type
813
+ attr_accessor :DAPId, :CPTId
561
814
 
562
- def initialize(created=nil, creator=nil, saltjson=nil, signaturevalue=nil, type=nil)
563
- @Created = created
564
- @Creator = creator
565
- @SaltJson = saltjson
566
- @SignatureValue = signaturevalue
567
- @Type = type
815
+ def initialize(dapid=nil, cptid=nil)
816
+ @DAPId = dapid
817
+ @CPTId = cptid
568
818
  end
569
819
 
570
820
  def deserialize(params)
571
- @Created = params['Created']
572
- @Creator = params['Creator']
573
- @SaltJson = params['SaltJson']
574
- @SignatureValue = params['SignatureValue']
575
- @Type = params['Type']
821
+ @DAPId = params['DAPId']
822
+ @CPTId = params['CPTId']
576
823
  end
577
824
  end
578
825
 
579
- # RegisterCpt请求参数结构体
580
- class RegisterCptRequest < TencentCloud::Common::AbstractModel
581
- # @param GroupId: 群组ID
582
- # @type GroupId: Integer
583
- # @param ClusterId: 网络ID
584
- # @type ClusterId: String
585
- # @param CptJson: CptJson的具体信息
586
- # @type CptJson: String
587
- # @param CptId: cptId 不填默认自增
588
- # @type CptId: Integer
826
+ # QueryCPT返回参数结构体
827
+ class QueryCPTResponse < TencentCloud::Common::AbstractModel
828
+ # @param CPTJson: 凭证模板内容
829
+ # @type CPTJson: String
830
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
831
+ # @type RequestId: String
589
832
 
590
- attr_accessor :GroupId, :ClusterId, :CptJson, :CptId
833
+ attr_accessor :CPTJson, :RequestId
591
834
 
592
- def initialize(groupid=nil, clusterid=nil, cptjson=nil, cptid=nil)
593
- @GroupId = groupid
594
- @ClusterId = clusterid
595
- @CptJson = cptjson
596
- @CptId = cptid
835
+ def initialize(cptjson=nil, requestid=nil)
836
+ @CPTJson = cptjson
837
+ @RequestId = requestid
597
838
  end
598
839
 
599
840
  def deserialize(params)
600
- @GroupId = params['GroupId']
601
- @ClusterId = params['ClusterId']
602
- @CptJson = params['CptJson']
603
- @CptId = params['CptId']
841
+ @CPTJson = params['CPTJson']
842
+ @RequestId = params['RequestId']
604
843
  end
605
844
  end
606
845
 
607
- # RegisterCpt返回参数结构体
608
- class RegisterCptResponse < TencentCloud::Common::AbstractModel
609
- # @param Id: 凭证模板索引
610
- # @type Id: Integer
611
- # @param CptId: 凭证模板id
612
- # @type CptId: Integer
613
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
614
- # @type RequestId: String
846
+ # 资源计数统计数据
847
+ class ResourceCounterData < TencentCloud::Common::AbstractModel
848
+ # @param DidCnt: DID总数
849
+ # 注意:此字段可能返回 null,表示取不到有效值。
850
+ # @type DidCnt: Integer
851
+ # @param VCCnt: VC总数
852
+ # 注意:此字段可能返回 null,表示取不到有效值。
853
+ # @type VCCnt: Integer
854
+ # @param CPTCnt: CPT总数
855
+ # 注意:此字段可能返回 null,表示取不到有效值。
856
+ # @type CPTCnt: Integer
857
+ # @param VerifyCnt: VC验证总数
858
+ # 注意:此字段可能返回 null,表示取不到有效值。
859
+ # @type VerifyCnt: Integer
860
+ # @param AuthCnt: 权威机构数量
861
+ # 注意:此字段可能返回 null,表示取不到有效值。
862
+ # @type AuthCnt: Integer
615
863
 
616
- attr_accessor :Id, :CptId, :RequestId
864
+ attr_accessor :DidCnt, :VCCnt, :CPTCnt, :VerifyCnt, :AuthCnt
617
865
 
618
- def initialize(id=nil, cptid=nil, requestid=nil)
619
- @Id = id
620
- @CptId = cptid
621
- @RequestId = requestid
866
+ def initialize(didcnt=nil, vccnt=nil, cptcnt=nil, verifycnt=nil, authcnt=nil)
867
+ @DidCnt = didcnt
868
+ @VCCnt = vccnt
869
+ @CPTCnt = cptcnt
870
+ @VerifyCnt = verifycnt
871
+ @AuthCnt = authcnt
622
872
  end
623
873
 
624
874
  def deserialize(params)
625
- @Id = params['Id']
626
- @CptId = params['CptId']
627
- @RequestId = params['RequestId']
875
+ @DidCnt = params['DidCnt']
876
+ @VCCnt = params['VCCnt']
877
+ @CPTCnt = params['CPTCnt']
878
+ @VerifyCnt = params['VerifyCnt']
879
+ @AuthCnt = params['AuthCnt']
628
880
  end
629
881
  end
630
882
 
631
- # SetCredentialStatus请求参数结构体
632
- class SetCredentialStatusRequest < TencentCloud::Common::AbstractModel
633
- # @param CredentialStatus: 凭证状态
634
- # @type CredentialStatus: :class:`Tencentcloud::Tdid.v20210519.models.CredentialStatus`
883
+ # SetTDidAttribute请求参数结构体
884
+ class SetTDidAttributeRequest < TencentCloud::Common::AbstractModel
885
+ # @param Did: DID标识符
886
+ # @type Did: String
887
+ # @param Attributes: 属性名值对数组
888
+ # @type Attributes: Array
889
+ # @param DAPId: DID应用Id
890
+ # @type DAPId: Integer
891
+ # @param OperateCredential: 操作鉴权凭证
892
+ # @type OperateCredential: String
635
893
 
636
- attr_accessor :CredentialStatus
894
+ attr_accessor :Did, :Attributes, :DAPId, :OperateCredential
637
895
 
638
- def initialize(credentialstatus=nil)
639
- @CredentialStatus = credentialstatus
896
+ def initialize(did=nil, attributes=nil, dapid=nil, operatecredential=nil)
897
+ @Did = did
898
+ @Attributes = attributes
899
+ @DAPId = dapid
900
+ @OperateCredential = operatecredential
640
901
  end
641
902
 
642
903
  def deserialize(params)
643
- unless params['CredentialStatus'].nil?
644
- @CredentialStatus = CredentialStatus.new
645
- @CredentialStatus.deserialize(params['CredentialStatus'])
904
+ @Did = params['Did']
905
+ unless params['Attributes'].nil?
906
+ @Attributes = []
907
+ params['Attributes'].each do |i|
908
+ didattribute_tmp = DidAttribute.new
909
+ didattribute_tmp.deserialize(i)
910
+ @Attributes << didattribute_tmp
911
+ end
646
912
  end
913
+ @DAPId = params['DAPId']
914
+ @OperateCredential = params['OperateCredential']
647
915
  end
648
916
  end
649
917
 
650
- # SetCredentialStatus返回参数结构体
651
- class SetCredentialStatusResponse < TencentCloud::Common::AbstractModel
918
+ # SetTDidAttribute返回参数结构体
919
+ class SetTDidAttributeResponse < TencentCloud::Common::AbstractModel
920
+ # @param Transaction: 上链交易信息
921
+ # @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
652
922
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
653
923
  # @type RequestId: String
654
924
 
655
- attr_accessor :RequestId
925
+ attr_accessor :Transaction, :RequestId
656
926
 
657
- def initialize(requestid=nil)
927
+ def initialize(transaction=nil, requestid=nil)
928
+ @Transaction = transaction
658
929
  @RequestId = requestid
659
930
  end
660
931
 
661
932
  def deserialize(params)
933
+ unless params['Transaction'].nil?
934
+ @Transaction = ChainTransaction.new
935
+ @Transaction.deserialize(params['Transaction'])
936
+ end
662
937
  @RequestId = params['RequestId']
663
938
  end
664
939
  end
665
940
 
666
- # 创建凭证第二个
667
- class TransactionArg < TencentCloud::Common::AbstractModel
668
- # @param InvokerTDid: 凭证did
669
- # @type InvokerTDid: String
941
+ # UpdateCredentialState请求参数结构体
942
+ class UpdateCredentialStateRequest < TencentCloud::Common::AbstractModel
943
+ # @param DAPId: DID应用Id
944
+ # @type DAPId: Integer
945
+ # @param OperateCredential: 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
946
+ # @type OperateCredential: String
670
947
 
671
- attr_accessor :InvokerTDid
948
+ attr_accessor :DAPId, :OperateCredential
672
949
 
673
- def initialize(invokertdid=nil)
674
- @InvokerTDid = invokertdid
950
+ def initialize(dapid=nil, operatecredential=nil)
951
+ @DAPId = dapid
952
+ @OperateCredential = operatecredential
675
953
  end
676
954
 
677
955
  def deserialize(params)
678
- @InvokerTDid = params['InvokerTDid']
956
+ @DAPId = params['DAPId']
957
+ @OperateCredential = params['OperateCredential']
679
958
  end
680
959
  end
681
960
 
682
- # VerifyCredential请求参数结构体
683
- class VerifyCredentialRequest < TencentCloud::Common::AbstractModel
684
- # @param FunctionArg: 参数集合
685
- # @type FunctionArg: :class:`Tencentcloud::Tdid.v20210519.models.VerifyFunctionArg`
961
+ # UpdateCredentialState返回参数结构体
962
+ class UpdateCredentialStateResponse < TencentCloud::Common::AbstractModel
963
+ # @param Result: 更新是否成功
964
+ # 注意:此字段可能返回 null,表示取不到有效值。
965
+ # @type Result: Boolean
966
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
967
+ # @type RequestId: String
686
968
 
687
- attr_accessor :FunctionArg
969
+ attr_accessor :Result, :RequestId
688
970
 
689
- def initialize(functionarg=nil)
690
- @FunctionArg = functionarg
971
+ def initialize(result=nil, requestid=nil)
972
+ @Result = result
973
+ @RequestId = requestid
691
974
  end
692
975
 
693
976
  def deserialize(params)
694
- unless params['FunctionArg'].nil?
695
- @FunctionArg = VerifyFunctionArg.new
696
- @FunctionArg.deserialize(params['FunctionArg'])
697
- end
977
+ @Result = params['Result']
978
+ @RequestId = params['RequestId']
698
979
  end
699
980
  end
700
981
 
701
- # VerifyCredential返回参数结构体
702
- class VerifyCredentialResponse < TencentCloud::Common::AbstractModel
982
+ # VerifyCredentials请求参数结构体
983
+ class VerifyCredentialsRequest < TencentCloud::Common::AbstractModel
984
+ # @param VerifyType: 0:仅验证签名,1:验证签名和链上状态,2, 仅验证链上状态,默认为0, 3.验证DID和凭证状态以及签名,4. 验证历史凭证有效性
985
+ # @type VerifyType: Integer
986
+ # @param CredentialData: 凭证内容
987
+ # @type CredentialData: String
988
+ # @param DAPId: DID应用id
989
+ # @type DAPId: Integer
990
+
991
+ attr_accessor :VerifyType, :CredentialData, :DAPId
992
+
993
+ def initialize(verifytype=nil, credentialdata=nil, dapid=nil)
994
+ @VerifyType = verifytype
995
+ @CredentialData = credentialdata
996
+ @DAPId = dapid
997
+ end
998
+
999
+ def deserialize(params)
1000
+ @VerifyType = params['VerifyType']
1001
+ @CredentialData = params['CredentialData']
1002
+ @DAPId = params['DAPId']
1003
+ end
1004
+ end
1005
+
1006
+ # VerifyCredentials返回参数结构体
1007
+ class VerifyCredentialsResponse < TencentCloud::Common::AbstractModel
703
1008
  # @param Result: 是否验证成功
704
1009
  # @type Result: Boolean
705
1010
  # @param VerifyCode: 验证返回码
706
1011
  # @type VerifyCode: Integer
707
- # @param VerifyMessage: 验证消息
1012
+ # @param VerifyMessage: 验证结果信息
708
1013
  # @type VerifyMessage: String
709
1014
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
710
1015
  # @type RequestId: String
@@ -726,54 +1031,59 @@ module TencentCloud
726
1031
  end
727
1032
  end
728
1033
 
729
- # 验证凭证参数值
730
- class VerifyFunctionArg < TencentCloud::Common::AbstractModel
731
- # @param CptId: CPT ID
732
- # @type CptId: Integer
733
- # @param Issuer: issuer did
734
- # @type Issuer: String
735
- # @param ExpirationDate: 过期时间
736
- # @type ExpirationDate: Integer
737
- # @param ClaimJson: 声明
738
- # @type ClaimJson: String
739
- # @param IssuanceDate: 颁发时间
740
- # @type IssuanceDate: Integer
741
- # @param Context: context值
742
- # @type Context: String
743
- # @param Id: id值
744
- # @type Id: String
745
- # @param Proof: 签名值
746
- # @type Proof: :class:`Tencentcloud::Tdid.v20210519.models.Proof`
747
- # @param Type: type值
748
- # @type Type: Array
1034
+ # VerifyPresentation请求参数结构体
1035
+ class VerifyPresentationRequest < TencentCloud::Common::AbstractModel
1036
+ # @param Did: VP持有人的did标识
1037
+ # @type Did: String
1038
+ # @param PresentationData: 可验证表达内容
1039
+ # @type PresentationData: String
1040
+ # @param DAPId: DID应用id
1041
+ # @type DAPId: Integer
1042
+ # @param VerifyCode: 随机验证码
1043
+ # @type VerifyCode: String
749
1044
 
750
- attr_accessor :CptId, :Issuer, :ExpirationDate, :ClaimJson, :IssuanceDate, :Context, :Id, :Proof, :Type
1045
+ attr_accessor :Did, :PresentationData, :DAPId, :VerifyCode
751
1046
 
752
- def initialize(cptid=nil, issuer=nil, expirationdate=nil, claimjson=nil, issuancedate=nil, context=nil, id=nil, proof=nil, type=nil)
753
- @CptId = cptid
754
- @Issuer = issuer
755
- @ExpirationDate = expirationdate
756
- @ClaimJson = claimjson
757
- @IssuanceDate = issuancedate
758
- @Context = context
759
- @Id = id
760
- @Proof = proof
761
- @Type = type
1047
+ def initialize(did=nil, presentationdata=nil, dapid=nil, verifycode=nil)
1048
+ @Did = did
1049
+ @PresentationData = presentationdata
1050
+ @DAPId = dapid
1051
+ @VerifyCode = verifycode
762
1052
  end
763
1053
 
764
1054
  def deserialize(params)
765
- @CptId = params['CptId']
766
- @Issuer = params['Issuer']
767
- @ExpirationDate = params['ExpirationDate']
768
- @ClaimJson = params['ClaimJson']
769
- @IssuanceDate = params['IssuanceDate']
770
- @Context = params['Context']
771
- @Id = params['Id']
772
- unless params['Proof'].nil?
773
- @Proof = Proof.new
774
- @Proof.deserialize(params['Proof'])
775
- end
776
- @Type = params['Type']
1055
+ @Did = params['Did']
1056
+ @PresentationData = params['PresentationData']
1057
+ @DAPId = params['DAPId']
1058
+ @VerifyCode = params['VerifyCode']
1059
+ end
1060
+ end
1061
+
1062
+ # VerifyPresentation返回参数结构体
1063
+ class VerifyPresentationResponse < TencentCloud::Common::AbstractModel
1064
+ # @param Result: 是否验证成功
1065
+ # @type Result: Boolean
1066
+ # @param VerifyCode: 验证返回码
1067
+ # @type VerifyCode: Integer
1068
+ # @param VerifyMessage: 验证消息
1069
+ # @type VerifyMessage: String
1070
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1071
+ # @type RequestId: String
1072
+
1073
+ attr_accessor :Result, :VerifyCode, :VerifyMessage, :RequestId
1074
+
1075
+ def initialize(result=nil, verifycode=nil, verifymessage=nil, requestid=nil)
1076
+ @Result = result
1077
+ @VerifyCode = verifycode
1078
+ @VerifyMessage = verifymessage
1079
+ @RequestId = requestid
1080
+ end
1081
+
1082
+ def deserialize(params)
1083
+ @Result = params['Result']
1084
+ @VerifyCode = params['VerifyCode']
1085
+ @VerifyMessage = params['VerifyMessage']
1086
+ @RequestId = params['RequestId']
777
1087
  end
778
1088
  end
779
1089