tencentcloud-sdk-iotvideo 1.0.350 → 1.0.351

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: d6d85f1eb29de4d5c91406e8a1f9505cb6d25f28
4
- data.tar.gz: 85f97b09af73164aaeb2f5430bb812b55e23e714
3
+ metadata.gz: 5b37cd405f7e057c1f768da122c19e0bf18b9989
4
+ data.tar.gz: 8b8b8b4ff90a0b9bb5eadb0cee531d412fa26e98
5
5
  SHA512:
6
- metadata.gz: e4a9a90177b1c4864077725d3f50e881548a6d947927d875665dd334680d4f1039057fef500f566a8a9a13c32de688a4ba2ad658bf3703717ae12acc47558525
7
- data.tar.gz: d0d040d277920187bd7f24817581f2cb6f0ae31c598c2baedce64b4a762d1c71e0100fe87718abec2c48a3df709f3a0180b9d069ed5b4e2699c02269ad39f80f
6
+ metadata.gz: 58ffcc9b302f6cf857fde83121a7bbdc31a4fa1641c4faec2d9ef732172672735ba6023c1ce527693e40dc6f4d4e50bde11f3f0d88c0a181cfdae98dba6a695c
7
+ data.tar.gz: 985580ce272dc30d8386066534a5277e600da80e306e17e7dd74d0d2fc7e26d210ff4f4c2e92004d6b09e9a87b0c7a679066cad42a298aca6878ae48a6f9c8c2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.350
1
+ 1.0.351
@@ -5,6 +5,9 @@ require 'tencentcloud-sdk-common'
5
5
  require_relative 'v20191126/client'
6
6
  require_relative 'v20191126/models'
7
7
 
8
+ require_relative 'v20211125/client'
9
+ require_relative 'v20211125/models'
10
+
8
11
  require_relative 'v20201215/client'
9
12
  require_relative 'v20201215/models'
10
13
 
