tencentcloud-sdk-tdid 3.0.598 → 3.0.600
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 +38 -792
- data/lib/v20210519/models.rb +136 -2212
- metadata +2 -2
data/lib/v20210519/client.rb
CHANGED
@@ -55,31 +55,7 @@ module TencentCloud
|
|
55
55
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
56
|
end
|
57
57
|
|
58
|
-
#
|
59
|
-
|
60
|
-
# 撤消权威机构认证
|
61
|
-
|
62
|
-
# @param request: Request instance for CancelAuthorityIssuer.
|
63
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::CancelAuthorityIssuerRequest`
|
64
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::CancelAuthorityIssuerResponse`
|
65
|
-
def CancelAuthorityIssuer(request)
|
66
|
-
body = send_request('CancelAuthorityIssuer', request.serialize)
|
67
|
-
response = JSON.parse(body)
|
68
|
-
if response['Response'].key?('Error') == false
|
69
|
-
model = CancelAuthorityIssuerResponse.new
|
70
|
-
model.deserialize(response['Response'])
|
71
|
-
model
|
72
|
-
else
|
73
|
-
code = response['Response']['Error']['Code']
|
74
|
-
message = response['Response']['Error']['Message']
|
75
|
-
reqid = response['Response']['RequestId']
|
76
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
77
|
-
end
|
78
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
79
|
-
raise e
|
80
|
-
rescue StandardError => e
|
81
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
82
|
-
end
|
58
|
+
# 该接口不再使用
|
83
59
|
|
84
60
|
# 检查区块链信息
|
85
61
|
|
@@ -105,31 +81,7 @@ module TencentCloud
|
|
105
81
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
106
82
|
end
|
107
83
|
|
108
|
-
#
|
109
|
-
|
110
|
-
# 检查部署情况
|
111
|
-
|
112
|
-
# @param request: Request instance for CheckDidDeploy.
|
113
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::CheckDidDeployRequest`
|
114
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::CheckDidDeployResponse`
|
115
|
-
def CheckDidDeploy(request)
|
116
|
-
body = send_request('CheckDidDeploy', request.serialize)
|
117
|
-
response = JSON.parse(body)
|
118
|
-
if response['Response'].key?('Error') == false
|
119
|
-
model = CheckDidDeployResponse.new
|
120
|
-
model.deserialize(response['Response'])
|
121
|
-
model
|
122
|
-
else
|
123
|
-
code = response['Response']['Error']['Code']
|
124
|
-
message = response['Response']['Error']['Message']
|
125
|
-
reqid = response['Response']['RequestId']
|
126
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
127
|
-
end
|
128
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
129
|
-
raise e
|
130
|
-
rescue StandardError => e
|
131
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
132
|
-
end
|
84
|
+
# 该接口不再使用
|
133
85
|
|
134
86
|
# 创建凭证
|
135
87
|
|
@@ -155,57 +107,7 @@ module TencentCloud
|
|
155
107
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
156
108
|
end
|
157
109
|
|
158
|
-
#
|
159
|
-
|
160
|
-
# 创建DID服务
|
161
|
-
|
162
|
-
# @param request: Request instance for CreateDidService.
|
163
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::CreateDidServiceRequest`
|
164
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::CreateDidServiceResponse`
|
165
|
-
def CreateDidService(request)
|
166
|
-
body = send_request('CreateDidService', request.serialize)
|
167
|
-
response = JSON.parse(body)
|
168
|
-
if response['Response'].key?('Error') == false
|
169
|
-
model = CreateDidServiceResponse.new
|
170
|
-
model.deserialize(response['Response'])
|
171
|
-
model
|
172
|
-
else
|
173
|
-
code = response['Response']['Error']['Code']
|
174
|
-
message = response['Response']['Error']['Message']
|
175
|
-
reqid = response['Response']['RequestId']
|
176
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
177
|
-
end
|
178
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
179
|
-
raise e
|
180
|
-
rescue StandardError => e
|
181
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
182
|
-
end
|
183
|
-
|
184
|
-
# 下线已有内测接口,待上线正式版本的接口
|
185
|
-
|
186
|
-
# 新建标签
|
187
|
-
|
188
|
-
# @param request: Request instance for CreateLabel.
|
189
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::CreateLabelRequest`
|
190
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::CreateLabelResponse`
|
191
|
-
def CreateLabel(request)
|
192
|
-
body = send_request('CreateLabel', request.serialize)
|
193
|
-
response = JSON.parse(body)
|
194
|
-
if response['Response'].key?('Error') == false
|
195
|
-
model = CreateLabelResponse.new
|
196
|
-
model.deserialize(response['Response'])
|
197
|
-
model
|
198
|
-
else
|
199
|
-
code = response['Response']['Error']['Code']
|
200
|
-
message = response['Response']['Error']['Message']
|
201
|
-
reqid = response['Response']['RequestId']
|
202
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
203
|
-
end
|
204
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
205
|
-
raise e
|
206
|
-
rescue StandardError => e
|
207
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
208
|
-
end
|
110
|
+
# 该接口不再使用
|
209
111
|
|
210
112
|
# 创建选择性批露凭证
|
211
113
|
|
@@ -231,6 +133,8 @@ module TencentCloud
|
|
231
133
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
232
134
|
end
|
233
135
|
|
136
|
+
# 该接口不再使用
|
137
|
+
|
234
138
|
# 创建机构DID
|
235
139
|
|
236
140
|
# @param request: Request instance for CreateTDid.
|
@@ -255,6 +159,8 @@ module TencentCloud
|
|
255
159
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
256
160
|
end
|
257
161
|
|
162
|
+
# 该接口不再使用
|
163
|
+
|
258
164
|
# 新建DID根据私钥生成Tdid
|
259
165
|
|
260
166
|
# @param request: Request instance for CreateTDidByPrivateKey.
|
@@ -279,6 +185,8 @@ module TencentCloud
|
|
279
185
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
280
186
|
end
|
281
187
|
|
188
|
+
# 该接口不再使用
|
189
|
+
|
282
190
|
# 新建DID根据公钥生成Tdid
|
283
191
|
|
284
192
|
# @param request: Request instance for CreateTDidByPublicKey.
|
@@ -303,84 +211,6 @@ module TencentCloud
|
|
303
211
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
304
212
|
end
|
305
213
|
|
306
|
-
# 下线已有内测接口,待上线正式版本的接口
|
307
|
-
|
308
|
-
# 通过Name部署TDID合约
|
309
|
-
|
310
|
-
# @param request: Request instance for DeployByName.
|
311
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::DeployByNameRequest`
|
312
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::DeployByNameResponse`
|
313
|
-
def DeployByName(request)
|
314
|
-
body = send_request('DeployByName', request.serialize)
|
315
|
-
response = JSON.parse(body)
|
316
|
-
if response['Response'].key?('Error') == false
|
317
|
-
model = DeployByNameResponse.new
|
318
|
-
model.deserialize(response['Response'])
|
319
|
-
model
|
320
|
-
else
|
321
|
-
code = response['Response']['Error']['Code']
|
322
|
-
message = response['Response']['Error']['Message']
|
323
|
-
reqid = response['Response']['RequestId']
|
324
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
325
|
-
end
|
326
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
327
|
-
raise e
|
328
|
-
rescue StandardError => e
|
329
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
330
|
-
end
|
331
|
-
|
332
|
-
# 下线已有内测接口,待上线正式版本的接口
|
333
|
-
|
334
|
-
# 凭证模版下载
|
335
|
-
|
336
|
-
# @param request: Request instance for DownCpt.
|
337
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::DownCptRequest`
|
338
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::DownCptResponse`
|
339
|
-
def DownCpt(request)
|
340
|
-
body = send_request('DownCpt', request.serialize)
|
341
|
-
response = JSON.parse(body)
|
342
|
-
if response['Response'].key?('Error') == false
|
343
|
-
model = DownCptResponse.new
|
344
|
-
model.deserialize(response['Response'])
|
345
|
-
model
|
346
|
-
else
|
347
|
-
code = response['Response']['Error']['Code']
|
348
|
-
message = response['Response']['Error']['Message']
|
349
|
-
reqid = response['Response']['RequestId']
|
350
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
351
|
-
end
|
352
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
353
|
-
raise e
|
354
|
-
rescue StandardError => e
|
355
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
356
|
-
end
|
357
|
-
|
358
|
-
# 下线已有内测接口,待上线正式版本的接口
|
359
|
-
|
360
|
-
# 启用合约
|
361
|
-
|
362
|
-
# @param request: Request instance for EnableHash.
|
363
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::EnableHashRequest`
|
364
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::EnableHashResponse`
|
365
|
-
def EnableHash(request)
|
366
|
-
body = send_request('EnableHash', request.serialize)
|
367
|
-
response = JSON.parse(body)
|
368
|
-
if response['Response'].key?('Error') == false
|
369
|
-
model = EnableHashResponse.new
|
370
|
-
model.deserialize(response['Response'])
|
371
|
-
model
|
372
|
-
else
|
373
|
-
code = response['Response']['Error']['Code']
|
374
|
-
message = response['Response']['Error']['Message']
|
375
|
-
reqid = response['Response']['RequestId']
|
376
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
377
|
-
end
|
378
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
379
|
-
raise e
|
380
|
-
rescue StandardError => e
|
381
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
382
|
-
end
|
383
|
-
|
384
214
|
# 该接口已废弃
|
385
215
|
|
386
216
|
# 本机构DID详情
|
@@ -407,31 +237,7 @@ module TencentCloud
|
|
407
237
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
408
238
|
end
|
409
239
|
|
410
|
-
#
|
411
|
-
|
412
|
-
# 权威机构列表
|
413
|
-
|
414
|
-
# @param request: Request instance for GetAuthoritiesList.
|
415
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetAuthoritiesListRequest`
|
416
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetAuthoritiesListResponse`
|
417
|
-
def GetAuthoritiesList(request)
|
418
|
-
body = send_request('GetAuthoritiesList', request.serialize)
|
419
|
-
response = JSON.parse(body)
|
420
|
-
if response['Response'].key?('Error') == false
|
421
|
-
model = GetAuthoritiesListResponse.new
|
422
|
-
model.deserialize(response['Response'])
|
423
|
-
model
|
424
|
-
else
|
425
|
-
code = response['Response']['Error']['Code']
|
426
|
-
message = response['Response']['Error']['Message']
|
427
|
-
reqid = response['Response']['RequestId']
|
428
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
429
|
-
end
|
430
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
431
|
-
raise e
|
432
|
-
rescue StandardError => e
|
433
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
434
|
-
end
|
240
|
+
# 该接口不再使用
|
435
241
|
|
436
242
|
# 获取权威机构信息
|
437
243
|
|
@@ -509,6 +315,8 @@ module TencentCloud
|
|
509
315
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
316
|
end
|
511
317
|
|
318
|
+
# 该接口不再使用
|
319
|
+
|
512
320
|
# 凭证模版详情
|
513
321
|
|
514
322
|
# @param request: Request instance for GetCptInfo.
|
@@ -535,32 +343,6 @@ module TencentCloud
|
|
535
343
|
|
536
344
|
# 下线已有内测接口,待上线正式版本的接口
|
537
345
|
|
538
|
-
# 凭证模版列表
|
539
|
-
|
540
|
-
# @param request: Request instance for GetCptList.
|
541
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetCptListRequest`
|
542
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetCptListResponse`
|
543
|
-
def GetCptList(request)
|
544
|
-
body = send_request('GetCptList', request.serialize)
|
545
|
-
response = JSON.parse(body)
|
546
|
-
if response['Response'].key?('Error') == false
|
547
|
-
model = GetCptListResponse.new
|
548
|
-
model.deserialize(response['Response'])
|
549
|
-
model
|
550
|
-
else
|
551
|
-
code = response['Response']['Error']['Code']
|
552
|
-
message = response['Response']['Error']['Message']
|
553
|
-
reqid = response['Response']['RequestId']
|
554
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
555
|
-
end
|
556
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
557
|
-
raise e
|
558
|
-
rescue StandardError => e
|
559
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
|
-
end
|
561
|
-
|
562
|
-
# 下线已有内测接口,待上线正式版本的接口
|
563
|
-
|
564
346
|
# 凭证颁发按机构排行
|
565
347
|
|
566
348
|
# @param request: Request instance for GetCredentialCptRank.
|
@@ -585,57 +367,7 @@ module TencentCloud
|
|
585
367
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
586
368
|
end
|
587
369
|
|
588
|
-
#
|
589
|
-
|
590
|
-
# 凭证颁发按机构排行
|
591
|
-
|
592
|
-
# @param request: Request instance for GetCredentialIssueRank.
|
593
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetCredentialIssueRankRequest`
|
594
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetCredentialIssueRankResponse`
|
595
|
-
def GetCredentialIssueRank(request)
|
596
|
-
body = send_request('GetCredentialIssueRank', request.serialize)
|
597
|
-
response = JSON.parse(body)
|
598
|
-
if response['Response'].key?('Error') == false
|
599
|
-
model = GetCredentialIssueRankResponse.new
|
600
|
-
model.deserialize(response['Response'])
|
601
|
-
model
|
602
|
-
else
|
603
|
-
code = response['Response']['Error']['Code']
|
604
|
-
message = response['Response']['Error']['Message']
|
605
|
-
reqid = response['Response']['RequestId']
|
606
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
607
|
-
end
|
608
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
609
|
-
raise e
|
610
|
-
rescue StandardError => e
|
611
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
612
|
-
end
|
613
|
-
|
614
|
-
# 下线已有内测接口,待上线正式版本的接口
|
615
|
-
|
616
|
-
# 凭证颁发趋势
|
617
|
-
|
618
|
-
# @param request: Request instance for GetCredentialIssueTrend.
|
619
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetCredentialIssueTrendRequest`
|
620
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetCredentialIssueTrendResponse`
|
621
|
-
def GetCredentialIssueTrend(request)
|
622
|
-
body = send_request('GetCredentialIssueTrend', request.serialize)
|
623
|
-
response = JSON.parse(body)
|
624
|
-
if response['Response'].key?('Error') == false
|
625
|
-
model = GetCredentialIssueTrendResponse.new
|
626
|
-
model.deserialize(response['Response'])
|
627
|
-
model
|
628
|
-
else
|
629
|
-
code = response['Response']['Error']['Code']
|
630
|
-
message = response['Response']['Error']['Message']
|
631
|
-
reqid = response['Response']['RequestId']
|
632
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
633
|
-
end
|
634
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
635
|
-
raise e
|
636
|
-
rescue StandardError => e
|
637
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
638
|
-
end
|
370
|
+
# 该接口不再使用
|
639
371
|
|
640
372
|
# 获取凭证链上状态信息
|
641
373
|
|
@@ -661,44 +393,18 @@ module TencentCloud
|
|
661
393
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
662
394
|
end
|
663
395
|
|
664
|
-
#
|
665
|
-
|
666
|
-
# 概览
|
667
|
-
|
668
|
-
# @param request: Request instance for GetDataPanel.
|
669
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDataPanelRequest`
|
670
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDataPanelResponse`
|
671
|
-
def GetDataPanel(request)
|
672
|
-
body = send_request('GetDataPanel', request.serialize)
|
673
|
-
response = JSON.parse(body)
|
674
|
-
if response['Response'].key?('Error') == false
|
675
|
-
model = GetDataPanelResponse.new
|
676
|
-
model.deserialize(response['Response'])
|
677
|
-
model
|
678
|
-
else
|
679
|
-
code = response['Response']['Error']['Code']
|
680
|
-
message = response['Response']['Error']['Message']
|
681
|
-
reqid = response['Response']['RequestId']
|
682
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
683
|
-
end
|
684
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
685
|
-
raise e
|
686
|
-
rescue StandardError => e
|
687
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
688
|
-
end
|
689
|
-
|
690
|
-
# 下线已有内测接口,待上线正式版本的接口
|
396
|
+
# 该接口不再使用
|
691
397
|
|
692
|
-
#
|
398
|
+
# 查看DID文档
|
693
399
|
|
694
|
-
# @param request: Request instance for
|
695
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
696
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
697
|
-
def
|
698
|
-
body = send_request('
|
400
|
+
# @param request: Request instance for GetDidDocument.
|
401
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentRequest`
|
402
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentResponse`
|
403
|
+
def GetDidDocument(request)
|
404
|
+
body = send_request('GetDidDocument', request.serialize)
|
699
405
|
response = JSON.parse(body)
|
700
406
|
if response['Response'].key?('Error') == false
|
701
|
-
model =
|
407
|
+
model = GetDidDocumentResponse.new
|
702
408
|
model.deserialize(response['Response'])
|
703
409
|
model
|
704
410
|
else
|
@@ -713,18 +419,18 @@ module TencentCloud
|
|
713
419
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
714
420
|
end
|
715
421
|
|
716
|
-
#
|
422
|
+
# 该接口不再使用
|
717
423
|
|
718
|
-
#
|
424
|
+
# 凭证模版新建
|
719
425
|
|
720
|
-
# @param request: Request instance for
|
721
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
722
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
723
|
-
def
|
724
|
-
body = send_request('
|
426
|
+
# @param request: Request instance for RegisterCpt.
|
427
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::RegisterCptRequest`
|
428
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::RegisterCptResponse`
|
429
|
+
def RegisterCpt(request)
|
430
|
+
body = send_request('RegisterCpt', request.serialize)
|
725
431
|
response = JSON.parse(body)
|
726
432
|
if response['Response'].key?('Error') == false
|
727
|
-
model =
|
433
|
+
model = RegisterCptResponse.new
|
728
434
|
model.deserialize(response['Response'])
|
729
435
|
model
|
730
436
|
else
|
@@ -739,18 +445,18 @@ module TencentCloud
|
|
739
445
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
740
446
|
end
|
741
447
|
|
742
|
-
#
|
448
|
+
# 该接口不再使用
|
743
449
|
|
744
|
-
#
|
450
|
+
# 设置凭证链上状态
|
745
451
|
|
746
|
-
# @param request: Request instance for
|
747
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
748
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
749
|
-
def
|
750
|
-
body = send_request('
|
452
|
+
# @param request: Request instance for SetCredentialStatus.
|
453
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::SetCredentialStatusRequest`
|
454
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::SetCredentialStatusResponse`
|
455
|
+
def SetCredentialStatus(request)
|
456
|
+
body = send_request('SetCredentialStatus', request.serialize)
|
751
457
|
response = JSON.parse(body)
|
752
458
|
if response['Response'].key?('Error') == false
|
753
|
-
model =
|
459
|
+
model = SetCredentialStatusResponse.new
|
754
460
|
model.deserialize(response['Response'])
|
755
461
|
model
|
756
462
|
else
|
@@ -765,467 +471,7 @@ module TencentCloud
|
|
765
471
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
766
472
|
end
|
767
473
|
|
768
|
-
#
|
769
|
-
|
770
|
-
# 获取用户的DID网络列表
|
771
|
-
|
772
|
-
# @param request: Request instance for GetDidClusterList.
|
773
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidClusterListRequest`
|
774
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidClusterListResponse`
|
775
|
-
def GetDidClusterList(request)
|
776
|
-
body = send_request('GetDidClusterList', request.serialize)
|
777
|
-
response = JSON.parse(body)
|
778
|
-
if response['Response'].key?('Error') == false
|
779
|
-
model = GetDidClusterListResponse.new
|
780
|
-
model.deserialize(response['Response'])
|
781
|
-
model
|
782
|
-
else
|
783
|
-
code = response['Response']['Error']['Code']
|
784
|
-
message = response['Response']['Error']['Message']
|
785
|
-
reqid = response['Response']['RequestId']
|
786
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
787
|
-
end
|
788
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
789
|
-
raise e
|
790
|
-
rescue StandardError => e
|
791
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
792
|
-
end
|
793
|
-
|
794
|
-
# 下线已有内测接口,待上线正式版本的接口
|
795
|
-
|
796
|
-
# DID详情
|
797
|
-
|
798
|
-
# @param request: Request instance for GetDidDetail.
|
799
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidDetailRequest`
|
800
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidDetailResponse`
|
801
|
-
def GetDidDetail(request)
|
802
|
-
body = send_request('GetDidDetail', request.serialize)
|
803
|
-
response = JSON.parse(body)
|
804
|
-
if response['Response'].key?('Error') == false
|
805
|
-
model = GetDidDetailResponse.new
|
806
|
-
model.deserialize(response['Response'])
|
807
|
-
model
|
808
|
-
else
|
809
|
-
code = response['Response']['Error']['Code']
|
810
|
-
message = response['Response']['Error']['Message']
|
811
|
-
reqid = response['Response']['RequestId']
|
812
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
813
|
-
end
|
814
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
815
|
-
raise e
|
816
|
-
rescue StandardError => e
|
817
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
818
|
-
end
|
819
|
-
|
820
|
-
# 查看DID文档
|
821
|
-
|
822
|
-
# @param request: Request instance for GetDidDocument.
|
823
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentRequest`
|
824
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentResponse`
|
825
|
-
def GetDidDocument(request)
|
826
|
-
body = send_request('GetDidDocument', request.serialize)
|
827
|
-
response = JSON.parse(body)
|
828
|
-
if response['Response'].key?('Error') == false
|
829
|
-
model = GetDidDocumentResponse.new
|
830
|
-
model.deserialize(response['Response'])
|
831
|
-
model
|
832
|
-
else
|
833
|
-
code = response['Response']['Error']['Code']
|
834
|
-
message = response['Response']['Error']['Message']
|
835
|
-
reqid = response['Response']['RequestId']
|
836
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
837
|
-
end
|
838
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
839
|
-
raise e
|
840
|
-
rescue StandardError => e
|
841
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
842
|
-
end
|
843
|
-
|
844
|
-
# 下线已有内测接口,待上线正式版本的接口
|
845
|
-
|
846
|
-
# DID列表
|
847
|
-
|
848
|
-
# @param request: Request instance for GetDidList.
|
849
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidListRequest`
|
850
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidListResponse`
|
851
|
-
def GetDidList(request)
|
852
|
-
body = send_request('GetDidList', request.serialize)
|
853
|
-
response = JSON.parse(body)
|
854
|
-
if response['Response'].key?('Error') == false
|
855
|
-
model = GetDidListResponse.new
|
856
|
-
model.deserialize(response['Response'])
|
857
|
-
model
|
858
|
-
else
|
859
|
-
code = response['Response']['Error']['Code']
|
860
|
-
message = response['Response']['Error']['Message']
|
861
|
-
reqid = response['Response']['RequestId']
|
862
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
863
|
-
end
|
864
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
865
|
-
raise e
|
866
|
-
rescue StandardError => e
|
867
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
868
|
-
end
|
869
|
-
|
870
|
-
# 下线已有内测接口,待上线正式版本的接口
|
871
|
-
|
872
|
-
# DID注册趋势
|
873
|
-
|
874
|
-
# @param request: Request instance for GetDidRegisterTrend.
|
875
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidRegisterTrendRequest`
|
876
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidRegisterTrendResponse`
|
877
|
-
def GetDidRegisterTrend(request)
|
878
|
-
body = send_request('GetDidRegisterTrend', request.serialize)
|
879
|
-
response = JSON.parse(body)
|
880
|
-
if response['Response'].key?('Error') == false
|
881
|
-
model = GetDidRegisterTrendResponse.new
|
882
|
-
model.deserialize(response['Response'])
|
883
|
-
model
|
884
|
-
else
|
885
|
-
code = response['Response']['Error']['Code']
|
886
|
-
message = response['Response']['Error']['Message']
|
887
|
-
reqid = response['Response']['RequestId']
|
888
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
-
end
|
890
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
-
raise e
|
892
|
-
rescue StandardError => e
|
893
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
-
end
|
895
|
-
|
896
|
-
# 下线已有内测接口,待上线正式版本的接口
|
897
|
-
|
898
|
-
# 获取DID服务详情
|
899
|
-
|
900
|
-
# @param request: Request instance for GetDidServiceDetail.
|
901
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidServiceDetailRequest`
|
902
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidServiceDetailResponse`
|
903
|
-
def GetDidServiceDetail(request)
|
904
|
-
body = send_request('GetDidServiceDetail', request.serialize)
|
905
|
-
response = JSON.parse(body)
|
906
|
-
if response['Response'].key?('Error') == false
|
907
|
-
model = GetDidServiceDetailResponse.new
|
908
|
-
model.deserialize(response['Response'])
|
909
|
-
model
|
910
|
-
else
|
911
|
-
code = response['Response']['Error']['Code']
|
912
|
-
message = response['Response']['Error']['Message']
|
913
|
-
reqid = response['Response']['RequestId']
|
914
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
915
|
-
end
|
916
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
917
|
-
raise e
|
918
|
-
rescue StandardError => e
|
919
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
920
|
-
end
|
921
|
-
|
922
|
-
# 下线已有内测接口,待上线正式版本的接口
|
923
|
-
|
924
|
-
# 获取DID服务列表
|
925
|
-
|
926
|
-
# @param request: Request instance for GetDidServiceList.
|
927
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidServiceListRequest`
|
928
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidServiceListResponse`
|
929
|
-
def GetDidServiceList(request)
|
930
|
-
body = send_request('GetDidServiceList', request.serialize)
|
931
|
-
response = JSON.parse(body)
|
932
|
-
if response['Response'].key?('Error') == false
|
933
|
-
model = GetDidServiceListResponse.new
|
934
|
-
model.deserialize(response['Response'])
|
935
|
-
model
|
936
|
-
else
|
937
|
-
code = response['Response']['Error']['Code']
|
938
|
-
message = response['Response']['Error']['Message']
|
939
|
-
reqid = response['Response']['RequestId']
|
940
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
941
|
-
end
|
942
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
943
|
-
raise e
|
944
|
-
rescue StandardError => e
|
945
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
946
|
-
end
|
947
|
-
|
948
|
-
# 下线已有内测接口,待上线正式版本的接口
|
949
|
-
|
950
|
-
# 主群组配置列表
|
951
|
-
|
952
|
-
# @param request: Request instance for GetGroupList.
|
953
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetGroupListRequest`
|
954
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetGroupListResponse`
|
955
|
-
def GetGroupList(request)
|
956
|
-
body = send_request('GetGroupList', request.serialize)
|
957
|
-
response = JSON.parse(body)
|
958
|
-
if response['Response'].key?('Error') == false
|
959
|
-
model = GetGroupListResponse.new
|
960
|
-
model.deserialize(response['Response'])
|
961
|
-
model
|
962
|
-
else
|
963
|
-
code = response['Response']['Error']['Code']
|
964
|
-
message = response['Response']['Error']['Message']
|
965
|
-
reqid = response['Response']['RequestId']
|
966
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
967
|
-
end
|
968
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
969
|
-
raise e
|
970
|
-
rescue StandardError => e
|
971
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
972
|
-
end
|
973
|
-
|
974
|
-
# 下线已有内测接口,待上线正式版本的接口
|
975
|
-
|
976
|
-
# 标签列表
|
977
|
-
|
978
|
-
# @param request: Request instance for GetLabelList.
|
979
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetLabelListRequest`
|
980
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetLabelListResponse`
|
981
|
-
def GetLabelList(request)
|
982
|
-
body = send_request('GetLabelList', request.serialize)
|
983
|
-
response = JSON.parse(body)
|
984
|
-
if response['Response'].key?('Error') == false
|
985
|
-
model = GetLabelListResponse.new
|
986
|
-
model.deserialize(response['Response'])
|
987
|
-
model
|
988
|
-
else
|
989
|
-
code = response['Response']['Error']['Code']
|
990
|
-
message = response['Response']['Error']['Message']
|
991
|
-
reqid = response['Response']['RequestId']
|
992
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
993
|
-
end
|
994
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
995
|
-
raise e
|
996
|
-
rescue StandardError => e
|
997
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
998
|
-
end
|
999
|
-
|
1000
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1001
|
-
|
1002
|
-
# 披露策略Policy管理列表
|
1003
|
-
|
1004
|
-
# @param request: Request instance for GetPolicyList.
|
1005
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetPolicyListRequest`
|
1006
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetPolicyListResponse`
|
1007
|
-
def GetPolicyList(request)
|
1008
|
-
body = send_request('GetPolicyList', request.serialize)
|
1009
|
-
response = JSON.parse(body)
|
1010
|
-
if response['Response'].key?('Error') == false
|
1011
|
-
model = GetPolicyListResponse.new
|
1012
|
-
model.deserialize(response['Response'])
|
1013
|
-
model
|
1014
|
-
else
|
1015
|
-
code = response['Response']['Error']['Code']
|
1016
|
-
message = response['Response']['Error']['Message']
|
1017
|
-
reqid = response['Response']['RequestId']
|
1018
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1019
|
-
end
|
1020
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1021
|
-
raise e
|
1022
|
-
rescue StandardError => e
|
1023
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1024
|
-
end
|
1025
|
-
|
1026
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1027
|
-
|
1028
|
-
# 查看公钥
|
1029
|
-
|
1030
|
-
# @param request: Request instance for GetPublicKey.
|
1031
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::GetPublicKeyRequest`
|
1032
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetPublicKeyResponse`
|
1033
|
-
def GetPublicKey(request)
|
1034
|
-
body = send_request('GetPublicKey', request.serialize)
|
1035
|
-
response = JSON.parse(body)
|
1036
|
-
if response['Response'].key?('Error') == false
|
1037
|
-
model = GetPublicKeyResponse.new
|
1038
|
-
model.deserialize(response['Response'])
|
1039
|
-
model
|
1040
|
-
else
|
1041
|
-
code = response['Response']['Error']['Code']
|
1042
|
-
message = response['Response']['Error']['Message']
|
1043
|
-
reqid = response['Response']['RequestId']
|
1044
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1045
|
-
end
|
1046
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1047
|
-
raise e
|
1048
|
-
rescue StandardError => e
|
1049
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1050
|
-
end
|
1051
|
-
|
1052
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1053
|
-
|
1054
|
-
# 披露策略Policy查看
|
1055
|
-
|
1056
|
-
# @param request: Request instance for QueryPolicy.
|
1057
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::QueryPolicyRequest`
|
1058
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::QueryPolicyResponse`
|
1059
|
-
def QueryPolicy(request)
|
1060
|
-
body = send_request('QueryPolicy', request.serialize)
|
1061
|
-
response = JSON.parse(body)
|
1062
|
-
if response['Response'].key?('Error') == false
|
1063
|
-
model = QueryPolicyResponse.new
|
1064
|
-
model.deserialize(response['Response'])
|
1065
|
-
model
|
1066
|
-
else
|
1067
|
-
code = response['Response']['Error']['Code']
|
1068
|
-
message = response['Response']['Error']['Message']
|
1069
|
-
reqid = response['Response']['RequestId']
|
1070
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1071
|
-
end
|
1072
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1073
|
-
raise e
|
1074
|
-
rescue StandardError => e
|
1075
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1076
|
-
end
|
1077
|
-
|
1078
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1079
|
-
|
1080
|
-
# 认证权威机构
|
1081
|
-
|
1082
|
-
# @param request: Request instance for RecognizeAuthorityIssuer.
|
1083
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::RecognizeAuthorityIssuerRequest`
|
1084
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::RecognizeAuthorityIssuerResponse`
|
1085
|
-
def RecognizeAuthorityIssuer(request)
|
1086
|
-
body = send_request('RecognizeAuthorityIssuer', request.serialize)
|
1087
|
-
response = JSON.parse(body)
|
1088
|
-
if response['Response'].key?('Error') == false
|
1089
|
-
model = RecognizeAuthorityIssuerResponse.new
|
1090
|
-
model.deserialize(response['Response'])
|
1091
|
-
model
|
1092
|
-
else
|
1093
|
-
code = response['Response']['Error']['Code']
|
1094
|
-
message = response['Response']['Error']['Message']
|
1095
|
-
reqid = response['Response']['RequestId']
|
1096
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1097
|
-
end
|
1098
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1099
|
-
raise e
|
1100
|
-
rescue StandardError => e
|
1101
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1102
|
-
end
|
1103
|
-
|
1104
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1105
|
-
|
1106
|
-
# 披露策略Policy注册
|
1107
|
-
|
1108
|
-
# @param request: Request instance for RegisterClaimPolicy.
|
1109
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::RegisterClaimPolicyRequest`
|
1110
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::RegisterClaimPolicyResponse`
|
1111
|
-
def RegisterClaimPolicy(request)
|
1112
|
-
body = send_request('RegisterClaimPolicy', request.serialize)
|
1113
|
-
response = JSON.parse(body)
|
1114
|
-
if response['Response'].key?('Error') == false
|
1115
|
-
model = RegisterClaimPolicyResponse.new
|
1116
|
-
model.deserialize(response['Response'])
|
1117
|
-
model
|
1118
|
-
else
|
1119
|
-
code = response['Response']['Error']['Code']
|
1120
|
-
message = response['Response']['Error']['Message']
|
1121
|
-
reqid = response['Response']['RequestId']
|
1122
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1123
|
-
end
|
1124
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1125
|
-
raise e
|
1126
|
-
rescue StandardError => e
|
1127
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1128
|
-
end
|
1129
|
-
|
1130
|
-
# 凭证模版新建
|
1131
|
-
|
1132
|
-
# @param request: Request instance for RegisterCpt.
|
1133
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::RegisterCptRequest`
|
1134
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::RegisterCptResponse`
|
1135
|
-
def RegisterCpt(request)
|
1136
|
-
body = send_request('RegisterCpt', request.serialize)
|
1137
|
-
response = JSON.parse(body)
|
1138
|
-
if response['Response'].key?('Error') == false
|
1139
|
-
model = RegisterCptResponse.new
|
1140
|
-
model.deserialize(response['Response'])
|
1141
|
-
model
|
1142
|
-
else
|
1143
|
-
code = response['Response']['Error']['Code']
|
1144
|
-
message = response['Response']['Error']['Message']
|
1145
|
-
reqid = response['Response']['RequestId']
|
1146
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1147
|
-
end
|
1148
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1149
|
-
raise e
|
1150
|
-
rescue StandardError => e
|
1151
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1152
|
-
end
|
1153
|
-
|
1154
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1155
|
-
|
1156
|
-
# 注册为权威机构
|
1157
|
-
|
1158
|
-
# @param request: Request instance for RegisterIssuer.
|
1159
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::RegisterIssuerRequest`
|
1160
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::RegisterIssuerResponse`
|
1161
|
-
def RegisterIssuer(request)
|
1162
|
-
body = send_request('RegisterIssuer', request.serialize)
|
1163
|
-
response = JSON.parse(body)
|
1164
|
-
if response['Response'].key?('Error') == false
|
1165
|
-
model = RegisterIssuerResponse.new
|
1166
|
-
model.deserialize(response['Response'])
|
1167
|
-
model
|
1168
|
-
else
|
1169
|
-
code = response['Response']['Error']['Code']
|
1170
|
-
message = response['Response']['Error']['Message']
|
1171
|
-
reqid = response['Response']['RequestId']
|
1172
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1173
|
-
end
|
1174
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1175
|
-
raise e
|
1176
|
-
rescue StandardError => e
|
1177
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1178
|
-
end
|
1179
|
-
|
1180
|
-
# 下线已有内测接口,待上线正式版本的接口
|
1181
|
-
|
1182
|
-
# 删除合约
|
1183
|
-
|
1184
|
-
# @param request: Request instance for RemoveHash.
|
1185
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::RemoveHashRequest`
|
1186
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::RemoveHashResponse`
|
1187
|
-
def RemoveHash(request)
|
1188
|
-
body = send_request('RemoveHash', request.serialize)
|
1189
|
-
response = JSON.parse(body)
|
1190
|
-
if response['Response'].key?('Error') == false
|
1191
|
-
model = RemoveHashResponse.new
|
1192
|
-
model.deserialize(response['Response'])
|
1193
|
-
model
|
1194
|
-
else
|
1195
|
-
code = response['Response']['Error']['Code']
|
1196
|
-
message = response['Response']['Error']['Message']
|
1197
|
-
reqid = response['Response']['RequestId']
|
1198
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1199
|
-
end
|
1200
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1201
|
-
raise e
|
1202
|
-
rescue StandardError => e
|
1203
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1204
|
-
end
|
1205
|
-
|
1206
|
-
# 设置凭证链上状态
|
1207
|
-
|
1208
|
-
# @param request: Request instance for SetCredentialStatus.
|
1209
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::SetCredentialStatusRequest`
|
1210
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::SetCredentialStatusResponse`
|
1211
|
-
def SetCredentialStatus(request)
|
1212
|
-
body = send_request('SetCredentialStatus', request.serialize)
|
1213
|
-
response = JSON.parse(body)
|
1214
|
-
if response['Response'].key?('Error') == false
|
1215
|
-
model = SetCredentialStatusResponse.new
|
1216
|
-
model.deserialize(response['Response'])
|
1217
|
-
model
|
1218
|
-
else
|
1219
|
-
code = response['Response']['Error']['Code']
|
1220
|
-
message = response['Response']['Error']['Message']
|
1221
|
-
reqid = response['Response']['RequestId']
|
1222
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1223
|
-
end
|
1224
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1225
|
-
raise e
|
1226
|
-
rescue StandardError => e
|
1227
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1228
|
-
end
|
474
|
+
# 该接口不再使用
|
1229
475
|
|
1230
476
|
# 验证凭证
|
1231
477
|
|