tencentcloud-sdk-iotcloud 1.0.320 → 1.0.321

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: 1a131341d758aa126140852dd27c8fe8bcfe3fb9
4
- data.tar.gz: c3363b561198b4cb4dc57282d1914bcbac146e65
3
+ metadata.gz: 6c0aed1d2c7934d046da065ad068d8d88458ef5b
4
+ data.tar.gz: a0e9b7ba5df4e31c0ed4b588f6eecf99947eaf8d
5
5
  SHA512:
6
- metadata.gz: 6a3bb434e61bf0fbe9bddded3c1c841500ccfc7b0c9816e4dbbcf48a4a61b7779c5548d68c2dde99f489034a16854b814515f885acd045a9d56ede9fda51420e
7
- data.tar.gz: 40085cda05589d60f8946fc3a7abeaaad0dee5a09a62fca690840e57ac9da74ef0d2081680563e2b00b4bb0a71a878db85dec7c7acfa81c986a63c93be978eb9
6
+ metadata.gz: 6a32bf20e01562d5a7ac70167536e6193ed8e3045ad13993b4f5036534d65fb502067ab33a33e8397488b0245433b71ab347794ca1130ee55e9fe43a4fe52b0a
7
+ data.tar.gz: 904581c31cf8a3c17ad7e4a7ab5e157fe96e522829a3f5c83c496216b3f092f2ef8b3447fef42fc370dcb1471c86a3e7d8c0de97214c190144d1760bb6cd65df
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.320
1
+ 1.0.321
@@ -1277,6 +1277,30 @@ module TencentCloud
1277
1277
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
1278
  end
1279
1279
 
1280
+ # 本接口(ListTopicRules)用于分页获取规则列表
1281
+
1282
+ # @param request: Request instance for ListTopicRules.
1283
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::ListTopicRulesRequest`
1284
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::ListTopicRulesResponse`
1285
+ def ListTopicRules(request)
1286
+ body = send_request('ListTopicRules', request.serialize)
1287
+ response = JSON.parse(body)
1288
+ if response['Response'].key?('Error') == false
1289
+ model = ListTopicRulesResponse.new
1290
+ model.deserialize(response['Response'])
1291
+ model
1292
+ else
1293
+ code = response['Response']['Error']['Code']
1294
+ message = response['Response']['Error']['Message']
1295
+ reqid = response['Response']['RequestId']
1296
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1297
+ end
1298
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1299
+ raise e
1300
+ rescue StandardError => e
1301
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
+ end
1303
+
1280
1304
  # 发布广播消息
1281
1305
 
1282
1306
  # @param request: Request instance for PublishBroadcastMessage.
@@ -3350,6 +3350,57 @@ module TencentCloud
3350
3350
  end
3351
3351
  end
3352
3352
 
3353
+ # ListTopicRules请求参数结构体
3354
+ class ListTopicRulesRequest < TencentCloud::Common::AbstractModel
3355
+ # @param PageNum: 请求的页数
3356
+ # @type PageNum: Integer
3357
+ # @param PageSize: 分页的大小
3358
+ # @type PageSize: Integer
3359
+
3360
+ attr_accessor :PageNum, :PageSize
3361
+
3362
+ def initialize(pagenum=nil, pagesize=nil)
3363
+ @PageNum = pagenum
3364
+ @PageSize = pagesize
3365
+ end
3366
+
3367
+ def deserialize(params)
3368
+ @PageNum = params['PageNum']
3369
+ @PageSize = params['PageSize']
3370
+ end
3371
+ end
3372
+
3373
+ # ListTopicRules返回参数结构体
3374
+ class ListTopicRulesResponse < TencentCloud::Common::AbstractModel
3375
+ # @param TotalCnt: 规则总数量
3376
+ # @type TotalCnt: Integer
3377
+ # @param Rules: 规则列表
3378
+ # @type Rules: Array
3379
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3380
+ # @type RequestId: String
3381
+
3382
+ attr_accessor :TotalCnt, :Rules, :RequestId
3383
+
3384
+ def initialize(totalcnt=nil, rules=nil, requestid=nil)
3385
+ @TotalCnt = totalcnt
3386
+ @Rules = rules
3387
+ @RequestId = requestid
3388
+ end
3389
+
3390
+ def deserialize(params)
3391
+ @TotalCnt = params['TotalCnt']
3392
+ unless params['Rules'].nil?
3393
+ @Rules = []
3394
+ params['Rules'].each do |i|
3395
+ topicruleinfo_tmp = TopicRuleInfo.new
3396
+ topicruleinfo_tmp.deserialize(i)
3397
+ @Rules << topicruleinfo_tmp
3398
+ end
3399
+ end
3400
+ @RequestId = params['RequestId']
3401
+ end
3402
+ end
3403
+
3353
3404
  # 内容日志项
3354
3405
  class PayloadLogItem < TencentCloud::Common::AbstractModel
3355
3406
  # @param Uin: 账号id
@@ -4052,6 +4103,38 @@ module TencentCloud
4052
4103
  end
4053
4104
  end
4054
4105
 
4106
+ # 规则详细信息
4107
+ class TopicRuleInfo < TencentCloud::Common::AbstractModel
4108
+ # @param RuleName: 规则名称
4109
+ # @type RuleName: String
4110
+ # @param Description: 规则描述
4111
+ # @type Description: String
4112
+ # @param CreatedAt: 创建时间
4113
+ # @type CreatedAt: Integer
4114
+ # @param RuleDisabled: 不生效
4115
+ # @type RuleDisabled: Boolean
4116
+ # @param TopicPattern: 规则模式
4117
+ # @type TopicPattern: String
4118
+
4119
+ attr_accessor :RuleName, :Description, :CreatedAt, :RuleDisabled, :TopicPattern
4120
+
4121
+ def initialize(rulename=nil, description=nil, createdat=nil, ruledisabled=nil, topicpattern=nil)
4122
+ @RuleName = rulename
4123
+ @Description = description
4124
+ @CreatedAt = createdat
4125
+ @RuleDisabled = ruledisabled
4126
+ @TopicPattern = topicpattern
4127
+ end
4128
+
4129
+ def deserialize(params)
4130
+ @RuleName = params['RuleName']
4131
+ @Description = params['Description']
4132
+ @CreatedAt = params['CreatedAt']
4133
+ @RuleDisabled = params['RuleDisabled']
4134
+ @TopicPattern = params['TopicPattern']
4135
+ end
4136
+ end
4137
+
4055
4138
  # 创建规则请求包体
4056
4139
  class TopicRulePayload < TencentCloud::Common::AbstractModel
4057
4140
  # @param Sql: 规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-iotcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.320
4
+ version: 1.0.321
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-26 00:00:00.000000000 Z
11
+ date: 2022-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common