tencentcloud-sdk-tdid 3.0.745 → 3.0.747
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 +62 -184
- data/lib/v20210519/models.rb +256 -508
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06849d25b919c12c4f123ef284c29797c1ca9573
|
4
|
+
data.tar.gz: 876256e6afbc8fa59a9e8745b7367bf0b5c18d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995df29fdbf56fb33a2e3a1bca34880451560c044199a62b0e00bcd8d71b6dc0674c92afaf2b86db68990b1680ad5a4624bd7eccf67c32504f5e9baa6fbcd29d
|
7
|
+
data.tar.gz: 88ed203e216a484e5df4765b34e5f86f4b15e3eda6cfece647031f49faf03f5f19935554a8b30c1ab2c3f4d207c214dbd984a26db0ff9f55a6901461659888ff
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.747
|
data/lib/v20210519/client.rb
CHANGED
@@ -29,18 +29,16 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
#
|
32
|
+
# 检查用户套餐购买状态
|
33
33
|
|
34
|
-
#
|
35
|
-
|
36
|
-
# @
|
37
|
-
|
38
|
-
|
39
|
-
def CheckChain(request)
|
40
|
-
body = send_request('CheckChain', request.serialize)
|
34
|
+
# @param request: Request instance for 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 =
|
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
|
63
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
64
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
65
|
-
def
|
66
|
-
body = send_request('
|
58
|
+
# @param request: Request instance for 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 =
|
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
|
89
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
90
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
91
|
-
def
|
92
|
-
body = send_request('
|
82
|
+
# @param request: Request instance for 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 =
|
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
|
-
#
|
113
|
-
|
114
|
-
# @
|
115
|
-
|
116
|
-
|
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 =
|
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
|
245
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
246
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
247
|
-
def
|
248
|
-
body = send_request('
|
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 =
|
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
|
271
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
272
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
273
|
-
def
|
274
|
-
body = send_request('
|
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 =
|
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
|
297
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
298
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
299
|
-
def
|
300
|
-
body = send_request('
|
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 =
|
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
|
-
# @
|
323
|
-
|
324
|
-
|
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 =
|
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
|
349
|
-
# @type request: :class:`Tencentcloud::tdid::V20210519::
|
350
|
-
# @rtype: :class:`Tencentcloud::tdid::V20210519::
|
351
|
-
def
|
352
|
-
body = send_request('
|
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 =
|
233
|
+
model = VerifyCredentialsResponse.new
|
356
234
|
model.deserialize(response['Response'])
|
357
235
|
model
|
358
236
|
else
|