tencentcloud-sdk-tdid 3.0.745 → 3.0.747
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210519/client.rb +62 -184
- data/lib/v20210519/models.rb +256 -508
- metadata +3 -3
data/lib/v20210519/models.rb
CHANGED
@@ -17,694 +17,493 @@
|
|
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 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
|
+
# CheckNewPurchase请求参数结构体
|
73
|
+
class CheckNewPurchaseRequest < TencentCloud::Common::AbstractModel
|
82
74
|
|
83
|
-
attr_accessor :FunctionArg, :TransactionArg, :VersionCredential, :UnSigned
|
84
75
|
|
85
|
-
def initialize(
|
86
|
-
@FunctionArg = functionarg
|
87
|
-
@TransactionArg = transactionarg
|
88
|
-
@VersionCredential = versioncredential
|
89
|
-
@UnSigned = unsigned
|
76
|
+
def initialize()
|
90
77
|
end
|
91
78
|
|
92
79
|
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']
|
103
80
|
end
|
104
81
|
end
|
105
82
|
|
106
|
-
#
|
107
|
-
class
|
108
|
-
# @param CredentialData: Credential的具体信息
|
109
|
-
# @type CredentialData: String
|
83
|
+
# CheckNewPurchase返回参数结构体
|
84
|
+
class CheckNewPurchaseResponse < TencentCloud::Common::AbstractModel
|
110
85
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
111
86
|
# @type RequestId: String
|
112
87
|
|
113
|
-
attr_accessor :
|
114
|
-
|
115
|
-
def initialize(credentialdata=nil, requestid=nil)
|
116
|
-
@CredentialData = credentialdata
|
117
|
-
@RequestId = requestid
|
118
|
-
end
|
119
|
-
|
120
|
-
def deserialize(params)
|
121
|
-
@CredentialData = params['CredentialData']
|
122
|
-
@RequestId = params['RequestId']
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
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
|
138
|
-
end
|
139
|
-
|
140
|
-
def deserialize(params)
|
141
|
-
unless params['FunctionArg'].nil?
|
142
|
-
@FunctionArg = VerifyFunctionArg.new
|
143
|
-
@FunctionArg.deserialize(params['FunctionArg'])
|
144
|
-
end
|
145
|
-
@PolicyId = params['PolicyId']
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
# CreateSelectiveCredential返回参数结构体
|
150
|
-
class CreateSelectiveCredentialResponse < TencentCloud::Common::AbstractModel
|
151
|
-
# @param CredentialData: 凭证字符串
|
152
|
-
# @type CredentialData: String
|
153
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
154
|
-
# @type RequestId: String
|
155
|
-
|
156
|
-
attr_accessor :CredentialData, :RequestId
|
88
|
+
attr_accessor :RequestId
|
157
89
|
|
158
|
-
def initialize(
|
159
|
-
@CredentialData = credentialdata
|
90
|
+
def initialize(requestid=nil)
|
160
91
|
@RequestId = requestid
|
161
92
|
end
|
162
93
|
|
163
94
|
def deserialize(params)
|
164
|
-
@CredentialData = params['CredentialData']
|
165
95
|
@RequestId = params['RequestId']
|
166
96
|
end
|
167
97
|
end
|
168
98
|
|
169
|
-
#
|
170
|
-
class
|
171
|
-
# @param
|
172
|
-
# @type
|
173
|
-
# @param
|
174
|
-
# @type
|
175
|
-
# @param PrivateKey: 私钥
|
176
|
-
# @type PrivateKey: String
|
99
|
+
# CreateTDidByHost请求参数结构体
|
100
|
+
class CreateTDidByHostRequest < TencentCloud::Common::AbstractModel
|
101
|
+
# @param DAPId: DID应用ID
|
102
|
+
# @type DAPId: Integer
|
103
|
+
# @param CustomAttribute: 自定义DID文档json属性
|
104
|
+
# @type CustomAttribute: String
|
177
105
|
|
178
|
-
attr_accessor :
|
106
|
+
attr_accessor :DAPId, :CustomAttribute
|
179
107
|
|
180
|
-
def initialize(
|
181
|
-
@
|
182
|
-
@
|
183
|
-
@PrivateKey = privatekey
|
108
|
+
def initialize(dapid=nil, customattribute=nil)
|
109
|
+
@DAPId = dapid
|
110
|
+
@CustomAttribute = customattribute
|
184
111
|
end
|
185
112
|
|
186
113
|
def deserialize(params)
|
187
|
-
@
|
188
|
-
@
|
189
|
-
@PrivateKey = params['PrivateKey']
|
114
|
+
@DAPId = params['DAPId']
|
115
|
+
@CustomAttribute = params['CustomAttribute']
|
190
116
|
end
|
191
117
|
end
|
192
118
|
|
193
|
-
#
|
194
|
-
class
|
195
|
-
# @param Did:
|
119
|
+
# CreateTDidByHost返回参数结构体
|
120
|
+
class CreateTDidByHostResponse < TencentCloud::Common::AbstractModel
|
121
|
+
# @param Did: DID标识
|
196
122
|
# @type Did: String
|
123
|
+
# @param Transaction: 链上交易信息
|
124
|
+
# @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
|
197
125
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
198
126
|
# @type RequestId: String
|
199
127
|
|
200
|
-
attr_accessor :Did, :RequestId
|
128
|
+
attr_accessor :Did, :Transaction, :RequestId
|
201
129
|
|
202
|
-
def initialize(did=nil, requestid=nil)
|
130
|
+
def initialize(did=nil, transaction=nil, requestid=nil)
|
203
131
|
@Did = did
|
132
|
+
@Transaction = transaction
|
204
133
|
@RequestId = requestid
|
205
134
|
end
|
206
135
|
|
207
136
|
def deserialize(params)
|
208
137
|
@Did = params['Did']
|
138
|
+
unless params['Transaction'].nil?
|
139
|
+
@Transaction = ChainTransaction.new
|
140
|
+
@Transaction.deserialize(params['Transaction'])
|
141
|
+
end
|
209
142
|
@RequestId = params['RequestId']
|
210
143
|
end
|
211
144
|
end
|
212
145
|
|
213
|
-
#
|
214
|
-
class
|
215
|
-
# @param
|
216
|
-
# @type
|
217
|
-
# @param
|
218
|
-
# @type GroupId: Integer
|
219
|
-
# @param PublicKey: 身份公钥
|
146
|
+
# CreateTDidByPubKey请求参数结构体
|
147
|
+
class CreateTDidByPubKeyRequest < TencentCloud::Common::AbstractModel
|
148
|
+
# @param DAPId: DID应用id
|
149
|
+
# @type DAPId: Integer
|
150
|
+
# @param PublicKey: pem格式的认证公钥
|
220
151
|
# @type PublicKey: String
|
221
|
-
# @param
|
222
|
-
# @type
|
152
|
+
# @param CustomAttribute: 自定义DID初始化属性json字符串
|
153
|
+
# @type CustomAttribute: String
|
154
|
+
# @param IgnoreExisted: 0:did存在返回错误,1:did存在返回该did,默认:0
|
155
|
+
# @type IgnoreExisted: Integer
|
223
156
|
|
224
|
-
attr_accessor :
|
157
|
+
attr_accessor :DAPId, :PublicKey, :CustomAttribute, :IgnoreExisted
|
225
158
|
|
226
|
-
def initialize(
|
227
|
-
@
|
228
|
-
@GroupId = groupid
|
159
|
+
def initialize(dapid=nil, publickey=nil, customattribute=nil, ignoreexisted=nil)
|
160
|
+
@DAPId = dapid
|
229
161
|
@PublicKey = publickey
|
230
|
-
@
|
162
|
+
@CustomAttribute = customattribute
|
163
|
+
@IgnoreExisted = ignoreexisted
|
231
164
|
end
|
232
165
|
|
233
166
|
def deserialize(params)
|
234
|
-
@
|
235
|
-
@GroupId = params['GroupId']
|
167
|
+
@DAPId = params['DAPId']
|
236
168
|
@PublicKey = params['PublicKey']
|
237
|
-
@
|
238
|
-
|
239
|
-
end
|
240
|
-
|
241
|
-
# CreateTDidByPublicKey返回参数结构体
|
242
|
-
class CreateTDidByPublicKeyResponse < TencentCloud::Common::AbstractModel
|
243
|
-
# @param Did: did具体信息
|
244
|
-
# @type Did: String
|
245
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
246
|
-
# @type RequestId: String
|
247
|
-
|
248
|
-
attr_accessor :Did, :RequestId
|
249
|
-
|
250
|
-
def initialize(did=nil, requestid=nil)
|
251
|
-
@Did = did
|
252
|
-
@RequestId = requestid
|
253
|
-
end
|
254
|
-
|
255
|
-
def deserialize(params)
|
256
|
-
@Did = params['Did']
|
257
|
-
@RequestId = params['RequestId']
|
258
|
-
end
|
259
|
-
end
|
260
|
-
|
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
|
269
|
-
|
270
|
-
attr_accessor :GroupId, :ClusterId, :Relegation
|
271
|
-
|
272
|
-
def initialize(groupid=nil, clusterid=nil, relegation=nil)
|
273
|
-
@GroupId = groupid
|
274
|
-
@ClusterId = clusterid
|
275
|
-
@Relegation = relegation
|
276
|
-
end
|
277
|
-
|
278
|
-
def deserialize(params)
|
279
|
-
@GroupId = params['GroupId']
|
280
|
-
@ClusterId = params['ClusterId']
|
281
|
-
@Relegation = params['Relegation']
|
169
|
+
@CustomAttribute = params['CustomAttribute']
|
170
|
+
@IgnoreExisted = params['IgnoreExisted']
|
282
171
|
end
|
283
172
|
end
|
284
173
|
|
285
|
-
#
|
286
|
-
class
|
287
|
-
# @param Did:
|
174
|
+
# CreateTDidByPubKey返回参数结构体
|
175
|
+
class CreateTDidByPubKeyResponse < TencentCloud::Common::AbstractModel
|
176
|
+
# @param Did: did标识
|
288
177
|
# @type Did: String
|
178
|
+
# @param Transaction: 链上交易信息
|
179
|
+
# @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
|
289
180
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
290
181
|
# @type RequestId: String
|
291
182
|
|
292
|
-
attr_accessor :Did, :RequestId
|
183
|
+
attr_accessor :Did, :Transaction, :RequestId
|
293
184
|
|
294
|
-
def initialize(did=nil, requestid=nil)
|
185
|
+
def initialize(did=nil, transaction=nil, requestid=nil)
|
295
186
|
@Did = did
|
187
|
+
@Transaction = transaction
|
296
188
|
@RequestId = requestid
|
297
189
|
end
|
298
190
|
|
299
191
|
def deserialize(params)
|
300
192
|
@Did = params['Did']
|
193
|
+
unless params['Transaction'].nil?
|
194
|
+
@Transaction = ChainTransaction.new
|
195
|
+
@Transaction.deserialize(params['Transaction'])
|
196
|
+
end
|
301
197
|
@RequestId = params['RequestId']
|
302
198
|
end
|
303
199
|
end
|
304
200
|
|
305
201
|
# 凭证链上状态信息
|
306
|
-
class
|
307
|
-
# @param
|
308
|
-
# @type
|
202
|
+
class CredentialState < TencentCloud::Common::AbstractModel
|
203
|
+
# @param Id: 凭证唯一id
|
204
|
+
# @type Id: String
|
309
205
|
# @param Status: 凭证状态(0:吊销;1:有效)
|
310
206
|
# @type Status: Integer
|
311
207
|
# @param Issuer: 凭证颁发者Did
|
312
208
|
# @type Issuer: String
|
313
|
-
# @param
|
314
|
-
#
|
315
|
-
# @
|
209
|
+
# @param VCDigest: VC摘要,对应凭证Proof的vcDigest字段
|
210
|
+
# @type VCDigest: String
|
211
|
+
# @param TXDigest: 交易摘要,对应凭证Proof的txDigest字段
|
212
|
+
# @type TXDigest: String
|
213
|
+
# @param IssueTime: 颁布凭证的UTC时间戳
|
214
|
+
# @type IssueTime: Integer
|
215
|
+
# @param ExpireTime: 凭证过期的UTC时间戳
|
216
|
+
# @type ExpireTime: Integer
|
217
|
+
# @param CPTId: 凭证模板id
|
218
|
+
# @type CPTId: Integer
|
316
219
|
# @param Signature: 凭证签名
|
317
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
318
220
|
# @type Signature: String
|
319
|
-
# @param
|
320
|
-
#
|
321
|
-
# @type TimeStamp: Integer
|
221
|
+
# @param MetaDigest: 元数据摘要
|
222
|
+
# @type MetaDigest: String
|
322
223
|
|
323
|
-
attr_accessor :
|
224
|
+
attr_accessor :Id, :Status, :Issuer, :VCDigest, :TXDigest, :IssueTime, :ExpireTime, :CPTId, :Signature, :MetaDigest
|
324
225
|
|
325
|
-
def initialize(
|
326
|
-
@
|
226
|
+
def initialize(id=nil, status=nil, issuer=nil, vcdigest=nil, txdigest=nil, issuetime=nil, expiretime=nil, cptid=nil, signature=nil, metadigest=nil)
|
227
|
+
@Id = id
|
327
228
|
@Status = status
|
328
229
|
@Issuer = issuer
|
329
|
-
@
|
230
|
+
@VCDigest = vcdigest
|
231
|
+
@TXDigest = txdigest
|
232
|
+
@IssueTime = issuetime
|
233
|
+
@ExpireTime = expiretime
|
234
|
+
@CPTId = cptid
|
330
235
|
@Signature = signature
|
331
|
-
@
|
236
|
+
@MetaDigest = metadigest
|
332
237
|
end
|
333
238
|
|
334
239
|
def deserialize(params)
|
335
|
-
@
|
240
|
+
@Id = params['Id']
|
336
241
|
@Status = params['Status']
|
337
242
|
@Issuer = params['Issuer']
|
338
|
-
@
|
243
|
+
@VCDigest = params['VCDigest']
|
244
|
+
@TXDigest = params['TXDigest']
|
245
|
+
@IssueTime = params['IssueTime']
|
246
|
+
@ExpireTime = params['ExpireTime']
|
247
|
+
@CPTId = params['CPTId']
|
339
248
|
@Signature = params['Signature']
|
340
|
-
@
|
249
|
+
@MetaDigest = params['MetaDigest']
|
341
250
|
end
|
342
251
|
end
|
343
252
|
|
344
|
-
#
|
345
|
-
class
|
346
|
-
# @param
|
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
|
354
|
-
|
355
|
-
attr_accessor :CptId, :Issuer, :ExpirationDate, :ClaimJson
|
356
|
-
|
357
|
-
def initialize(cptid=nil, issuer=nil, expirationdate=nil, claimjson=nil)
|
358
|
-
@CptId = cptid
|
359
|
-
@Issuer = issuer
|
360
|
-
@ExpirationDate = expirationdate
|
361
|
-
@ClaimJson = claimjson
|
362
|
-
end
|
363
|
-
|
364
|
-
def deserialize(params)
|
365
|
-
@CptId = params['CptId']
|
366
|
-
@Issuer = params['Issuer']
|
367
|
-
@ExpirationDate = params['ExpirationDate']
|
368
|
-
@ClaimJson = params['ClaimJson']
|
369
|
-
end
|
370
|
-
end
|
371
|
-
|
372
|
-
# GetAuthorityIssuer请求参数结构体
|
373
|
-
class GetAuthorityIssuerRequest < TencentCloud::Common::AbstractModel
|
374
|
-
# @param Did: tdid
|
253
|
+
# DeactivateTDid请求参数结构体
|
254
|
+
class DeactivateTDidRequest < TencentCloud::Common::AbstractModel
|
255
|
+
# @param Did: DID标识符
|
375
256
|
# @type Did: String
|
257
|
+
# @param OperateCredential: 设置DID禁用状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
|
258
|
+
# @type OperateCredential: String
|
259
|
+
# @param DAPId: DID应用Id
|
260
|
+
# @type DAPId: Integer
|
261
|
+
# @param Deactivated: 是否禁用
|
262
|
+
# @type Deactivated: String
|
376
263
|
|
377
|
-
attr_accessor :Did
|
264
|
+
attr_accessor :Did, :OperateCredential, :DAPId, :Deactivated
|
378
265
|
|
379
|
-
def initialize(did=nil)
|
266
|
+
def initialize(did=nil, operatecredential=nil, dapid=nil, deactivated=nil)
|
380
267
|
@Did = did
|
268
|
+
@OperateCredential = operatecredential
|
269
|
+
@DAPId = dapid
|
270
|
+
@Deactivated = deactivated
|
381
271
|
end
|
382
272
|
|
383
273
|
def deserialize(params)
|
384
274
|
@Did = params['Did']
|
275
|
+
@OperateCredential = params['OperateCredential']
|
276
|
+
@DAPId = params['DAPId']
|
277
|
+
@Deactivated = params['Deactivated']
|
385
278
|
end
|
386
279
|
end
|
387
280
|
|
388
|
-
#
|
389
|
-
class
|
390
|
-
# @param
|
391
|
-
# @type
|
392
|
-
# @param ClusterId: 区块链网络id
|
393
|
-
# @type ClusterId: String
|
394
|
-
# @param GroupId: 区块链群组id
|
395
|
-
# @type GroupId: Integer
|
396
|
-
# @param Did: 权威机构did
|
397
|
-
# @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
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
405
|
-
# @type RequestId: String
|
406
|
-
|
407
|
-
attr_accessor :Name, :ClusterId, :GroupId, :Did, :Remark, :RegisterTime, :RecognizeTime, :RequestId
|
408
|
-
|
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
|
413
|
-
@Did = did
|
414
|
-
@Remark = remark
|
415
|
-
@RegisterTime = registertime
|
416
|
-
@RecognizeTime = recognizetime
|
417
|
-
@RequestId = requestid
|
418
|
-
end
|
419
|
-
|
420
|
-
def deserialize(params)
|
421
|
-
@Name = params['Name']
|
422
|
-
@ClusterId = params['ClusterId']
|
423
|
-
@GroupId = params['GroupId']
|
424
|
-
@Did = params['Did']
|
425
|
-
@Remark = params['Remark']
|
426
|
-
@RegisterTime = params['RegisterTime']
|
427
|
-
@RecognizeTime = params['RecognizeTime']
|
428
|
-
@RequestId = params['RequestId']
|
429
|
-
end
|
430
|
-
end
|
431
|
-
|
432
|
-
# GetCptInfo请求参数结构体
|
433
|
-
class GetCptInfoRequest < TencentCloud::Common::AbstractModel
|
434
|
-
# @param CptIndex: Cpt索引
|
435
|
-
# @type CptIndex: Integer
|
436
|
-
|
437
|
-
attr_accessor :CptIndex
|
438
|
-
|
439
|
-
def initialize(cptindex=nil)
|
440
|
-
@CptIndex = cptindex
|
441
|
-
end
|
442
|
-
|
443
|
-
def deserialize(params)
|
444
|
-
@CptIndex = params['CptIndex']
|
445
|
-
end
|
446
|
-
end
|
447
|
-
|
448
|
-
# GetCptInfo返回参数结构体
|
449
|
-
class GetCptInfoResponse < TencentCloud::Common::AbstractModel
|
450
|
-
# @param CptJsonData: CptJsonData的具体信息
|
451
|
-
# @type CptJsonData: String
|
281
|
+
# DeactivateTDid返回参数结构体
|
282
|
+
class DeactivateTDidResponse < TencentCloud::Common::AbstractModel
|
283
|
+
# @param Transaction: 上链交易信息
|
284
|
+
# @type Transaction: :class:`Tencentcloud::Tdid.v20210519.models.ChainTransaction`
|
452
285
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
453
286
|
# @type RequestId: String
|
454
287
|
|
455
|
-
attr_accessor :
|
288
|
+
attr_accessor :Transaction, :RequestId
|
456
289
|
|
457
|
-
def initialize(
|
458
|
-
@
|
290
|
+
def initialize(transaction=nil, requestid=nil)
|
291
|
+
@Transaction = transaction
|
459
292
|
@RequestId = requestid
|
460
293
|
end
|
461
294
|
|
462
295
|
def deserialize(params)
|
463
|
-
|
296
|
+
unless params['Transaction'].nil?
|
297
|
+
@Transaction = ChainTransaction.new
|
298
|
+
@Transaction.deserialize(params['Transaction'])
|
299
|
+
end
|
464
300
|
@RequestId = params['RequestId']
|
465
301
|
end
|
466
302
|
end
|
467
303
|
|
468
|
-
#
|
469
|
-
class
|
470
|
-
# @param CredentialId:
|
304
|
+
# GetCredentialState请求参数结构体
|
305
|
+
class GetCredentialStateRequest < TencentCloud::Common::AbstractModel
|
306
|
+
# @param CredentialId: 凭证唯一Id
|
471
307
|
# @type CredentialId: String
|
308
|
+
# @param DAPId: 用户应用Id
|
309
|
+
# @type DAPId: Integer
|
472
310
|
|
473
|
-
attr_accessor :CredentialId
|
311
|
+
attr_accessor :CredentialId, :DAPId
|
474
312
|
|
475
|
-
def initialize(credentialid=nil)
|
313
|
+
def initialize(credentialid=nil, dapid=nil)
|
476
314
|
@CredentialId = credentialid
|
315
|
+
@DAPId = dapid
|
477
316
|
end
|
478
317
|
|
479
318
|
def deserialize(params)
|
480
319
|
@CredentialId = params['CredentialId']
|
320
|
+
@DAPId = params['DAPId']
|
481
321
|
end
|
482
322
|
end
|
483
323
|
|
484
|
-
#
|
485
|
-
class
|
486
|
-
# @param
|
487
|
-
#
|
324
|
+
# GetCredentialState返回参数结构体
|
325
|
+
class GetCredentialStateResponse < TencentCloud::Common::AbstractModel
|
326
|
+
# @param CredentialState: 凭证状态信息
|
327
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
328
|
+
# @type CredentialState: :class:`Tencentcloud::Tdid.v20210519.models.CredentialState`
|
488
329
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
489
330
|
# @type RequestId: String
|
490
331
|
|
491
|
-
attr_accessor :
|
332
|
+
attr_accessor :CredentialState, :RequestId
|
492
333
|
|
493
|
-
def initialize(
|
494
|
-
@
|
334
|
+
def initialize(credentialstate=nil, requestid=nil)
|
335
|
+
@CredentialState = credentialstate
|
495
336
|
@RequestId = requestid
|
496
337
|
end
|
497
338
|
|
498
339
|
def deserialize(params)
|
499
|
-
unless params['
|
500
|
-
@
|
501
|
-
@
|
340
|
+
unless params['CredentialState'].nil?
|
341
|
+
@CredentialState = CredentialState.new
|
342
|
+
@CredentialState.deserialize(params['CredentialState'])
|
502
343
|
end
|
503
344
|
@RequestId = params['RequestId']
|
504
345
|
end
|
505
346
|
end
|
506
347
|
|
507
|
-
#
|
508
|
-
class
|
509
|
-
# @param Did:
|
348
|
+
# GetTDidDocument请求参数结构体
|
349
|
+
class GetTDidDocumentRequest < TencentCloud::Common::AbstractModel
|
350
|
+
# @param Did: DID标识
|
510
351
|
# @type Did: String
|
352
|
+
# @param DAPId: DID应用ID
|
353
|
+
# @type DAPId: Integer
|
511
354
|
|
512
|
-
attr_accessor :Did
|
355
|
+
attr_accessor :Did, :DAPId
|
513
356
|
|
514
|
-
def initialize(did=nil)
|
357
|
+
def initialize(did=nil, dapid=nil)
|
515
358
|
@Did = did
|
359
|
+
@DAPId = dapid
|
516
360
|
end
|
517
361
|
|
518
362
|
def deserialize(params)
|
519
363
|
@Did = params['Did']
|
364
|
+
@DAPId = params['DAPId']
|
520
365
|
end
|
521
366
|
end
|
522
367
|
|
523
|
-
#
|
524
|
-
class
|
525
|
-
# @param
|
526
|
-
# @type Name: String
|
527
|
-
# @param Document: DID文档
|
368
|
+
# GetTDidDocument返回参数结构体
|
369
|
+
class GetTDidDocumentResponse < TencentCloud::Common::AbstractModel
|
370
|
+
# @param Document: DID文档内容
|
528
371
|
# @type Document: String
|
529
372
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
530
373
|
# @type RequestId: String
|
531
374
|
|
532
|
-
attr_accessor :
|
375
|
+
attr_accessor :Document, :RequestId
|
533
376
|
|
534
|
-
def initialize(
|
535
|
-
@Name = name
|
377
|
+
def initialize(document=nil, requestid=nil)
|
536
378
|
@Document = document
|
537
379
|
@RequestId = requestid
|
538
380
|
end
|
539
381
|
|
540
382
|
def deserialize(params)
|
541
|
-
@Name = params['Name']
|
542
383
|
@Document = params['Document']
|
543
384
|
@RequestId = params['RequestId']
|
544
385
|
end
|
545
386
|
end
|
546
387
|
|
547
|
-
#
|
548
|
-
class
|
549
|
-
# @param
|
550
|
-
# @type
|
551
|
-
# @param
|
552
|
-
# @type
|
553
|
-
# @param
|
554
|
-
# @type
|
555
|
-
# @param SignatureValue: 签名
|
556
|
-
# @type SignatureValue: String
|
557
|
-
# @param Type: type类型
|
558
|
-
# @type Type: String
|
559
|
-
|
560
|
-
attr_accessor :Created, :Creator, :SaltJson, :SignatureValue, :Type
|
561
|
-
|
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
|
568
|
-
end
|
569
|
-
|
570
|
-
def deserialize(params)
|
571
|
-
@Created = params['Created']
|
572
|
-
@Creator = params['Creator']
|
573
|
-
@SaltJson = params['SaltJson']
|
574
|
-
@SignatureValue = params['SignatureValue']
|
575
|
-
@Type = params['Type']
|
576
|
-
end
|
577
|
-
end
|
578
|
-
|
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
|
388
|
+
# IssueCredential请求参数结构体
|
389
|
+
class IssueCredentialRequest < TencentCloud::Common::AbstractModel
|
390
|
+
# @param CRDLArg: 参数集合,详见示例
|
391
|
+
# @type CRDLArg: :class:`Tencentcloud::Tdid.v20210519.models.CRDLArg`
|
392
|
+
# @param UnSigned: 是否未签名
|
393
|
+
# @type UnSigned: Boolean
|
394
|
+
# @param DAPId: DID应用id
|
395
|
+
# @type DAPId: Integer
|
589
396
|
|
590
|
-
attr_accessor :
|
397
|
+
attr_accessor :CRDLArg, :UnSigned, :DAPId
|
591
398
|
|
592
|
-
def initialize(
|
593
|
-
@
|
594
|
-
@
|
595
|
-
@
|
596
|
-
@CptId = cptid
|
399
|
+
def initialize(crdlarg=nil, unsigned=nil, dapid=nil)
|
400
|
+
@CRDLArg = crdlarg
|
401
|
+
@UnSigned = unsigned
|
402
|
+
@DAPId = dapid
|
597
403
|
end
|
598
404
|
|
599
405
|
def deserialize(params)
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
406
|
+
unless params['CRDLArg'].nil?
|
407
|
+
@CRDLArg = CRDLArg.new
|
408
|
+
@CRDLArg.deserialize(params['CRDLArg'])
|
409
|
+
end
|
410
|
+
@UnSigned = params['UnSigned']
|
411
|
+
@DAPId = params['DAPId']
|
604
412
|
end
|
605
413
|
end
|
606
414
|
|
607
|
-
#
|
608
|
-
class
|
609
|
-
# @param
|
610
|
-
# @type
|
611
|
-
# @param CptId: 凭证模板id
|
612
|
-
# @type CptId: Integer
|
415
|
+
# IssueCredential返回参数结构体
|
416
|
+
class IssueCredentialResponse < TencentCloud::Common::AbstractModel
|
417
|
+
# @param CredentialData: 可验证凭证内容
|
418
|
+
# @type CredentialData: String
|
613
419
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
614
420
|
# @type RequestId: String
|
615
421
|
|
616
|
-
attr_accessor :
|
422
|
+
attr_accessor :CredentialData, :RequestId
|
617
423
|
|
618
|
-
def initialize(
|
619
|
-
@
|
620
|
-
@CptId = cptid
|
424
|
+
def initialize(credentialdata=nil, requestid=nil)
|
425
|
+
@CredentialData = credentialdata
|
621
426
|
@RequestId = requestid
|
622
427
|
end
|
623
428
|
|
624
429
|
def deserialize(params)
|
625
|
-
@
|
626
|
-
@CptId = params['CptId']
|
430
|
+
@CredentialData = params['CredentialData']
|
627
431
|
@RequestId = params['RequestId']
|
628
432
|
end
|
629
433
|
end
|
630
434
|
|
631
|
-
#
|
632
|
-
class
|
633
|
-
# @param
|
634
|
-
# @type
|
435
|
+
# UpdateCredentialState请求参数结构体
|
436
|
+
class UpdateCredentialStateRequest < TencentCloud::Common::AbstractModel
|
437
|
+
# @param DAPId: DID应用Id
|
438
|
+
# @type DAPId: Integer
|
439
|
+
# @param OperateCredential: 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,建议设置为1分钟内
|
440
|
+
# @type OperateCredential: String
|
635
441
|
|
636
|
-
attr_accessor :
|
442
|
+
attr_accessor :DAPId, :OperateCredential
|
637
443
|
|
638
|
-
def initialize(
|
639
|
-
@
|
444
|
+
def initialize(dapid=nil, operatecredential=nil)
|
445
|
+
@DAPId = dapid
|
446
|
+
@OperateCredential = operatecredential
|
640
447
|
end
|
641
448
|
|
642
449
|
def deserialize(params)
|
643
|
-
|
644
|
-
|
645
|
-
@CredentialStatus.deserialize(params['CredentialStatus'])
|
646
|
-
end
|
450
|
+
@DAPId = params['DAPId']
|
451
|
+
@OperateCredential = params['OperateCredential']
|
647
452
|
end
|
648
453
|
end
|
649
454
|
|
650
|
-
#
|
651
|
-
class
|
455
|
+
# UpdateCredentialState返回参数结构体
|
456
|
+
class UpdateCredentialStateResponse < TencentCloud::Common::AbstractModel
|
457
|
+
# @param Result: 更新是否成功
|
458
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
459
|
+
# @type Result: Boolean
|
652
460
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
653
461
|
# @type RequestId: String
|
654
462
|
|
655
|
-
attr_accessor :RequestId
|
463
|
+
attr_accessor :Result, :RequestId
|
656
464
|
|
657
|
-
def initialize(requestid=nil)
|
465
|
+
def initialize(result=nil, requestid=nil)
|
466
|
+
@Result = result
|
658
467
|
@RequestId = requestid
|
659
468
|
end
|
660
469
|
|
661
470
|
def deserialize(params)
|
471
|
+
@Result = params['Result']
|
662
472
|
@RequestId = params['RequestId']
|
663
473
|
end
|
664
474
|
end
|
665
475
|
|
666
|
-
#
|
667
|
-
class
|
668
|
-
# @param
|
669
|
-
# @type
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
@InvokerTDid = invokertdid
|
675
|
-
end
|
676
|
-
|
677
|
-
def deserialize(params)
|
678
|
-
@InvokerTDid = params['InvokerTDid']
|
679
|
-
end
|
680
|
-
end
|
681
|
-
|
682
|
-
# VerifyCredential请求参数结构体
|
683
|
-
class VerifyCredentialRequest < TencentCloud::Common::AbstractModel
|
684
|
-
# @param FunctionArg: 参数集合
|
685
|
-
# @type FunctionArg: :class:`Tencentcloud::Tdid.v20210519.models.VerifyFunctionArg`
|
476
|
+
# VerifyCredentials请求参数结构体
|
477
|
+
class VerifyCredentialsRequest < TencentCloud::Common::AbstractModel
|
478
|
+
# @param VerifyType: 0:仅验证签名,1:验证签名和链上状态,2, 仅验证链上状态,默认为0, 3.验证DID和凭证状态以及签名,4. 验证历史凭证有效性
|
479
|
+
# @type VerifyType: Integer
|
480
|
+
# @param CredentialData: 凭证内容
|
481
|
+
# @type CredentialData: String
|
482
|
+
# @param DAPId: DID应用id
|
483
|
+
# @type DAPId: Integer
|
686
484
|
|
687
|
-
attr_accessor :
|
485
|
+
attr_accessor :VerifyType, :CredentialData, :DAPId
|
688
486
|
|
689
|
-
def initialize(
|
690
|
-
@
|
487
|
+
def initialize(verifytype=nil, credentialdata=nil, dapid=nil)
|
488
|
+
@VerifyType = verifytype
|
489
|
+
@CredentialData = credentialdata
|
490
|
+
@DAPId = dapid
|
691
491
|
end
|
692
492
|
|
693
493
|
def deserialize(params)
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
end
|
494
|
+
@VerifyType = params['VerifyType']
|
495
|
+
@CredentialData = params['CredentialData']
|
496
|
+
@DAPId = params['DAPId']
|
698
497
|
end
|
699
498
|
end
|
700
499
|
|
701
|
-
#
|
702
|
-
class
|
500
|
+
# VerifyCredentials返回参数结构体
|
501
|
+
class VerifyCredentialsResponse < TencentCloud::Common::AbstractModel
|
703
502
|
# @param Result: 是否验证成功
|
704
503
|
# @type Result: Boolean
|
705
504
|
# @param VerifyCode: 验证返回码
|
706
505
|
# @type VerifyCode: Integer
|
707
|
-
# @param VerifyMessage:
|
506
|
+
# @param VerifyMessage: 验证结果信息
|
708
507
|
# @type VerifyMessage: String
|
709
508
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
710
509
|
# @type RequestId: String
|
@@ -726,57 +525,6 @@ module TencentCloud
|
|
726
525
|
end
|
727
526
|
end
|
728
527
|
|
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
|
749
|
-
|
750
|
-
attr_accessor :CptId, :Issuer, :ExpirationDate, :ClaimJson, :IssuanceDate, :Context, :Id, :Proof, :Type
|
751
|
-
|
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
|
762
|
-
end
|
763
|
-
|
764
|
-
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']
|
777
|
-
end
|
778
|
-
end
|
779
|
-
|
780
528
|
end
|
781
529
|
end
|
782
530
|
end
|