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.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90912e788e3e931ce136debff2478454a7d84ad
|
4
|
+
data.tar.gz: 1f2f38e7e9766689324ac974f1a79a2ba1b29ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb5de8e9ca8e435a4abb79de4f1814672fe0b58da6b0f8fafd3a8bace21899a362403f51aa38eb1eab86065b391317e00f0fea638b400f3cb4fb88b3158733aa
|
7
|
+
data.tar.gz: bdcf7362b1f6a484c4783d6648d02279f489a637c33c0d31f7184aad060e1239d42a96be9ae2cb337daae8a977c6a50753d7eb3fd89d34a39a8823270fbbee60
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.748
|
data/lib/v20210519/client.rb
CHANGED
@@ -29,18 +29,16 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
#
|
32
|
+
# 根据披露策略创建选择性披露凭证
|
33
33
|
|
34
|
-
#
|
35
|
-
|
36
|
-
# @
|
37
|
-
|
38
|
-
|
39
|
-
def CheckChain(request)
|
40
|
-
body = send_request('CheckChain', request.serialize)
|
34
|
+
# @param request: Request instance for CreateDisclosedCredential.
|
35
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::CreateDisclosedCredentialRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::CreateDisclosedCredentialResponse`
|
37
|
+
def CreateDisclosedCredential(request)
|
38
|
+
body = send_request('CreateDisclosedCredential', request.serialize)
|
41
39
|
response = JSON.parse(body)
|
42
40
|
if response['Response'].key?('Error') == false
|
43
|
-
model =
|
41
|
+
model = CreateDisclosedCredentialResponse.new
|
44
42
|
model.deserialize(response['Response'])
|
45
43
|
model
|
46
44
|
else
|
@@ -55,18 +53,16 @@ module TencentCloud
|
|
55
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
54
|
end
|
57
55
|
|
58
|
-
#
|
59
|
-
|
60
|
-
# 创建凭证
|
56
|
+
# 创建凭证持有人的可验证表达
|
61
57
|
|
62
|
-
# @param request: Request instance for
|
63
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
64
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
65
|
-
def
|
66
|
-
body = send_request('
|
58
|
+
# @param request: Request instance for CreatePresentation.
|
59
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::CreatePresentationRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::CreatePresentationResponse`
|
61
|
+
def CreatePresentation(request)
|
62
|
+
body = send_request('CreatePresentation', request.serialize)
|
67
63
|
response = JSON.parse(body)
|
68
64
|
if response['Response'].key?('Error') == false
|
69
|
-
model =
|
65
|
+
model = CreatePresentationResponse.new
|
70
66
|
model.deserialize(response['Response'])
|
71
67
|
model
|
72
68
|
else
|
@@ -81,18 +77,16 @@ module TencentCloud
|
|
81
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
82
78
|
end
|
83
79
|
|
84
|
-
#
|
85
|
-
|
86
|
-
# 创建选择性批露凭证
|
80
|
+
# 自动生成公私钥对托管在DID平台,并注册DID标识
|
87
81
|
|
88
|
-
# @param request: Request instance for
|
89
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
90
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
91
|
-
def
|
92
|
-
body = send_request('
|
82
|
+
# @param request: Request instance for CreateTDidByHost.
|
83
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidByHostRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidByHostResponse`
|
85
|
+
def CreateTDidByHost(request)
|
86
|
+
body = send_request('CreateTDidByHost', request.serialize)
|
93
87
|
response = JSON.parse(body)
|
94
88
|
if response['Response'].key?('Error') == false
|
95
|
-
model =
|
89
|
+
model = CreateTDidByHostResponse.new
|
96
90
|
model.deserialize(response['Response'])
|
97
91
|
model
|
98
92
|
else
|
@@ -107,18 +101,16 @@ module TencentCloud
|
|
107
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
108
102
|
end
|
109
103
|
|
110
|
-
#
|
104
|
+
# 使用导入的公钥文件注册DID标识
|
111
105
|
|
112
|
-
#
|
113
|
-
|
114
|
-
# @
|
115
|
-
|
116
|
-
|
117
|
-
def CreateTDid(request)
|
118
|
-
body = send_request('CreateTDid', request.serialize)
|
106
|
+
# @param request: Request instance for CreateTDidByPubKey.
|
107
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPubKeyRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPubKeyResponse`
|
109
|
+
def CreateTDidByPubKey(request)
|
110
|
+
body = send_request('CreateTDidByPubKey', request.serialize)
|
119
111
|
response = JSON.parse(body)
|
120
112
|
if response['Response'].key?('Error') == false
|
121
|
-
model =
|
113
|
+
model = CreateTDidByPubKeyResponse.new
|
122
114
|
model.deserialize(response['Response'])
|
123
115
|
model
|
124
116
|
else
|
@@ -133,18 +125,16 @@ module TencentCloud
|
|
133
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
134
126
|
end
|
135
127
|
|
136
|
-
#
|
137
|
-
|
138
|
-
# 新建DID根据私钥生成Tdid
|
128
|
+
# 更新DID标识的禁用状态
|
139
129
|
|
140
|
-
# @param request: Request instance for
|
141
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
142
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
143
|
-
def
|
144
|
-
body = send_request('
|
130
|
+
# @param request: Request instance for DeactivateTDid.
|
131
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::DeactivateTDidRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::DeactivateTDidResponse`
|
133
|
+
def DeactivateTDid(request)
|
134
|
+
body = send_request('DeactivateTDid', request.serialize)
|
145
135
|
response = JSON.parse(body)
|
146
136
|
if response['Response'].key?('Error') == false
|
147
|
-
model =
|
137
|
+
model = DeactivateTDidResponse.new
|
148
138
|
model.deserialize(response['Response'])
|
149
139
|
model
|
150
140
|
else
|
@@ -159,18 +149,16 @@ module TencentCloud
|
|
159
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
160
150
|
end
|
161
151
|
|
162
|
-
#
|
163
|
-
|
164
|
-
# 新建DID根据公钥生成Tdid
|
152
|
+
# 获取某个应用关键指标统计数据
|
165
153
|
|
166
|
-
# @param request: Request instance for
|
167
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
168
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
169
|
-
def
|
170
|
-
body = send_request('
|
154
|
+
# @param request: Request instance for GetAppSummary.
|
155
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetAppSummaryRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetAppSummaryResponse`
|
157
|
+
def GetAppSummary(request)
|
158
|
+
body = send_request('GetAppSummary', request.serialize)
|
171
159
|
response = JSON.parse(body)
|
172
160
|
if response['Response'].key?('Error') == false
|
173
|
-
model =
|
161
|
+
model = GetAppSummaryResponse.new
|
174
162
|
model.deserialize(response['Response'])
|
175
163
|
model
|
176
164
|
else
|
@@ -185,18 +173,16 @@ module TencentCloud
|
|
185
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
186
174
|
end
|
187
175
|
|
188
|
-
#
|
189
|
-
|
190
|
-
# 获取权威机构信息
|
176
|
+
# 获取凭证链上状态信息
|
191
177
|
|
192
|
-
# @param request: Request instance for
|
193
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
194
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
195
|
-
def
|
196
|
-
body = send_request('
|
178
|
+
# @param request: Request instance for GetCredentialState.
|
179
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetCredentialStateRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetCredentialStateResponse`
|
181
|
+
def GetCredentialState(request)
|
182
|
+
body = send_request('GetCredentialState', request.serialize)
|
197
183
|
response = JSON.parse(body)
|
198
184
|
if response['Response'].key?('Error') == false
|
199
|
-
model =
|
185
|
+
model = GetCredentialStateResponse.new
|
200
186
|
model.deserialize(response['Response'])
|
201
187
|
model
|
202
188
|
else
|
@@ -211,18 +197,16 @@ module TencentCloud
|
|
211
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
212
198
|
end
|
213
199
|
|
214
|
-
#
|
215
|
-
|
216
|
-
# 凭证模版详情
|
200
|
+
# 获取某个应用关键指标统计数据
|
217
201
|
|
218
|
-
# @param request: Request instance for
|
219
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
220
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
221
|
-
def
|
222
|
-
body = send_request('
|
202
|
+
# @param request: Request instance for GetOverSummary.
|
203
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetOverSummaryRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetOverSummaryResponse`
|
205
|
+
def GetOverSummary(request)
|
206
|
+
body = send_request('GetOverSummary', request.serialize)
|
223
207
|
response = JSON.parse(body)
|
224
208
|
if response['Response'].key?('Error') == false
|
225
|
-
model =
|
209
|
+
model = GetOverSummaryResponse.new
|
226
210
|
model.deserialize(response['Response'])
|
227
211
|
model
|
228
212
|
else
|
@@ -237,18 +221,40 @@ module TencentCloud
|
|
237
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
238
222
|
end
|
239
223
|
|
240
|
-
#
|
224
|
+
# 通过业务层绑定的对象ID获取DID标识
|
241
225
|
|
242
|
-
#
|
226
|
+
# @param request: Request instance for GetTDidByObjectId.
|
227
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetTDidByObjectIdRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetTDidByObjectIdResponse`
|
229
|
+
def GetTDidByObjectId(request)
|
230
|
+
body = send_request('GetTDidByObjectId', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = GetTDidByObjectIdResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 获取DID标识的文档
|
243
249
|
|
244
|
-
# @param request: Request instance for
|
245
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
246
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
247
|
-
def
|
248
|
-
body = send_request('
|
250
|
+
# @param request: Request instance for GetTDidDocument.
|
251
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetTDidDocumentRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetTDidDocumentResponse`
|
253
|
+
def GetTDidDocument(request)
|
254
|
+
body = send_request('GetTDidDocument', request.serialize)
|
249
255
|
response = JSON.parse(body)
|
250
256
|
if response['Response'].key?('Error') == false
|
251
|
-
model =
|
257
|
+
model = GetTDidDocumentResponse.new
|
252
258
|
model.deserialize(response['Response'])
|
253
259
|
model
|
254
260
|
else
|
@@ -263,18 +269,40 @@ module TencentCloud
|
|
263
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
264
270
|
end
|
265
271
|
|
266
|
-
#
|
272
|
+
# 查询DID标识的认证公钥
|
273
|
+
|
274
|
+
# @param request: Request instance for GetTDidPubKey.
|
275
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetTDidPubKeyRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetTDidPubKeyResponse`
|
277
|
+
def GetTDidPubKey(request)
|
278
|
+
body = send_request('GetTDidPubKey', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = GetTDidPubKeyResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
267
295
|
|
268
|
-
#
|
296
|
+
# 颁发可验证凭证
|
269
297
|
|
270
|
-
# @param request: Request instance for
|
271
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
272
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
273
|
-
def
|
274
|
-
body = send_request('
|
298
|
+
# @param request: Request instance for IssueCredential.
|
299
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::IssueCredentialRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::IssueCredentialResponse`
|
301
|
+
def IssueCredential(request)
|
302
|
+
body = send_request('IssueCredential', request.serialize)
|
275
303
|
response = JSON.parse(body)
|
276
304
|
if response['Response'].key?('Error') == false
|
277
|
-
model =
|
305
|
+
model = IssueCredentialResponse.new
|
278
306
|
model.deserialize(response['Response'])
|
279
307
|
model
|
280
308
|
else
|
@@ -289,18 +317,40 @@ module TencentCloud
|
|
289
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
290
318
|
end
|
291
319
|
|
292
|
-
#
|
320
|
+
# 查询权威机构信息
|
321
|
+
|
322
|
+
# @param request: Request instance for QueryAuthorityInfo.
|
323
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::QueryAuthorityInfoRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::QueryAuthorityInfoResponse`
|
325
|
+
def QueryAuthorityInfo(request)
|
326
|
+
body = send_request('QueryAuthorityInfo', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = QueryAuthorityInfoResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
293
343
|
|
294
|
-
#
|
344
|
+
# 查询凭证模版内容
|
295
345
|
|
296
|
-
# @param request: Request instance for
|
297
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
298
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
299
|
-
def
|
300
|
-
body = send_request('
|
346
|
+
# @param request: Request instance for QueryCPT.
|
347
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::QueryCPTRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::QueryCPTResponse`
|
349
|
+
def QueryCPT(request)
|
350
|
+
body = send_request('QueryCPT', request.serialize)
|
301
351
|
response = JSON.parse(body)
|
302
352
|
if response['Response'].key?('Error') == false
|
303
|
-
model =
|
353
|
+
model = QueryCPTResponse.new
|
304
354
|
model.deserialize(response['Response'])
|
305
355
|
model
|
306
356
|
else
|
@@ -315,18 +365,40 @@ module TencentCloud
|
|
315
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
316
366
|
end
|
317
367
|
|
318
|
-
#
|
368
|
+
# 设置DID文档的自定义属性
|
319
369
|
|
320
|
-
#
|
370
|
+
# @param request: Request instance for SetTDidAttribute.
|
371
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::SetTDidAttributeRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::SetTDidAttributeResponse`
|
373
|
+
def SetTDidAttribute(request)
|
374
|
+
body = send_request('SetTDidAttribute', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = SetTDidAttributeResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 更新凭证的链上状态
|
321
393
|
|
322
|
-
# @param request: Request instance for
|
323
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
324
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
325
|
-
def
|
326
|
-
body = send_request('
|
394
|
+
# @param request: Request instance for UpdateCredentialState.
|
395
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::UpdateCredentialStateRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::UpdateCredentialStateResponse`
|
397
|
+
def UpdateCredentialState(request)
|
398
|
+
body = send_request('UpdateCredentialState', request.serialize)
|
327
399
|
response = JSON.parse(body)
|
328
400
|
if response['Response'].key?('Error') == false
|
329
|
-
model =
|
401
|
+
model = UpdateCredentialStateResponse.new
|
330
402
|
model.deserialize(response['Response'])
|
331
403
|
model
|
332
404
|
else
|
@@ -341,18 +413,40 @@ module TencentCloud
|
|
341
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
414
|
end
|
343
415
|
|
344
|
-
#
|
416
|
+
# 验证已签名的可验证凭证
|
417
|
+
|
418
|
+
# @param request: Request instance for VerifyCredentials.
|
419
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::VerifyCredentialsRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::VerifyCredentialsResponse`
|
421
|
+
def VerifyCredentials(request)
|
422
|
+
body = send_request('VerifyCredentials', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = VerifyCredentialsResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
345
439
|
|
346
|
-
#
|
440
|
+
# 验证可验证表达的内容
|
347
441
|
|
348
|
-
# @param request: Request instance for
|
349
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
350
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
351
|
-
def
|
352
|
-
body = send_request('
|
442
|
+
# @param request: Request instance for VerifyPresentation.
|
443
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::VerifyPresentationRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::VerifyPresentationResponse`
|
445
|
+
def VerifyPresentation(request)
|
446
|
+
body = send_request('VerifyPresentation', request.serialize)
|
353
447
|
response = JSON.parse(body)
|
354
448
|
if response['Response'].key?('Error') == false
|
355
|
-
model =
|
449
|
+
model = VerifyPresentationResponse.new
|
356
450
|
model.deserialize(response['Response'])
|
357
451
|
model
|
358
452
|
else
|