tencentcloud-sdk-tdid 3.0.746 → 3.0.747

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04bc42a16b39689765cd61e53e2d427b101e4966
4
- data.tar.gz: 1dc9c415f271df301e84459776fdc75a6edb899f
3
+ metadata.gz: 06849d25b919c12c4f123ef284c29797c1ca9573
4
+ data.tar.gz: 876256e6afbc8fa59a9e8745b7367bf0b5c18d71
5
5
  SHA512:
6
- metadata.gz: 9bdefc661b21540e67b64bf7c80e66c698c9d85297622625e5d6115e273dd477d2e8cece003ba99101a840993f0add2f2dd7fb145bdc7c4aa13e4b90b8cbabfd
7
- data.tar.gz: 5584227e6993be4d2ccd14069f36a241b7a0bf14df235325eff2e32e0d55d767088cded396c38b7bc0e0d582c804a5b4567629d256956740827d4f4c653dca90
6
+ metadata.gz: 995df29fdbf56fb33a2e3a1bca34880451560c044199a62b0e00bcd8d71b6dc0674c92afaf2b86db68990b1680ad5a4624bd7eccf67c32504f5e9baa6fbcd29d
7
+ data.tar.gz: 88ed203e216a484e5df4765b34e5f86f4b15e3eda6cfece647031f49faf03f5f19935554a8b30c1ab2c3f4d207c214dbd984a26db0ff9f55a6901461659888ff
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.746
1
+ 3.0.747
@@ -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 CheckNewPurchase.
35
+ # @type request: :class:`Tencentcloud::tdid::V20210519::CheckNewPurchaseRequest`
36
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::CheckNewPurchaseResponse`
37
+ def CheckNewPurchase(request)
38
+ body = send_request('CheckNewPurchase', request.serialize)
41
39
  response = JSON.parse(body)
42
40
  if response['Response'].key?('Error') == false
43
- model = CheckChainResponse.new
41
+ model = CheckNewPurchaseResponse.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
+ # 自动生成公私钥对托管在DID平台,并注册DID标识
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 CreateTDidByHost.
59
+ # @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidByHostRequest`
60
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidByHostResponse`
61
+ def CreateTDidByHost(request)
62
+ body = send_request('CreateTDidByHost', request.serialize)
67
63
  response = JSON.parse(body)
68
64
  if response['Response'].key?('Error') == false
69
- model = CreateCredentialResponse.new
65
+ model = CreateTDidByHostResponse.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标识
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 CreateTDidByPubKey.
83
+ # @type request: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPubKeyRequest`
84
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::CreateTDidByPubKeyResponse`
85
+ def CreateTDidByPubKey(request)
86
+ body = send_request('CreateTDidByPubKey', request.serialize)
93
87
  response = JSON.parse(body)
94
88
  if response['Response'].key?('Error') == false
95
- model = CreateSelectiveCredentialResponse.new
89
+ model = CreateTDidByPubKeyResponse.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 DeactivateTDid.
107
+ # @type request: :class:`Tencentcloud::tdid::V20210519::DeactivateTDidRequest`
108
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::DeactivateTDidResponse`
109
+ def DeactivateTDid(request)
110
+ body = send_request('DeactivateTDid', request.serialize)
119
111
  response = JSON.parse(body)
120
112
  if response['Response'].key?('Error') == false
121
- model = CreateTDidResponse.new
113
+ model = DeactivateTDidResponse.new
122
114
  model.deserialize(response['Response'])
123
115
  model
124
116
  else
@@ -133,122 +125,16 @@ module TencentCloud
133
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
134
126
  end
135
127
 
136
- # 该接口不再使用
137
-
138
- # 新建DID根据私钥生成Tdid
139
-
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)
145
- response = JSON.parse(body)
146
- if response['Response'].key?('Error') == false
147
- model = CreateTDidByPrivateKeyResponse.new
148
- model.deserialize(response['Response'])
149
- model
150
- else
151
- code = response['Response']['Error']['Code']
152
- message = response['Response']['Error']['Message']
153
- reqid = response['Response']['RequestId']
154
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
155
- end
156
- rescue TencentCloud::Common::TencentCloudSDKException => e
157
- raise e
158
- rescue StandardError => e
159
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
160
- end
161
-
162
- # 该接口不再使用
163
-
164
- # 新建DID根据公钥生成Tdid
165
-
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)
171
- response = JSON.parse(body)
172
- if response['Response'].key?('Error') == false
173
- model = CreateTDidByPublicKeyResponse.new
174
- model.deserialize(response['Response'])
175
- model
176
- else
177
- code = response['Response']['Error']['Code']
178
- message = response['Response']['Error']['Message']
179
- reqid = response['Response']['RequestId']
180
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
181
- end
182
- rescue TencentCloud::Common::TencentCloudSDKException => e
183
- raise e
184
- rescue StandardError => e
185
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
186
- end
187
-
188
- # 该接口不再使用
189
-
190
- # 获取权威机构信息
191
-
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)
197
- response = JSON.parse(body)
198
- if response['Response'].key?('Error') == false
199
- model = GetAuthorityIssuerResponse.new
200
- model.deserialize(response['Response'])
201
- model
202
- else
203
- code = response['Response']['Error']['Code']
204
- message = response['Response']['Error']['Message']
205
- reqid = response['Response']['RequestId']
206
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
207
- end
208
- rescue TencentCloud::Common::TencentCloudSDKException => e
209
- raise e
210
- rescue StandardError => e
211
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
212
- end
213
-
214
- # 该接口不再使用
215
-
216
- # 凭证模版详情
217
-
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)
223
- response = JSON.parse(body)
224
- if response['Response'].key?('Error') == false
225
- model = GetCptInfoResponse.new
226
- model.deserialize(response['Response'])
227
- model
228
- else
229
- code = response['Response']['Error']['Code']
230
- message = response['Response']['Error']['Message']
231
- reqid = response['Response']['RequestId']
232
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
233
- end
234
- rescue TencentCloud::Common::TencentCloudSDKException => e
235
- raise e
236
- rescue StandardError => e
237
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
238
- end
239
-
240
- # 该接口不再使用
241
-
242
128
  # 获取凭证链上状态信息
