tencentcloud-sdk-mqtt 3.0.909 → 3.0.911

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: 2798494f61b2a9c431e0e6b9b853c0125b9d0a7d
4
- data.tar.gz: 56bc9f2ec7c699dfd2386dc7d2d6a96fe99a8560
3
+ metadata.gz: 0dbc06006eace2a209a05e2d8f5f76a41526c970
4
+ data.tar.gz: 49545ce79d96ac1a0a2826c4fe19773a9cbe2d27
5
5
  SHA512:
6
- metadata.gz: 225e635a4d0238318a33b7bd93f9dcdf0ffab04025056ad1875dd5f438ed1adf6d840219e9e229ec52a624a44c11f41f17617b520f2aa9529799a39e761254be
7
- data.tar.gz: b95cbb2d26de8e32ee585024a0b28dce2c5ae7cf7ddc69af7665fb1c0c5baf3fde30e1d55516c01e13d17b384a6e8488686417a6255da15cea69e5752005870a
6
+ metadata.gz: b9cbf37962a8b42bfd7d2fe33e8df0dbdb96f4c1a1d338b9485fcba0b686f6343dc6814e23c5b2903cac5080918b46b2d9abe3ea094a5b6f2c35aaeb838ee48e
7
+ data.tar.gz: d04197c09c927580dedaea0a45d63ac09431c85d640d7435dac8fb0a032489e573469eef52d976971f6adb2e3175f4b3b5baa16e5c72ac1f42167e6d6014aa12
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.909
1
+ 3.0.911
@@ -29,6 +29,222 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建MQTT实例的性能测试任务
33
+
34
+ # @param request: Request instance for CreateAuthorizationPolicy.
35
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::CreateAuthorizationPolicyRequest`
36
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::CreateAuthorizationPolicyResponse`
37
+ def CreateAuthorizationPolicy(request)
38
+ body = send_request('CreateAuthorizationPolicy', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateAuthorizationPolicyResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 创建一个jwks的认证
57
+
58
+ # @param request: Request instance for CreateJWKSAuthenticator.
59
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::CreateJWKSAuthenticatorRequest`
60
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::CreateJWKSAuthenticatorResponse`
61
+ def CreateJWKSAuthenticator(request)
62
+ body = send_request('CreateJWKSAuthenticator', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateJWKSAuthenticatorResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 创建一个jwks的认证
81
+
82
+ # @param request: Request instance for CreateJWTAuthenticator.
83
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::CreateJWTAuthenticatorRequest`
84
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::CreateJWTAuthenticatorResponse`
85
+ def CreateJWTAuthenticator(request)
86
+ body = send_request('CreateJWTAuthenticator', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateJWTAuthenticatorResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 创建主题
105
+
106
+ # @param request: Request instance for CreateTopic.
107
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::CreateTopicRequest`
108
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::CreateTopicResponse`
109
+ def CreateTopic(request)
110
+ body = send_request('CreateTopic', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateTopicResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 根据认证器类型删除一个MQTT认证器
129
+
130
+ # @param request: Request instance for DeleteAuthenticator.
131
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteAuthenticatorRequest`
132
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteAuthenticatorResponse`
133
+ def DeleteAuthenticator(request)
134
+ body = send_request('DeleteAuthenticator', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DeleteAuthenticatorResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 删除策略规则
153
+
154
+ # @param request: Request instance for DeleteAuthorizationPolicy.
155
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteAuthorizationPolicyRequest`
156
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteAuthorizationPolicyResponse`
157
+ def DeleteAuthorizationPolicy(request)
158
+ body = send_request('DeleteAuthorizationPolicy', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DeleteAuthorizationPolicyResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 删除MQTT主题
177
+
178
+ # @param request: Request instance for DeleteTopic.
179
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteTopicRequest`
180
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteTopicResponse`
181
+ def DeleteTopic(request)
182
+ body = send_request('DeleteTopic', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DeleteTopicResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 查询MQTT认证器
201
+
202
+ # @param request: Request instance for DescribeAuthenticator.
203
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeAuthenticatorRequest`
204
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeAuthenticatorResponse`
205
+ def DescribeAuthenticator(request)
206
+ body = send_request('DescribeAuthenticator', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeAuthenticatorResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 查询授权规则
225
+
226
+ # @param request: Request instance for DescribeAuthorizationPolicies.
227
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeAuthorizationPoliciesRequest`
228
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeAuthorizationPoliciesResponse`
229
+ def DescribeAuthorizationPolicies(request)
230
+ body = send_request('DescribeAuthorizationPolicies', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DescribeAuthorizationPoliciesResponse.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
+
32
248
  # 查询实例信息
33
249
 
34
250
  # @param request: Request instance for DescribeInstance.
@@ -83,6 +299,201 @@ module TencentCloud
83
299
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
84
300
  end
85
301
 
302
+ # 查询mqtt主题详情
303
+
304
+ # @param request: Request instance for DescribeTopic.
305
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeTopicRequest`
306
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeTopicResponse`
307
+ def DescribeTopic(request)
308
+ body = send_request('DescribeTopic', request.serialize)
309
+ response = JSON.parse(body)
310
+ if response['Response'].key?('Error') == false
311
+ model = DescribeTopicResponse.new
312
+ model.deserialize(response['Response'])
313
+ model
314
+ else
315
+ code = response['Response']['Error']['Code']
316
+ message = response['Response']['Error']['Message']
317
+ reqid = response['Response']['RequestId']
318
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
319
+ end
320
+ rescue TencentCloud::Common::TencentCloudSDKException => e
321
+ raise e
322
+ rescue StandardError => e
323
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
324
+ end
325
+
326
+ # 获取主题列表,Filter参数使用说明如下:
327
+
328
+ # 1. TopicName,主题名称模糊搜索
329
+ # 2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
330
+
331
+ # @param request: Request instance for DescribeTopicList.
332
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeTopicListRequest`
333
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeTopicListResponse`
334
+ def DescribeTopicList(request)
335
+ body = send_request('DescribeTopicList', request.serialize)
336
+ response = JSON.parse(body)
337
+ if response['Response'].key?('Error') == false
338
+ model = DescribeTopicListResponse.new
339
+ model.deserialize(response['Response'])
340
+ model
341
+ else
342
+ code = response['Response']['Error']['Code']
343
+ message = response['Response']['Error']['Message']
344
+ reqid = response['Response']['RequestId']
345
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
346
+ end
347
+ rescue TencentCloud::Common::TencentCloudSDKException => e
348
+ raise e
349
+ rescue StandardError => e
350
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
351
+ end
352
+
353
+ # 修改策略规则
354
+
355
+ # @param request: Request instance for ModifyAuthorizationPolicy.
356
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::ModifyAuthorizationPolicyRequest`
357
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::ModifyAuthorizationPolicyResponse`
358
+ def ModifyAuthorizationPolicy(request)
359
+ body = send_request('ModifyAuthorizationPolicy', request.serialize)
360
+ response = JSON.parse(body)
361
+ if response['Response'].key?('Error') == false
362
+ model = ModifyAuthorizationPolicyResponse.new
363
+ model.deserialize(response['Response'])
364
+ model
365
+ else
366
+ code = response['Response']['Error']['Code']
367
+ message = response['Response']['Error']['Message']
368
+ reqid = response['Response']['RequestId']
369
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
370
+ end
371
+ rescue TencentCloud::Common::TencentCloudSDKException => e
372
+ raise e
373
+ rescue StandardError => e
374
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
375
+ end
376
+
377
+ # 修改MQTT JWKS 认证器
378
+
379
+ # @param request: Request instance for ModifyJWKSAuthenticator.
380
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::ModifyJWKSAuthenticatorRequest`
381
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::ModifyJWKSAuthenticatorResponse`
382
+ def ModifyJWKSAuthenticator(request)
383
+ body = send_request('ModifyJWKSAuthenticator', request.serialize)
384
+ response = JSON.parse(body)
385
+ if response['Response'].key?('Error') == false
386
+ model = ModifyJWKSAuthenticatorResponse.new
387
+ model.deserialize(response['Response'])
388
+ model
389
+ else
390
+ code = response['Response']['Error']['Code']
391
+ message = response['Response']['Error']['Message']
392
+ reqid = response['Response']['RequestId']
393
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
394
+ end
395
+ rescue TencentCloud::Common::TencentCloudSDKException => e
396
+ raise e
397
+ rescue StandardError => e
398
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
399
+ end
400
+
401
+ # 修改MQTT JWKS 认证器
402
+
403
+ # @param request: Request instance for ModifyJWTAuthenticator.
404
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::ModifyJWTAuthenticatorRequest`
405
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::ModifyJWTAuthenticatorResponse`
406
+ def ModifyJWTAuthenticator(request)
407
+ body = send_request('ModifyJWTAuthenticator', request.serialize)
408
+ response = JSON.parse(body)
409
+ if response['Response'].key?('Error') == false
410
+ model = ModifyJWTAuthenticatorResponse.new
411
+ model.deserialize(response['Response'])
412
+ model
413
+ else
414
+ code = response['Response']['Error']['Code']
415
+ message = response['Response']['Error']['Message']
416
+ reqid = response['Response']['RequestId']
417
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
418
+ end
419
+ rescue TencentCloud::Common::TencentCloudSDKException => e
420
+ raise e
421
+ rescue StandardError => e
422
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
423
+ end
424
+
425
+ # 修改主题属性
426
+
427
+ # @param request: Request instance for ModifyTopic.
428
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::ModifyTopicRequest`
429
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::ModifyTopicResponse`
430
+ def ModifyTopic(request)
431
+ body = send_request('ModifyTopic', request.serialize)
432
+ response = JSON.parse(body)
433
+ if response['Response'].key?('Error') == false
434
+ model = ModifyTopicResponse.new
435
+ model.deserialize(response['Response'])
436
+ model
437
+ else
438
+ code = response['Response']['Error']['Code']
439
+ message = response['Response']['Error']['Message']
440
+ reqid = response['Response']['RequestId']
441
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
442
+ end
443
+ rescue TencentCloud::Common::TencentCloudSDKException => e
444
+ raise e
445
+ rescue StandardError => e
446
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
447
+ end
448
+
449
+ # 注册设备证书
450
+
451
+ # @param request: Request instance for RegisterDeviceCertificate.
452
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::RegisterDeviceCertificateRequest`
453
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::RegisterDeviceCertificateResponse`
454
+ def RegisterDeviceCertificate(request)
455
+ body = send_request('RegisterDeviceCertificate', request.serialize)
456
+ response = JSON.parse(body)
457
+ if response['Response'].key?('Error') == false
458
+ model = RegisterDeviceCertificateResponse.new
459
+ model.deserialize(response['Response'])
460
+ model
461
+ else
462
+ code = response['Response']['Error']['Code']
463
+ message = response['Response']['Error']['Message']
464
+ reqid = response['Response']['RequestId']
465
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
466
+ end
467
+ rescue TencentCloud::Common::TencentCloudSDKException => e
468
+ raise e
469
+ rescue StandardError => e
470
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
471
+ end
472
+
473
+ # 修改策略规则优先级
474
+
475
+ # @param request: Request instance for UpdateAuthorizationPolicyPriority.
476
+ # @type request: :class:`Tencentcloud::mqtt::V20240516::UpdateAuthorizationPolicyPriorityRequest`
477
+ # @rtype: :class:`Tencentcloud::mqtt::V20240516::UpdateAuthorizationPolicyPriorityResponse`
478
+ def UpdateAuthorizationPolicyPriority(request)
479
+ body = send_request('UpdateAuthorizationPolicyPriority', request.serialize)
480
+ response = JSON.parse(body)
481
+ if response['Response'].key?('Error') == false
482
+ model = UpdateAuthorizationPolicyPriorityResponse.new
483
+ model.deserialize(response['Response'])
484
+ model
485
+ else
486
+ code = response['Response']['Error']['Code']
487
+ message = response['Response']['Error']['Message']
488
+ reqid = response['Response']['RequestId']
489
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
490
+ end
491
+ rescue TencentCloud::Common::TencentCloudSDKException => e
492
+ raise e
493
+ rescue StandardError => e
494
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
495
+ end
496
+
86
497
 
87
498
  end
88
499
  end