tencentcloud-sdk-tdid 3.0.598 → 3.0.599
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 +27 -755
- data/lib/v20210519/models.rb +49 -1967
- metadata +2 -2
data/lib/v20210519/client.rb
CHANGED
@@ -55,32 +55,6 @@ 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
|
83
|
-
|
84
58
|
# 检查区块链信息
|
85
59
|
|
86
60
|
# @param request: Request instance for CheckChain.
|
@@ -105,32 +79,6 @@ module TencentCloud
|
|
105
79
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
106
80
|
end
|
107
81
|
|
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
|
133
|
-
|
134
82
|
# 创建凭证
|
135
83
|
|
136
84
|
# @param request: Request instance for CreateCredential.
|
@@ -155,58 +103,6 @@ module TencentCloud
|
|
155
103
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
156
104
|
end
|
157
105
|
|
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
|
209
|
-
|
210
106
|
# 创建选择性批露凭证
|
211
107
|
|
212
108
|
# @param request: Request instance for CreateSelectiveCredential.
|
@@ -303,84 +199,6 @@ module TencentCloud
|
|
303
199
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
304
200
|
end
|
305
201
|
|
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
202
|
# 该接口已废弃
|
385
203
|
|
386
204
|
# 本机构DID详情
|
@@ -407,32 +225,6 @@ module TencentCloud
|
|
407
225
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
408
226
|
end
|
409
227
|
|
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
|
435
|
-
|
436
228
|
# 获取权威机构信息
|
437
229
|
|
438
230
|
# @param request: Request instance for GetAuthorityIssuer.
|
@@ -535,32 +327,6 @@ module TencentCloud
|
|
535
327
|
|
536
328
|
# 下线已有内测接口,待上线正式版本的接口
|
537
329
|
|
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
330
|
# 凭证颁发按机构排行
|
565
331
|
|
566
332
|
# @param request: Request instance for GetCredentialCptRank.
|
@@ -585,58 +351,6 @@ module TencentCloud
|
|
585
351
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
586
352
|
end
|
587
353
|
|
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
|
639
|
-
|
640
354
|
# 获取凭证链上状态信息
|
641
355
|
|
642
356
|
# @param request: Request instance for GetCredentialStatus.
|
@@ -663,16 +377,16 @@ module TencentCloud
|
|
663
377
|
|
664
378
|
# 下线已有内测接口,待上线正式版本的接口
|
665
379
|
|
666
|
-
#
|
380
|
+
# 获取DID区块链网络详情
|
667
381
|
|
668
|
-
# @param request: Request instance for
|
669
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
670
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
671
|
-
def
|
672
|
-
body = send_request('
|
382
|
+
# @param request: Request instance for GetDidClusterDetail.
|
383
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidClusterDetailRequest`
|
384
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidClusterDetailResponse`
|
385
|
+
def GetDidClusterDetail(request)
|
386
|
+
body = send_request('GetDidClusterDetail', request.serialize)
|
673
387
|
response = JSON.parse(body)
|
674
388
|
if response['Response'].key?('Error') == false
|
675
|
-
model =
|
389
|
+
model = GetDidClusterDetailResponse.new
|
676
390
|
model.deserialize(response['Response'])
|
677
391
|
model
|
678
392
|
else
|
@@ -689,16 +403,16 @@ module TencentCloud
|
|
689
403
|
|
690
404
|
# 下线已有内测接口,待上线正式版本的接口
|
691
405
|
|
692
|
-
#
|
406
|
+
# 获取用户的DID网络列表
|
693
407
|
|
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('
|
408
|
+
# @param request: Request instance for GetDidClusterList.
|
409
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidClusterListRequest`
|
410
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidClusterListResponse`
|
411
|
+
def GetDidClusterList(request)
|
412
|
+
body = send_request('GetDidClusterList', request.serialize)
|
699
413
|
response = JSON.parse(body)
|
700
414
|
if response['Response'].key?('Error') == false
|
701
|
-
model =
|
415
|
+
model = GetDidClusterListResponse.new
|
702
416
|
model.deserialize(response['Response'])
|
703
417
|
model
|
704
418
|
else
|
@@ -713,18 +427,16 @@ module TencentCloud
|
|
713
427
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
714
428
|
end
|
715
429
|
|
716
|
-
#
|
717
|
-
|
718
|
-
# 合约部署列表
|
430
|
+
# 查看DID文档
|
719
431
|
|
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('
|
432
|
+
# @param request: Request instance for GetDidDocument.
|
433
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentRequest`
|
434
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentResponse`
|
435
|
+
def GetDidDocument(request)
|
436
|
+
body = send_request('GetDidDocument', request.serialize)
|
725
437
|
response = JSON.parse(body)
|
726
438
|
if response['Response'].key?('Error') == false
|
727
|
-
model =
|
439
|
+
model = GetDidDocumentResponse.new
|
728
440
|
model.deserialize(response['Response'])
|
729
441
|
model
|
730
442
|
else
|
@@ -739,401 +451,13 @@ module TencentCloud
|
|
739
451
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
740
452
|
end
|
741
453
|
|
742
|
-
#
|
743
|
-
|
744
|
-
# 获取DID区块链网络详情
|
454
|
+
# 凭证模版新建
|
745
455
|
|
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('
|
751
|
-
response = JSON.parse(body)
|
752
|
-
if response['Response'].key?('Error') == false
|
753
|
-
model = GetDidClusterDetailResponse.new
|
754
|
-
model.deserialize(response['Response'])
|
755
|
-
model
|
756
|
-
else
|
757
|
-
code = response['Response']['Error']['Code']
|
758
|
-
message = response['Response']['Error']['Message']
|
759
|
-
reqid = response['Response']['RequestId']
|
760
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
761
|
-
end
|
762
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
763
|
-
raise e
|
764
|
-
rescue StandardError => e
|
765
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
766
|
-
end
|
767
|
-
|
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)
|
456
|
+
# @param request: Request instance for RegisterCpt.
|
457
|
+
# @type request: :class:`Tencentcloud::tdid::V20210519::RegisterCptRequest`
|
458
|
+
# @rtype: :class:`Tencentcloud::tdid::V20210519::RegisterCptResponse`
|
459
|
+
def RegisterCpt(request)
|
460
|
+
body = send_request('RegisterCpt', request.serialize)
|
1137
461
|
response = JSON.parse(body)
|
1138
462
|
if response['Response'].key?('Error') == false
|
1139
463
|
model = RegisterCptResponse.new
|
@@ -1151,58 +475,6 @@ module TencentCloud
|
|
1151
475
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1152
476
|
end
|
1153
477
|
|
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
478
|
# 设置凭证链上状态
|
1207
479
|
|
1208
480
|
# @param request: Request instance for SetCredentialStatus.
|