tencentcloud-sdk-tdid 3.0.746 → 3.0.748
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210519/client.rb +206 -112
- data/lib/v20210519/models.rb +735 -425
- metadata +2 -2
data/lib/v20210519/models.rb
CHANGED
@@ -17,95 +17,89 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Tdid
|
19
19
|
module V20210519
|
20
|
-
#
|
21
|
-
class
|
22
|
-
# @param
|
23
|
-
# @type
|
24
|
-
# @param
|
25
|
-
# @type
|
26
|
-
# @param
|
27
|
-
# @type
|
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 :
|
35
|
+
attr_accessor :CPTId, :Issuer, :ExpirationDate, :ClaimJson, :Type, :Parties
|
30
36
|
|
31
|
-
def initialize(
|
32
|
-
@
|
33
|
-
@
|
34
|
-
@
|
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
|
-
@
|
39
|
-
@
|
40
|
-
@
|
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
|
-
#
|
45
|
-
class
|
46
|
-
# @param
|
47
|
-
# @type
|
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 :
|
61
|
+
attr_accessor :TransactionHash
|
56
62
|
|
57
|
-
def initialize(
|
58
|
-
@
|
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
|
-
@
|
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
|
-
#
|
73
|
-
class
|
74
|
-
# @param
|
75
|
-
# @type
|
76
|
-
# @param
|
77
|
-
# @type
|
78
|
-
# @param
|
79
|
-
# @type
|
80
|
-
# @param
|
81
|
-
# @type
|
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 :
|
83
|
+
attr_accessor :PolicyId, :CredentialData, :PolicyJson, :DAPId
|
84
84
|
|
85
|
-
def initialize(
|
86
|
-
@
|
87
|
-
@
|
88
|
-
@
|
89
|
-
@
|
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
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
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
|
-
#
|
107
|
-
class
|
108
|
-
# @param CredentialData:
|
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
|
-
#
|
127
|
-
class
|
128
|
-
# @param
|
129
|
-
# @type
|
130
|
-
# @param
|
131
|
-
# @type
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
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
|
-
|
142
|
-
|
143
|
-
|
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
|
-
#
|
150
|
-
class
|
151
|
-
# @param
|
152
|
-
# @type
|
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 :
|
174
|
+
attr_accessor :PresentationData, :RequestId
|
157
175
|
|
158
|
-
def initialize(
|
159
|
-
@
|
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
|
-
@
|
182
|
+
@PresentationData = params['PresentationData']
|
165
183
|
@RequestId = params['RequestId']
|
166
184
|
end
|
167
185
|
end
|
168
186
|
|
169
|
-
#
|
170
|
-
class
|
171
|
-
# @param
|
172
|
-
# @type
|
173
|
-
# @param
|
174
|
-
# @type
|
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 :
|
194
|
+
attr_accessor :DAPId, :CustomAttribute
|
179
195
|
|
180
|
-
def initialize(
|
181
|
-
@
|
182
|
-
@
|
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
|
-
@
|
188
|
-
@
|
189
|
-
@PrivateKey = params['PrivateKey']
|
202
|
+
@DAPId = params['DAPId']
|
203
|
+
@CustomAttribute = params['CustomAttribute']
|
190
204
|
end
|
191
205
|
end
|
192
206
|
|
193
|
-
#
|
194
|
-
class
|
195
|
-
# @param 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
|
-
#
|
214
|
-
class
|
215
|
-
# @param
|
216
|
-
# @type
|
217
|
-
# @param
|
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
|
222
|
-
# @type
|
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 :
|
245
|
+
attr_accessor :DAPId, :PublicKey, :CustomAttribute, :IgnoreExisted
|
225
246
|
|
226
|
-
def initialize(
|
227
|
-
@
|
228
|
-
@GroupId = groupid
|
247
|
+
def initialize(dapid=nil, publickey=nil, customattribute=nil, ignoreexisted=nil)
|
248
|
+
@DAPId = dapid
|
229
249
|
@PublicKey = publickey
|
230
|
-
@
|
250
|
+
@CustomAttribute = customattribute
|
251
|
+
@IgnoreExisted = ignoreexisted
|
231
252
|
end
|
232
253
|
|
233
254
|
def deserialize(params)
|
234
|
-
@
|
235
|
-
@GroupId = params['GroupId']
|
255
|
+
@DAPId = params['DAPId']
|
236
256
|
@PublicKey = params['PublicKey']
|
237
|
-
@
|
257
|
+
@CustomAttribute = params['CustomAttribute']
|
258
|
+
@IgnoreExisted = params['IgnoreExisted']
|
238
259
|
end
|
239
260
|
end
|
240
261
|
|
241
|
-
#
|
242
|
-
class
|
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
|
-
#
|
262
|
-
class
|
263
|
-
# @param
|
264
|
-
# @type
|
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 :
|
294
|
+
attr_accessor :Credential
|
271
295
|
|
272
|
-
def initialize(
|
273
|
-
@
|
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
|
-
@
|
280
|
-
@ClusterId = params['ClusterId']
|
281
|
-
@Relegation = params['Relegation']
|
301
|
+
@Credential = params['Credential']
|
282
302
|
end
|
283
303
|
end
|
284
304
|
|
285
|
-
#
|
286
|
-
class
|
287
|
-
# @param
|
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 :
|
392
|
+
attr_accessor :Transaction, :RequestId
|
293
393
|
|
294
|
-
def initialize(
|
295
|
-
@
|
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
|
-
|
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
|
307
|
-
# @param
|
308
|
-
# @type
|
309
|
-
# @param
|
310
|
-
# @type
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
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
|
319
|
-
# @param
|
448
|
+
# @type AppCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
|
449
|
+
# @param UserCounter: 用户创建资源的统计指标
|
320
450
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
321
|
-
# @type
|
451
|
+
# @type UserCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
|
452
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
453
|
+
# @type RequestId: String
|
322
454
|
|
323
|
-
attr_accessor :
|
455
|
+
attr_accessor :AppCounter, :UserCounter, :RequestId
|
324
456
|
|
325
|
-
def initialize(
|
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
|
-
@
|
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
|
-
@
|
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
|
-
#
|
345
|
-
class
|
346
|
-
# @param
|
347
|
-
#
|
348
|
-
# @
|
349
|
-
# @
|
350
|
-
# @
|
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 :
|
504
|
+
attr_accessor :CredentialState, :RequestId
|
356
505
|
|
357
|
-
def initialize(
|
358
|
-
@
|
359
|
-
@
|
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
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
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
|
-
#
|
373
|
-
class
|
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(
|
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
|
-
#
|
389
|
-
class
|
390
|
-
# @param
|
391
|
-
#
|
392
|
-
# @
|
393
|
-
# @
|
394
|
-
#
|
395
|
-
# @type
|
396
|
-
# @param
|
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 :
|
606
|
+
attr_accessor :Did, :RequestId
|
408
607
|
|
409
|
-
def initialize(
|
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
|
-
#
|
433
|
-
class
|
434
|
-
# @param
|
435
|
-
# @type
|
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 :
|
626
|
+
attr_accessor :Did, :DAPId
|
438
627
|
|
439
|
-
def initialize(
|
440
|
-
@
|
628
|
+
def initialize(did=nil, dapid=nil)
|
629
|
+
@Did = did
|
630
|
+
@DAPId = dapid
|
441
631
|
end
|
442
632
|
|
443
633
|
def deserialize(params)
|
444
|
-
@
|
634
|
+
@Did = params['Did']
|
635
|
+
@DAPId = params['DAPId']
|
445
636
|
end
|
446
637
|
end
|
447
638
|
|
448
|
-
#
|
449
|
-
class
|
450
|
-
# @param
|
451
|
-
# @type
|
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 :
|
646
|
+
attr_accessor :Document, :RequestId
|
456
647
|
|
457
|
-
def initialize(
|
458
|
-
@
|
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
|
-
@
|
654
|
+
@Document = params['Document']
|
464
655
|
@RequestId = params['RequestId']
|
465
656
|
end
|
466
657
|
end
|
467
658
|
|
468
|
-
#
|
469
|
-
class
|
470
|
-
# @param
|
471
|
-
# @type
|
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 :
|
666
|
+
attr_accessor :Did, :DAPId
|
474
667
|
|
475
|
-
def initialize(
|
476
|
-
@
|
668
|
+
def initialize(did=nil, dapid=nil)
|
669
|
+
@Did = did
|
670
|
+
@DAPId = dapid
|
477
671
|
end
|
478
672
|
|
479
673
|
def deserialize(params)
|
480
|
-
@
|
674
|
+
@Did = params['Did']
|
675
|
+
@DAPId = params['DAPId']
|
481
676
|
end
|
482
677
|
end
|
483
678
|
|
484
|
-
#
|
485
|
-
class
|
486
|
-
# @param
|
487
|
-
# @type
|
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 :
|
686
|
+
attr_accessor :AuthPublicKeyList, :RequestId
|
492
687
|
|
493
|
-
def initialize(
|
494
|
-
@
|
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
|
-
|
500
|
-
|
501
|
-
|
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
|
-
#
|
508
|
-
class
|
509
|
-
# @param Did:
|
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
|
-
#
|
524
|
-
class
|
770
|
+
# QueryAuthorityInfo返回参数结构体
|
771
|
+
class QueryAuthorityInfoResponse < TencentCloud::Common::AbstractModel
|
525
772
|
# @param Name: 名称
|
526
773
|
# @type Name: String
|
527
|
-
# @param
|
528
|
-
# @type
|
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, :
|
785
|
+
attr_accessor :Name, :Did, :Status, :Description, :RecognizeTime, :RequestId
|
533
786
|
|
534
|
-
def initialize(name=nil,
|
787
|
+
def initialize(name=nil, did=nil, status=nil, description=nil, recognizetime=nil, requestid=nil)
|
535
788
|
@Name = name
|
536
|
-
@
|
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
|
-
@
|
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
|
549
|
-
# @param
|
550
|
-
# @type
|
551
|
-
# @param
|
552
|
-
# @type
|
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 :
|
813
|
+
attr_accessor :DAPId, :CPTId
|
561
814
|
|
562
|
-
def initialize(
|
563
|
-
@
|
564
|
-
@
|
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
|
-
@
|
572
|
-
@
|
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
|
-
#
|
580
|
-
class
|
581
|
-
# @param
|
582
|
-
# @type
|
583
|
-
# @param
|
584
|
-
# @type
|
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 :
|
833
|
+
attr_accessor :CPTJson, :RequestId
|
591
834
|
|
592
|
-
def initialize(
|
593
|
-
@
|
594
|
-
@
|
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
|
-
@
|
601
|
-
@
|
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
|
-
#
|
608
|
-
class
|
609
|
-
# @param
|
610
|
-
#
|
611
|
-
# @
|
612
|
-
# @
|
613
|
-
#
|
614
|
-
# @type
|
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 :
|
864
|
+
attr_accessor :DidCnt, :VCCnt, :CPTCnt, :VerifyCnt, :AuthCnt
|
617
865
|
|
618
|
-
def initialize(
|
619
|
-
@
|
620
|
-
@
|
621
|
-
@
|
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
|
-
@
|
626
|
-
@
|
627
|
-
@
|
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
|
-
#
|
632
|
-
class
|
633
|
-
# @param
|
634
|
-
# @type
|
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 :
|
894
|
+
attr_accessor :Did, :Attributes, :DAPId, :OperateCredential
|
637
895
|
|
638
|
-
def initialize(
|
639
|
-
@
|
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
|
-
|
644
|
-
|
645
|
-
@
|
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
|
-
#
|
651
|
-
class
|
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
|
668
|
-
# @param
|
669
|
-
# @type
|
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 :
|
948
|
+
attr_accessor :DAPId, :OperateCredential
|
672
949
|
|
673
|
-
def initialize(
|
674
|
-
@
|
950
|
+
def initialize(dapid=nil, operatecredential=nil)
|
951
|
+
@DAPId = dapid
|
952
|
+
@OperateCredential = operatecredential
|
675
953
|
end
|
676
954
|
|
677
955
|
def deserialize(params)
|
678
|
-
@
|
956
|
+
@DAPId = params['DAPId']
|
957
|
+
@OperateCredential = params['OperateCredential']
|
679
958
|
end
|
680
959
|
end
|
681
960
|
|
682
|
-
#
|
683
|
-
class
|
684
|
-
# @param
|
685
|
-
#
|
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 :
|
969
|
+
attr_accessor :Result, :RequestId
|
688
970
|
|
689
|
-
def initialize(
|
690
|
-
@
|
971
|
+
def initialize(result=nil, requestid=nil)
|
972
|
+
@Result = result
|
973
|
+
@RequestId = requestid
|
691
974
|
end
|
692
975
|
|
693
976
|
def deserialize(params)
|
694
|
-
|
695
|
-
|
696
|
-
@FunctionArg.deserialize(params['FunctionArg'])
|
697
|
-
end
|
977
|
+
@Result = params['Result']
|
978
|
+
@RequestId = params['RequestId']
|
698
979
|
end
|
699
980
|
end
|
700
981
|
|
701
|
-
#
|
702
|
-
class
|
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
|
731
|
-
# @param
|
732
|
-
# @type
|
733
|
-
# @param
|
734
|
-
# @type
|
735
|
-
# @param
|
736
|
-
# @type
|
737
|
-
# @param
|
738
|
-
# @type
|
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 :
|
1045
|
+
attr_accessor :Did, :PresentationData, :DAPId, :VerifyCode
|
751
1046
|
|
752
|
-
def initialize(
|
753
|
-
@
|
754
|
-
@
|
755
|
-
@
|
756
|
-
@
|
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
|
-
@
|
766
|
-
@
|
767
|
-
@
|
768
|
-
@
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
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
|
|