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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04bc42a16b39689765cd61e53e2d427b101e4966
4
- data.tar.gz: 1dc9c415f271df301e84459776fdc75a6edb899f
3
+ metadata.gz: d90912e788e3e931ce136debff2478454a7d84ad
4
+ data.tar.gz: 1f2f38e7e9766689324ac974f1a79a2ba1b29ae0
5
5
  SHA512:
6
- metadata.gz: 9bdefc661b21540e67b64bf7c80e66c698c9d85297622625e5d6115e273dd477d2e8cece003ba99101a840993f0add2f2dd7fb145bdc7c4aa13e4b90b8cbabfd
7
- data.tar.gz: 5584227e6993be4d2ccd14069f36a241b7a0bf14df235325eff2e32e0d55d767088cded396c38b7bc0e0d582c804a5b4567629d256956740827d4f4c653dca90
6
+ metadata.gz: eb5de8e9ca8e435a4abb79de4f1814672fe0b58da6b0f8fafd3a8bace21899a362403f51aa38eb1eab86065b391317e00f0fea638b400f3cb4fb88b3158733aa
7
+ data.tar.gz: bdcf7362b1f6a484c4783d6648d02279f489a637c33c0d31f7184aad060e1239d42a96be9ae2cb337daae8a977c6a50753d7eb3fd89d34a39a8823270fbbee60
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.746
1
+ 3.0.748
@@ -29,18 +29,16 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # 该接口不再使用
32
+ # 根据披露策略创建选择性披露凭证
33
33
 
34
- # 检查区块链信息
35
-
36
- # @param request: Request instance for CheckChain.
37
- # @type request: :class:`Tencentcloud::tdid::V20210519::CheckChainRequest`
38
- # @rtype: :class:`Tencentcloud::tdid::V20210519::CheckChainResponse`
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 = CheckChainResponse.new
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 CreateCredential.
63
- # @type request: :class:`Tencentcloud::tdid::V20210519::CreateCredentialRequest`
64
- # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateCredentialResponse`
65
- def CreateCredential(request)
66
- body = send_request('CreateCredential', request.serialize)
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 = CreateCredentialResponse.new
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 CreateSelectiveCredential.
89
- # @type request: :class:`Tencentcloud::tdid::V20210519::CreateSelectiveCredentialRequest`
90
- # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateSelectiveCredentialResponse`
91
- def CreateSelectiveCredential(request)
92
- body = send_request('CreateSelectiveCredential', request.serialize)
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 = CreateSelectiveCredentialResponse.new
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
- # 创建机构DID
113
-
114
- # @param request: Request instance for CreateTDid.
115
- # @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidRequest`
116
- # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidResponse`
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 = CreateTDidResponse.new
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 CreateTDidByPrivateKey.
141
- # @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPrivateKeyRequest`
142
- # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPrivateKeyResponse`
143
- def CreateTDidByPrivateKey(request)
144
- body = send_request('CreateTDidByPrivateKey', request.serialize)
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 = CreateTDidByPrivateKeyResponse.new
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 CreateTDidByPublicKey.
167
- # @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPublicKeyRequest`
168
- # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPublicKeyResponse`
169
- def CreateTDidByPublicKey(request)
170
- body = send_request('CreateTDidByPublicKey', request.serialize)
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 = CreateTDidByPublicKeyResponse.new
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 GetAuthorityIssuer.
193
- # @type request: :class:`Tencentcloud::tdid::V20210519::GetAuthorityIssuerRequest`
194
- # @rtype: :class:`Tencentcloud::tdid::V20210519::GetAuthorityIssuerResponse`
195
- def GetAuthorityIssuer(request)
196
- body = send_request('GetAuthorityIssuer', request.serialize)
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 = GetAuthorityIssuerResponse.new
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 GetCptInfo.
219
- # @type request: :class:`Tencentcloud::tdid::V20210519::GetCptInfoRequest`
220
- # @rtype: :class:`Tencentcloud::tdid::V20210519::GetCptInfoResponse`
221
- def GetCptInfo(request)
222
- body = send_request('GetCptInfo', request.serialize)
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 = GetCptInfoResponse.new
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 GetCredentialStatus.
245
- # @type request: :class:`Tencentcloud::tdid::V20210519::GetCredentialStatusRequest`
246
- # @rtype: :class:`Tencentcloud::tdid::V20210519::GetCredentialStatusResponse`
247
- def GetCredentialStatus(request)
248
- body = send_request('GetCredentialStatus', request.serialize)
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 = GetCredentialStatusResponse.new
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
- # 查看DID文档
296
+ # 颁发可验证凭证
269
297
 
270
- # @param request: Request instance for GetDidDocument.
271
- # @type request: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentRequest`
272
- # @rtype: :class:`Tencentcloud::tdid::V20210519::GetDidDocumentResponse`
273
- def GetDidDocument(request)
274
- body = send_request('GetDidDocument', request.serialize)
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 = GetDidDocumentResponse.new
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 RegisterCpt.
297
- # @type request: :class:`Tencentcloud::tdid::V20210519::RegisterCptRequest`
298
- # @rtype: :class:`Tencentcloud::tdid::V20210519::RegisterCptResponse`
299
- def RegisterCpt(request)
300
- body = send_request('RegisterCpt', request.serialize)
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 = RegisterCptResponse.new
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 SetCredentialStatus.
323
- # @type request: :class:`Tencentcloud::tdid::V20210519::SetCredentialStatusRequest`
324
- # @rtype: :class:`Tencentcloud::tdid::V20210519::SetCredentialStatusResponse`
325
- def SetCredentialStatus(request)
326
- body = send_request('SetCredentialStatus', request.serialize)
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 = SetCredentialStatusResponse.new
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 VerifyCredential.
349
- # @type request: :class:`Tencentcloud::tdid::V20210519::VerifyCredentialRequest`
350
- # @rtype: :class:`Tencentcloud::tdid::V20210519::VerifyCredentialResponse`
351
- def VerifyCredential(request)
352
- body = send_request('VerifyCredential', request.serialize)
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 = VerifyCredentialResponse.new
449
+ model = VerifyPresentationResponse.new
356
450
  model.deserialize(response['Response'])
357
451
  model
358
452
  else