243
129
 
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)
130
+ # @param request: Request instance for GetCredentialState.
131
+ # @type request: :class:`Tencentcloud::tdid::V20210519::GetCredentialStateRequest`
132
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::GetCredentialStateResponse`
133
+ def GetCredentialState(request)
134
+ body = send_request('GetCredentialState', request.serialize)
249
135
  response = JSON.parse(body)
250
136
  if response['Response'].key?('Error') == false
251
- model = GetCredentialStatusResponse.new
137
+ model = GetCredentialStateResponse.new
252
138
  model.deserialize(response['Response'])
253
139
  model
254
140
  else
@@ -263,18 +149,16 @@ module TencentCloud
263
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
264
150
  end
265
151
 
266
- # 该接口不再使用
267
-
268
- # 查看DID文档
152
+ # 获取DID标识的文档
269
153
 
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)
154
+ # @param request: Request instance for GetTDidDocument.
155
+ # @type request: :class:`Tencentcloud::tdid::V20210519::GetTDidDocumentRequest`
156
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::GetTDidDocumentResponse`
157
+ def GetTDidDocument(request)
158
+ body = send_request('GetTDidDocument', request.serialize)
275
159
  response = JSON.parse(body)
276
160
  if response['Response'].key?('Error') == false
277
- model = GetDidDocumentResponse.new
161
+ model = GetTDidDocumentResponse.new
278
162
  model.deserialize(response['Response'])
279
163
  model
280
164
  else
@@ -289,18 +173,16 @@ module TencentCloud
289
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
290
174
  end
291
175
 
292
- # 该接口不再使用
293
-
294
- # 凭证模版新建
176
+ # 颁发可验证凭证
295
177
 
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)
178
+ # @param request: Request instance for IssueCredential.
179
+ # @type request: :class:`Tencentcloud::tdid::V20210519::IssueCredentialRequest`
180
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::IssueCredentialResponse`
181
+ def IssueCredential(request)
182
+ body = send_request('IssueCredential', request.serialize)
301
183
  response = JSON.parse(body)
302
184
  if response['Response'].key?('Error') == false
303
- model = RegisterCptResponse.new
185
+ model = IssueCredentialResponse.new
304
186
  model.deserialize(response['Response'])
305
187
  model
306
188
  else
@@ -315,18 +197,16 @@ module TencentCloud
315
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
316
198
  end
317
199
 
318
- # 该接口不再使用
200
+ # 更新凭证的链上状态
319
201
 
320
- # 设置凭证链上状态
321
-
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)
202
+ # @param request: Request instance for UpdateCredentialState.
203
+ # @type request: :class:`Tencentcloud::tdid::V20210519::UpdateCredentialStateRequest`
204
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::UpdateCredentialStateResponse`
205
+ def UpdateCredentialState(request)
206
+ body = send_request('UpdateCredentialState', request.serialize)
327
207
  response = JSON.parse(body)
328
208
  if response['Response'].key?('Error') == false
329
- model = SetCredentialStatusResponse.new
209
+ model = UpdateCredentialStateResponse.new
330
210
  model.deserialize(response['Response'])
331
211
  model
332
212
  else
@@ -341,18 +221,16 @@ module TencentCloud
341
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
222
  end
343
223
 
344
- # 该接口不再使用
345
-
346
- # 验证凭证
224
+ # 验证已签名的可验证凭证
347
225
 
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)
226
+ # @param request: Request instance for VerifyCredentials.
227
+ # @type request: :class:`Tencentcloud::tdid::V20210519::VerifyCredentialsRequest`
228
+ # @rtype: :class:`Tencentcloud::tdid::V20210519::VerifyCredentialsResponse`
229
+ def VerifyCredentials(request)
230
+ body = send_request('VerifyCredentials', request.serialize)
353
231
  response = JSON.parse(body)
354
232
  if response['Response'].key?('Error') == false
355
- model = VerifyCredentialResponse.new
233
+ model = VerifyCredentialsResponse.new
356
234
  model.deserialize(response['Response'])
357
235
  model
358
236
  else