@@ -0,0 +1,132 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Iotvideo
21
+ module V20211125
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-11-25'
26
+ api_endpoint = 'iotvideo.tencentcloudapi.com'
27
+ sdk_version = 'IOTVIDEO_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 异步调用设备行为
33
+
34
+ # @param request: Request instance for CallDeviceActionAsync.
35
+ # @type request: :class:`Tencentcloud::iotvideo::V20211125::CallDeviceActionAsyncRequest`
36
+ # @rtype: :class:`Tencentcloud::iotvideo::V20211125::CallDeviceActionAsyncResponse`
37
+ def CallDeviceActionAsync(request)
38
+ body = send_request('CallDeviceActionAsync', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CallDeviceActionAsyncResponse.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
+ # 同步调用设备行为
57
+
58
+ # @param request: Request instance for CallDeviceActionSync.
59
+ # @type request: :class:`Tencentcloud::iotvideo::V20211125::CallDeviceActionSyncRequest`
60
+ # @rtype: :class:`Tencentcloud::iotvideo::V20211125::CallDeviceActionSyncResponse`
61
+ def CallDeviceActionSync(request)
62
+ body = send_request('CallDeviceActionSync', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CallDeviceActionSyncResponse.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
+ # 查询设备数据统计
81
+
82
+ # @param request: Request instance for DescribeDeviceDataStats.
83
+ # @type request: :class:`Tencentcloud::iotvideo::V20211125::DescribeDeviceDataStatsRequest`
84
+ # @rtype: :class:`Tencentcloud::iotvideo::V20211125::DescribeDeviceDataStatsResponse`
85
+ def DescribeDeviceDataStats(request)
86
+ body = send_request('DescribeDeviceDataStats', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeDeviceDataStatsResponse.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 DescribeMessageDataStats.
107
+ # @type request: :class:`Tencentcloud::iotvideo::V20211125::DescribeMessageDataStatsRequest`
108
+ # @rtype: :class:`Tencentcloud::iotvideo::V20211125::DescribeMessageDataStatsResponse`
109
+ def DescribeMessageDataStats(request)
110
+ body = send_request('DescribeMessageDataStats', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeMessageDataStatsResponse.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
+
129
+ end
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,317 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Iotvideo
19
+ module V20211125
20
+ # CallDeviceActionAsync请求参数结构体
21
+ class CallDeviceActionAsyncRequest < TencentCloud::Common::AbstractModel
22
+ # @param ProductId: 产品Id
23
+ # @type ProductId: String
24
+ # @param DeviceName: 设备名称
25
+ # @type DeviceName: String
26
+ # @param ActionId: 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
27
+ # @type ActionId: String
28
+ # @param InputParams: 输入参数
29
+ # @type InputParams: String
30
+
31
+ attr_accessor :ProductId, :DeviceName, :ActionId, :InputParams
32
+
33
+ def initialize(productid=nil, devicename=nil, actionid=nil, inputparams=nil)
34
+ @ProductId = productid
35
+ @DeviceName = devicename
36
+ @ActionId = actionid
37
+ @InputParams = inputparams
38
+ end
39
+
40
+ def deserialize(params)
41
+ @ProductId = params['ProductId']
42
+ @DeviceName = params['DeviceName']
43
+ @ActionId = params['ActionId']
44
+ @InputParams = params['InputParams']
45
+ end
46
+ end
47
+
48
+ # CallDeviceActionAsync返回参数结构体
49
+ class CallDeviceActionAsyncResponse < TencentCloud::Common::AbstractModel
50
+ # @param ClientToken: 调用Id
51
+ # 注意:此字段可能返回 null,表示取不到有效值。
52
+ # @type ClientToken: String
53
+ # @param Status: 异步调用状态
54
+ # 注意:此字段可能返回 null,表示取不到有效值。
55
+ # @type Status: String
56
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
57
+ # @type RequestId: String
58
+
59
+ attr_accessor :ClientToken, :Status, :RequestId
60
+
61
+ def initialize(clienttoken=nil, status=nil, requestid=nil)
62
+ @ClientToken = clienttoken
63
+ @Status = status
64
+ @RequestId = requestid
65
+ end
66
+
67
+ def deserialize(params)
68
+ @ClientToken = params['ClientToken']
69
+ @Status = params['Status']
70
+ @RequestId = params['RequestId']
71
+ end
72
+ end
73
+
74
+ # CallDeviceActionSync请求参数结构体
75
+ class CallDeviceActionSyncRequest < TencentCloud::Common::AbstractModel
76
+ # @param ProductId: 产品Id
77
+ # @type ProductId: String
78
+ # @param DeviceName: 设备名称
79
+ # @type DeviceName: String
80
+ # @param ActionId: 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
81
+ # @type ActionId: String
82
+ # @param InputParams: 输入参数
83
+ # @type InputParams: String
84
+
85
+ attr_accessor :ProductId, :DeviceName, :ActionId, :InputParams
86
+
87
+ def initialize(productid=nil, devicename=nil, actionid=nil, inputparams=nil)
88
+ @ProductId = productid
89
+ @DeviceName = devicename
90
+ @ActionId = actionid
91
+ @InputParams = inputparams
92
+ end
93
+
94
+ def deserialize(params)
95
+ @ProductId = params['ProductId']
96
+ @DeviceName = params['DeviceName']
97
+ @ActionId = params['ActionId']
98
+ @InputParams = params['InputParams']
99
+ end
100
+ end
101
+
102
+ # CallDeviceActionSync返回参数结构体
103
+ class CallDeviceActionSyncResponse < TencentCloud::Common::AbstractModel
104
+ # @param ClientToken: 调用Id
105
+ # 注意:此字段可能返回 null,表示取不到有效值。
106
+ # @type ClientToken: String
107
+ # @param OutputParams: 输出参数
108
+ # 注意:此字段可能返回 null,表示取不到有效值。
109
+ # @type OutputParams: String
110
+ # @param Status: 返回状态,当设备不在线等部分情况,会通过该 Status 返回。
111
+ # 注意:此字段可能返回 null,表示取不到有效值。
112
+ # @type Status: String
113
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
114
+ # @type RequestId: String
115
+
116
+ attr_accessor :ClientToken, :OutputParams, :Status, :RequestId
117
+
118
+ def initialize(clienttoken=nil, outputparams=nil, status=nil, requestid=nil)
119
+ @ClientToken = clienttoken
120
+ @OutputParams = outputparams
121
+ @Status = status
122
+ @RequestId = requestid
123
+ end
124
+
125
+ def deserialize(params)
126
+ @ClientToken = params['ClientToken']
127
+ @OutputParams = params['OutputParams']
128
+ @Status = params['Status']
129
+ @RequestId = params['RequestId']
130
+ end
131
+ end
132
+
133
+ # DescribeDeviceDataStats请求参数结构体
134
+ class DescribeDeviceDataStatsRequest < TencentCloud::Common::AbstractModel
135
+ # @param StartDate: 开始日期
136
+ # @type StartDate: String
137
+ # @param EndDate: 结束日期
138
+ # @type EndDate: String
139
+ # @param ProductId: 产品id
140
+ # @type ProductId: String
141
+
142
+ attr_accessor :StartDate, :EndDate, :ProductId
143
+
144
+ def initialize(startdate=nil, enddate=nil, productid=nil)
145
+ @StartDate = startdate
146
+ @EndDate = enddate
147
+ @ProductId = productid
148
+ end
149
+
150
+ def deserialize(params)
151
+ @StartDate = params['StartDate']
152
+ @EndDate = params['EndDate']
153
+ @ProductId = params['ProductId']
154
+ end
155
+ end
156
+
157
+ # DescribeDeviceDataStats返回参数结构体
158
+ class DescribeDeviceDataStatsResponse < TencentCloud::Common::AbstractModel
159
+ # @param RegisterCnt: 累计注册设备数
160
+ # 注意:此字段可能返回 null,表示取不到有效值。
161
+ # @type RegisterCnt: Integer
162
+ # @param Data: 设备数量列表
163
+ # 注意:此字段可能返回 null,表示取不到有效值。
164
+ # @type Data: Array
165
+ # @param Total: 总数
166
+ # 注意:此字段可能返回 null,表示取不到有效值。
167
+ # @type Total: Integer
168
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
169
+ # @type RequestId: String
170
+
171
+ attr_accessor :RegisterCnt, :Data, :Total, :RequestId
172
+
173
+ def initialize(registercnt=nil, data=nil, total=nil, requestid=nil)
174
+ @RegisterCnt = registercnt
175
+ @Data = data
176
+ @Total = total
177
+ @RequestId = requestid
178
+ end
179
+
180
+ def deserialize(params)
181
+ @RegisterCnt = params['RegisterCnt']
182
+ unless params['Data'].nil?
183
+ @Data = []
184
+ params['Data'].each do |i|
185
+ devicecntstats_tmp = DeviceCntStats.new
186
+ devicecntstats_tmp.deserialize(i)
187
+ @Data << devicecntstats_tmp
188
+ end
189
+ end
190
+ @Total = params['Total']
191
+ @RequestId = params['RequestId']
192
+ end
193
+ end
194
+
195
+ # DescribeMessageDataStats请求参数结构体
196
+ class DescribeMessageDataStatsRequest < TencentCloud::Common::AbstractModel
197
+ # @param StartDate: 统计开始日期
198
+ # @type StartDate: String
199
+ # @param EndDate: 统计结束日期
200
+ # @type EndDate: String
201
+ # @param ProductId: 产品id
202
+ # @type ProductId: String
203
+
204
+ attr_accessor :StartDate, :EndDate, :ProductId
205
+
206
+ def initialize(startdate=nil, enddate=nil, productid=nil)
207
+ @StartDate = startdate
208
+ @EndDate = enddate
209
+ @ProductId = productid
210
+ end
211
+
212
+ def deserialize(params)
213
+ @StartDate = params['StartDate']
214
+ @EndDate = params['EndDate']
215
+ @ProductId = params['ProductId']
216
+ end
217
+ end
218
+
219
+ # DescribeMessageDataStats返回参数结构体
220
+ class DescribeMessageDataStatsResponse < TencentCloud::Common::AbstractModel
221
+ # @param Data: 消息数量列表
222
+ # 注意:此字段可能返回 null,表示取不到有效值。
223
+ # @type Data: Array
224
+ # @param Total: 总数
225
+ # 注意:此字段可能返回 null,表示取不到有效值。
226
+ # @type Total: Integer
227
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
228
+ # @type RequestId: String
229
+
230
+ attr_accessor :Data, :Total, :RequestId
231
+
232
+ def initialize(data=nil, total=nil, requestid=nil)
233
+ @Data = data
234
+ @Total = total
235
+ @RequestId = requestid
236
+ end
237
+
238
+ def deserialize(params)
239
+ unless params['Data'].nil?
240
+ @Data = []
241
+ params['Data'].each do |i|
242
+ messagecntstats_tmp = MessageCntStats.new
243
+ messagecntstats_tmp.deserialize(i)
244
+ @Data << messagecntstats_tmp
245
+ end
246
+ end
247
+ @Total = params['Total']
248
+ @RequestId = params['RequestId']
249
+ end
250
+ end
251
+
252
+ # 设备数量统计
253
+ class DeviceCntStats < TencentCloud::Common::AbstractModel
254
+ # @param Date: 统计日期
255
+ # @type Date: String
256
+ # @param NewRegisterCnt: 新增注册设备数
257
+ # 注意:此字段可能返回 null,表示取不到有效值。
258
+ # @type NewRegisterCnt: Integer
259
+ # @param NewActivateCnt: 新增激活设备数
260
+ # 注意:此字段可能返回 null,表示取不到有效值。
261
+ # @type NewActivateCnt: Integer
262
+ # @param ActiveCnt: 活跃设备数
263
+ # 注意:此字段可能返回 null,表示取不到有效值。
264
+ # @type ActiveCnt: Integer
265
+
266
+ attr_accessor :Date, :NewRegisterCnt, :NewActivateCnt, :ActiveCnt
267
+
268
+ def initialize(date=nil, newregistercnt=nil, newactivatecnt=nil, activecnt=nil)
269
+ @Date = date
270
+ @NewRegisterCnt = newregistercnt
271
+ @NewActivateCnt = newactivatecnt
272
+ @ActiveCnt = activecnt
273
+ end
274
+
275
+ def deserialize(params)
276
+ @Date = params['Date']
277
+ @NewRegisterCnt = params['NewRegisterCnt']
278
+ @NewActivateCnt = params['NewActivateCnt']
279
+ @ActiveCnt = params['ActiveCnt']
280
+ end
281
+ end
282
+
283
+ # 消息数量统计
284
+ class MessageCntStats < TencentCloud::Common::AbstractModel
285
+ # @param Date: 统计日期
286
+ # @type Date: String
287
+ # @param UpMsgCnt: 物模型上行消息数
288
+ # 注意:此字段可能返回 null,表示取不到有效值。
289
+ # @type UpMsgCnt: Integer
290
+ # @param DownMsgCnt: 物模型下行消息数
291
+ # 注意:此字段可能返回 null,表示取不到有效值。
292
+ # @type DownMsgCnt: Integer
293
+ # @param NtpMsgCnt: ntp消息数
294
+ # 注意:此字段可能返回 null,表示取不到有效值。
295
+ # @type NtpMsgCnt: Integer
296
+
297
+ attr_accessor :Date, :UpMsgCnt, :DownMsgCnt, :NtpMsgCnt
298
+
299
+ def initialize(date=nil, upmsgcnt=nil, downmsgcnt=nil, ntpmsgcnt=nil)
300
+ @Date = date
301
+ @UpMsgCnt = upmsgcnt
302
+ @DownMsgCnt = downmsgcnt
303
+ @NtpMsgCnt = ntpmsgcnt
304
+ end
305
+
306
+ def deserialize(params)
307
+ @Date = params['Date']
308
+ @UpMsgCnt = params['UpMsgCnt']
309
+ @DownMsgCnt = params['DownMsgCnt']
310
+ @NtpMsgCnt = params['NtpMsgCnt']
311
+ end
312
+ end
313
+
314
+ end
315
+ end
316
+ end
317
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-iotvideo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.350
4
+ version: 1.0.351
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-07-06 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -39,6 +39,8 @@ files:
39
39
  - lib/v20191126/models.rb
40
40
  - lib/v20201215/client.rb
41
41
  - lib/v20201215/models.rb
42
+ - lib/v20211125/client.rb
43
+ - lib/v20211125/models.rb
42
44
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
45
  licenses:
44
46
  - Apache-2.0