tencentcloud-sdk-iotvideoindustry 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-iotvideoindustry.rb +11 -0
- data/lib/v20201201/client.rb +952 -0
- data/lib/v20201201/models.rb +2524 -0
- metadata +66 -0
@@ -0,0 +1,952 @@
|
|
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 Iotvideoindustry
|
21
|
+
module V20201201
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2020-12-01'
|
26
|
+
api_endpoint = 'iotvideoindustry.tencentcloudapi.com'
|
27
|
+
sdk_version = 'IOTVIDEOINDUSTRY_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 本接口(BindGroupDevices) 用于绑定设备到分组。
|
33
|
+
|
34
|
+
# @param request: Request instance for BindGroupDevices.
|
35
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::BindGroupDevicesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::BindGroupDevicesResponse`
|
37
|
+
def BindGroupDevices(request)
|
38
|
+
body = send_request('BindGroupDevices', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = BindGroupDevicesResponse.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
|
+
# 本接口(ControlDevicePTZ) 用于对支持GB28181 PTZ信令的设备进行远程控制。
|
57
|
+
|
58
|
+
# @param request: Request instance for ControlDevicePTZ.
|
59
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ControlDevicePTZRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ControlDevicePTZResponse`
|
61
|
+
def ControlDevicePTZ(request)
|
62
|
+
body = send_request('ControlDevicePTZ', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = ControlDevicePTZResponse.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 ControlRecordStream.
|
83
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ControlRecordStreamRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ControlRecordStreamResponse`
|
85
|
+
def ControlRecordStream(request)
|
86
|
+
body = send_request('ControlRecordStream', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = ControlRecordStreamResponse.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
|
+
# 本接口(CreateDevice) 用于创建设备。
|
105
|
+
|
106
|
+
# @param request: Request instance for CreateDevice.
|
107
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateDeviceRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateDeviceResponse`
|
109
|
+
def CreateDevice(request)
|
110
|
+
body = send_request('CreateDevice', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CreateDeviceResponse.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
|
+
# 本接口(CreateDeviceGroup) 用于创建设备管理分组。
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateDeviceGroup.
|
131
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateDeviceGroupRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateDeviceGroupResponse`
|
133
|
+
def CreateDeviceGroup(request)
|
134
|
+
body = send_request('CreateDeviceGroup', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateDeviceGroupResponse.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
|
+
# 本接口(CreateRecordPlan) 用于创建录制计划,使设备与时间模板绑定,以便及时启动录制
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateRecordPlan.
|
155
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateRecordPlanRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateRecordPlanResponse`
|
157
|
+
def CreateRecordPlan(request)
|
158
|
+
body = send_request('CreateRecordPlan', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateRecordPlanResponse.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
|
+
# 本接口(CreateTimeTemplate) 用于根据模板描述的具体录制时间片段,创建定制化的时间模板。
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateTimeTemplate.
|
179
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateTimeTemplateRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::CreateTimeTemplateResponse`
|
181
|
+
def CreateTimeTemplate(request)
|
182
|
+
body = send_request('CreateTimeTemplate', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateTimeTemplateResponse.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
|
+
# 本接口(DeleteDevice)用于删除设备。
|
201
|
+
|
202
|
+
# @param request: Request instance for DeleteDevice.
|
203
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteDeviceRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteDeviceResponse`
|
205
|
+
def DeleteDevice(request)
|
206
|
+
body = send_request('DeleteDevice', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DeleteDeviceResponse.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
|
+
# 本接口(DeleteDeviceGroup)用于删除分组。
|
225
|
+
|
226
|
+
# @param request: Request instance for DeleteDeviceGroup.
|
227
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteDeviceGroupRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteDeviceGroupResponse`
|
229
|
+
def DeleteDeviceGroup(request)
|
230
|
+
body = send_request('DeleteDeviceGroup', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteDeviceGroupResponse.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
|
+
|
248
|
+
# 本接口(DeleteRecordPlan)用于删除录制计划
|
249
|
+
# 录制计划删除的同时,会停止该录制计划下的全部录制任务。
|
250
|
+
|
251
|
+
# @param request: Request instance for DeleteRecordPlan.
|
252
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteRecordPlanRequest`
|
253
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteRecordPlanResponse`
|
254
|
+
def DeleteRecordPlan(request)
|
255
|
+
body = send_request('DeleteRecordPlan', request.serialize)
|
256
|
+
response = JSON.parse(body)
|
257
|
+
if response['Response'].key?('Error') == false
|
258
|
+
model = DeleteRecordPlanResponse.new
|
259
|
+
model.deserialize(response['Response'])
|
260
|
+
model
|
261
|
+
else
|
262
|
+
code = response['Response']['Error']['Code']
|
263
|
+
message = response['Response']['Error']['Message']
|
264
|
+
reqid = response['Response']['RequestId']
|
265
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
266
|
+
end
|
267
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
268
|
+
raise e
|
269
|
+
rescue StandardError => e
|
270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
271
|
+
end
|
272
|
+
|
273
|
+
# 本接口(DeleteTimeTemplate) 用于删除时间模板。
|
274
|
+
|
275
|
+
# @param request: Request instance for DeleteTimeTemplate.
|
276
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteTimeTemplateRequest`
|
277
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DeleteTimeTemplateResponse`
|
278
|
+
def DeleteTimeTemplate(request)
|
279
|
+
body = send_request('DeleteTimeTemplate', request.serialize)
|
280
|
+
response = JSON.parse(body)
|
281
|
+
if response['Response'].key?('Error') == false
|
282
|
+
model = DeleteTimeTemplateResponse.new
|
283
|
+
model.deserialize(response['Response'])
|
284
|
+
model
|
285
|
+
else
|
286
|
+
code = response['Response']['Error']['Code']
|
287
|
+
message = response['Response']['Error']['Message']
|
288
|
+
reqid = response['Response']['RequestId']
|
289
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
290
|
+
end
|
291
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
292
|
+
raise e
|
293
|
+
rescue StandardError => e
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
295
|
+
end
|
296
|
+
|
297
|
+
# 本接口(DescribeAllDeviceList) 用于获取设备列表。
|
298
|
+
|
299
|
+
# @param request: Request instance for DescribeAllDeviceList.
|
300
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeAllDeviceListRequest`
|
301
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeAllDeviceListResponse`
|
302
|
+
def DescribeAllDeviceList(request)
|
303
|
+
body = send_request('DescribeAllDeviceList', request.serialize)
|
304
|
+
response = JSON.parse(body)
|
305
|
+
if response['Response'].key?('Error') == false
|
306
|
+
model = DescribeAllDeviceListResponse.new
|
307
|
+
model.deserialize(response['Response'])
|
308
|
+
model
|
309
|
+
else
|
310
|
+
code = response['Response']['Error']['Code']
|
311
|
+
message = response['Response']['Error']['Message']
|
312
|
+
reqid = response['Response']['RequestId']
|
313
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
314
|
+
end
|
315
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
316
|
+
raise e
|
317
|
+
rescue StandardError => e
|
318
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
319
|
+
end
|
320
|
+
|
321
|
+
# 本接口(DescribeDeviceGroup)用于根据设备ID查询设备所在分组信息,可批量查询。
|
322
|
+
|
323
|
+
# @param request: Request instance for DescribeDeviceGroup.
|
324
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeDeviceGroupRequest`
|
325
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeDeviceGroupResponse`
|
326
|
+
def DescribeDeviceGroup(request)
|
327
|
+
body = send_request('DescribeDeviceGroup', request.serialize)
|
328
|
+
response = JSON.parse(body)
|
329
|
+
if response['Response'].key?('Error') == false
|
330
|
+
model = DescribeDeviceGroupResponse.new
|
331
|
+
model.deserialize(response['Response'])
|
332
|
+
model
|
333
|
+
else
|
334
|
+
code = response['Response']['Error']['Code']
|
335
|
+
message = response['Response']['Error']['Message']
|
336
|
+
reqid = response['Response']['RequestId']
|
337
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
338
|
+
end
|
339
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
340
|
+
raise e
|
341
|
+
rescue StandardError => e
|
342
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
343
|
+
end
|
344
|
+
|
345
|
+
# 本接口(DescribeDevicePassWord)用于查询设备密码。
|
346
|
+
|
347
|
+
# @param request: Request instance for DescribeDevicePassWord.
|
348
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeDevicePassWordRequest`
|
349
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeDevicePassWordResponse`
|
350
|
+
def DescribeDevicePassWord(request)
|
351
|
+
body = send_request('DescribeDevicePassWord', request.serialize)
|
352
|
+
response = JSON.parse(body)
|
353
|
+
if response['Response'].key?('Error') == false
|
354
|
+
model = DescribeDevicePassWordResponse.new
|
355
|
+
model.deserialize(response['Response'])
|
356
|
+
model
|
357
|
+
else
|
358
|
+
code = response['Response']['Error']['Code']
|
359
|
+
message = response['Response']['Error']['Message']
|
360
|
+
reqid = response['Response']['RequestId']
|
361
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
362
|
+
end
|
363
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
364
|
+
raise e
|
365
|
+
rescue StandardError => e
|
366
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
367
|
+
end
|
368
|
+
|
369
|
+
# 本接口(DescribeDeviceStreams)用于获取设备实时流地址。
|
370
|
+
|
371
|
+
# @param request: Request instance for DescribeDeviceStreams.
|
372
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeDeviceStreamsRequest`
|
373
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeDeviceStreamsResponse`
|
374
|
+
def DescribeDeviceStreams(request)
|
375
|
+
body = send_request('DescribeDeviceStreams', request.serialize)
|
376
|
+
response = JSON.parse(body)
|
377
|
+
if response['Response'].key?('Error') == false
|
378
|
+
model = DescribeDeviceStreamsResponse.new
|
379
|
+
model.deserialize(response['Response'])
|
380
|
+
model
|
381
|
+
else
|
382
|
+
code = response['Response']['Error']['Code']
|
383
|
+
message = response['Response']['Error']['Message']
|
384
|
+
reqid = response['Response']['RequestId']
|
385
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
386
|
+
end
|
387
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
388
|
+
raise e
|
389
|
+
rescue StandardError => e
|
390
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
391
|
+
end
|
392
|
+
|
393
|
+
# 本接口(DescribeGroupById)用于根据分组ID查询分组。
|
394
|
+
|
395
|
+
# @param request: Request instance for DescribeGroupById.
|
396
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupByIdRequest`
|
397
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupByIdResponse`
|
398
|
+
def DescribeGroupById(request)
|
399
|
+
body = send_request('DescribeGroupById', request.serialize)
|
400
|
+
response = JSON.parse(body)
|
401
|
+
if response['Response'].key?('Error') == false
|
402
|
+
model = DescribeGroupByIdResponse.new
|
403
|
+
model.deserialize(response['Response'])
|
404
|
+
model
|
405
|
+
else
|
406
|
+
code = response['Response']['Error']['Code']
|
407
|
+
message = response['Response']['Error']['Message']
|
408
|
+
reqid = response['Response']['RequestId']
|
409
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
410
|
+
end
|
411
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
412
|
+
raise e
|
413
|
+
rescue StandardError => e
|
414
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
415
|
+
end
|
416
|
+
|
417
|
+
# 根据分组路径查询分组
|
418
|
+
|
419
|
+
# @param request: Request instance for DescribeGroupByPath.
|
420
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupByPathRequest`
|
421
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupByPathResponse`
|
422
|
+
def DescribeGroupByPath(request)
|
423
|
+
body = send_request('DescribeGroupByPath', request.serialize)
|
424
|
+
response = JSON.parse(body)
|
425
|
+
if response['Response'].key?('Error') == false
|
426
|
+
model = DescribeGroupByPathResponse.new
|
427
|
+
model.deserialize(response['Response'])
|
428
|
+
model
|
429
|
+
else
|
430
|
+
code = response['Response']['Error']['Code']
|
431
|
+
message = response['Response']['Error']['Message']
|
432
|
+
reqid = response['Response']['RequestId']
|
433
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
434
|
+
end
|
435
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
436
|
+
raise e
|
437
|
+
rescue StandardError => e
|
438
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
439
|
+
end
|
440
|
+
|
441
|
+
# 本接口(DescribeGroupDevices)用于查询分组下的设备列表。
|
442
|
+
|
443
|
+
# @param request: Request instance for DescribeGroupDevices.
|
444
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupDevicesRequest`
|
445
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupDevicesResponse`
|
446
|
+
def DescribeGroupDevices(request)
|
447
|
+
body = send_request('DescribeGroupDevices', request.serialize)
|
448
|
+
response = JSON.parse(body)
|
449
|
+
if response['Response'].key?('Error') == false
|
450
|
+
model = DescribeGroupDevicesResponse.new
|
451
|
+
model.deserialize(response['Response'])
|
452
|
+
model
|
453
|
+
else
|
454
|
+
code = response['Response']['Error']['Code']
|
455
|
+
message = response['Response']['Error']['Message']
|
456
|
+
reqid = response['Response']['RequestId']
|
457
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
458
|
+
end
|
459
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
460
|
+
raise e
|
461
|
+
rescue StandardError => e
|
462
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
463
|
+
end
|
464
|
+
|
465
|
+
# 本接口(DescribeGroups)用于批量查询分组信息。
|
466
|
+
|
467
|
+
# @param request: Request instance for DescribeGroups.
|
468
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupsRequest`
|
469
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeGroupsResponse`
|
470
|
+
def DescribeGroups(request)
|
471
|
+
body = send_request('DescribeGroups', request.serialize)
|
472
|
+
response = JSON.parse(body)
|
473
|
+
if response['Response'].key?('Error') == false
|
474
|
+
model = DescribeGroupsResponse.new
|
475
|
+
model.deserialize(response['Response'])
|
476
|
+
model
|
477
|
+
else
|
478
|
+
code = response['Response']['Error']['Code']
|
479
|
+
message = response['Response']['Error']['Message']
|
480
|
+
reqid = response['Response']['RequestId']
|
481
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
482
|
+
end
|
483
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
484
|
+
raise e
|
485
|
+
rescue StandardError => e
|
486
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
487
|
+
end
|
488
|
+
|
489
|
+
# 获取IPC设备下属通道
|
490
|
+
|
491
|
+
# @param request: Request instance for DescribeIPCChannels.
|
492
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeIPCChannelsRequest`
|
493
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeIPCChannelsResponse`
|
494
|
+
def DescribeIPCChannels(request)
|
495
|
+
body = send_request('DescribeIPCChannels', request.serialize)
|
496
|
+
response = JSON.parse(body)
|
497
|
+
if response['Response'].key?('Error') == false
|
498
|
+
model = DescribeIPCChannelsResponse.new
|
499
|
+
model.deserialize(response['Response'])
|
500
|
+
model
|
501
|
+
else
|
502
|
+
code = response['Response']['Error']['Code']
|
503
|
+
message = response['Response']['Error']['Message']
|
504
|
+
reqid = response['Response']['RequestId']
|
505
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
506
|
+
end
|
507
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
508
|
+
raise e
|
509
|
+
rescue StandardError => e
|
510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
511
|
+
end
|
512
|
+
|
513
|
+
# 获取回放视频流(NVR录制用)
|
514
|
+
# RecordId和StartTime/EndTime互斥
|
515
|
+
# 当存在RecordId时,StartTime和EndTime无效
|
516
|
+
# 当RecordId为空,StartTime和EndTime生效
|
517
|
+
|
518
|
+
# @param request: Request instance for DescribeRecordStream.
|
519
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeRecordStreamRequest`
|
520
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeRecordStreamResponse`
|
521
|
+
def DescribeRecordStream(request)
|
522
|
+
body = send_request('DescribeRecordStream', request.serialize)
|
523
|
+
response = JSON.parse(body)
|
524
|
+
if response['Response'].key?('Error') == false
|
525
|
+
model = DescribeRecordStreamResponse.new
|
526
|
+
model.deserialize(response['Response'])
|
527
|
+
model
|
528
|
+
else
|
529
|
+
code = response['Response']['Error']['Code']
|
530
|
+
message = response['Response']['Error']['Message']
|
531
|
+
reqid = response['Response']['RequestId']
|
532
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
533
|
+
end
|
534
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
535
|
+
raise e
|
536
|
+
rescue StandardError => e
|
537
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
538
|
+
end
|
539
|
+
|
540
|
+
# 本接口用于获取SIP服务器相关配置,用户可以通过这些配置项,将设备通过GB28181协议注册到本服务。
|
541
|
+
|
542
|
+
# @param request: Request instance for DescribeSIPServer.
|
543
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeSIPServerRequest`
|
544
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeSIPServerResponse`
|
545
|
+
def DescribeSIPServer(request)
|
546
|
+
body = send_request('DescribeSIPServer', request.serialize)
|
547
|
+
response = JSON.parse(body)
|
548
|
+
if response['Response'].key?('Error') == false
|
549
|
+
model = DescribeSIPServerResponse.new
|
550
|
+
model.deserialize(response['Response'])
|
551
|
+
model
|
552
|
+
else
|
553
|
+
code = response['Response']['Error']['Code']
|
554
|
+
message = response['Response']['Error']['Message']
|
555
|
+
reqid = response['Response']['RequestId']
|
556
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
557
|
+
end
|
558
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
559
|
+
raise e
|
560
|
+
rescue StandardError => e
|
561
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
562
|
+
end
|
563
|
+
|
564
|
+
# 本接口(DescribeStatisticDetails)用于查询指定统计项详情,返回结果按天为单位聚合,支持的最大时间查询范围为31天。
|
565
|
+
|
566
|
+
# @param request: Request instance for DescribeStatisticDetails.
|
567
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeStatisticDetailsRequest`
|
568
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeStatisticDetailsResponse`
|
569
|
+
def DescribeStatisticDetails(request)
|
570
|
+
body = send_request('DescribeStatisticDetails', request.serialize)
|
571
|
+
response = JSON.parse(body)
|
572
|
+
if response['Response'].key?('Error') == false
|
573
|
+
model = DescribeStatisticDetailsResponse.new
|
574
|
+
model.deserialize(response['Response'])
|
575
|
+
model
|
576
|
+
else
|
577
|
+
code = response['Response']['Error']['Code']
|
578
|
+
message = response['Response']['Error']['Message']
|
579
|
+
reqid = response['Response']['RequestId']
|
580
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
581
|
+
end
|
582
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
583
|
+
raise e
|
584
|
+
rescue StandardError => e
|
585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
586
|
+
end
|
587
|
+
|
588
|
+
# 本接口(DescribeStatisticSummary)用于查询用户昨日的概览数据。
|
589
|
+
|
590
|
+
# @param request: Request instance for DescribeStatisticSummary.
|
591
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeStatisticSummaryRequest`
|
592
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeStatisticSummaryResponse`
|
593
|
+
def DescribeStatisticSummary(request)
|
594
|
+
body = send_request('DescribeStatisticSummary', request.serialize)
|
595
|
+
response = JSON.parse(body)
|
596
|
+
if response['Response'].key?('Error') == false
|
597
|
+
model = DescribeStatisticSummaryResponse.new
|
598
|
+
model.deserialize(response['Response'])
|
599
|
+
model
|
600
|
+
else
|
601
|
+
code = response['Response']['Error']['Code']
|
602
|
+
message = response['Response']['Error']['Message']
|
603
|
+
reqid = response['Response']['RequestId']
|
604
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
605
|
+
end
|
606
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
607
|
+
raise e
|
608
|
+
rescue StandardError => e
|
609
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
610
|
+
end
|
611
|
+
|
612
|
+
# 本接口(DescribeSubGroups)用于查询分组下的子分组列表。
|
613
|
+
|
614
|
+
# @param request: Request instance for DescribeSubGroups.
|
615
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeSubGroupsRequest`
|
616
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeSubGroupsResponse`
|
617
|
+
def DescribeSubGroups(request)
|
618
|
+
body = send_request('DescribeSubGroups', request.serialize)
|
619
|
+
response = JSON.parse(body)
|
620
|
+
if response['Response'].key?('Error') == false
|
621
|
+
model = DescribeSubGroupsResponse.new
|
622
|
+
model.deserialize(response['Response'])
|
623
|
+
model
|
624
|
+
else
|
625
|
+
code = response['Response']['Error']['Code']
|
626
|
+
message = response['Response']['Error']['Message']
|
627
|
+
reqid = response['Response']['RequestId']
|
628
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
629
|
+
end
|
630
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
631
|
+
raise e
|
632
|
+
rescue StandardError => e
|
633
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
634
|
+
end
|
635
|
+
|
636
|
+
# 根据时间获取回放文件列表(云端录制用)
|
637
|
+
|
638
|
+
# @param request: Request instance for DescribeVideoList.
|
639
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeVideoListRequest`
|
640
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::DescribeVideoListResponse`
|
641
|
+
def DescribeVideoList(request)
|
642
|
+
body = send_request('DescribeVideoList', request.serialize)
|
643
|
+
response = JSON.parse(body)
|
644
|
+
if response['Response'].key?('Error') == false
|
645
|
+
model = DescribeVideoListResponse.new
|
646
|
+
model.deserialize(response['Response'])
|
647
|
+
model
|
648
|
+
else
|
649
|
+
code = response['Response']['Error']['Code']
|
650
|
+
message = response['Response']['Error']['Message']
|
651
|
+
reqid = response['Response']['RequestId']
|
652
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
653
|
+
end
|
654
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
655
|
+
raise e
|
656
|
+
rescue StandardError => e
|
657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
658
|
+
end
|
659
|
+
|
660
|
+
# 本接口(GetRecordDatesByDev)用于查询设备含有录像文件的日期列表。
|
661
|
+
|
662
|
+
# @param request: Request instance for GetRecordDatesByDev.
|
663
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordDatesByDevRequest`
|
664
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordDatesByDevResponse`
|
665
|
+
def GetRecordDatesByDev(request)
|
666
|
+
body = send_request('GetRecordDatesByDev', request.serialize)
|
667
|
+
response = JSON.parse(body)
|
668
|
+
if response['Response'].key?('Error') == false
|
669
|
+
model = GetRecordDatesByDevResponse.new
|
670
|
+
model.deserialize(response['Response'])
|
671
|
+
model
|
672
|
+
else
|
673
|
+
code = response['Response']['Error']['Code']
|
674
|
+
message = response['Response']['Error']['Message']
|
675
|
+
reqid = response['Response']['RequestId']
|
676
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
677
|
+
end
|
678
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
679
|
+
raise e
|
680
|
+
rescue StandardError => e
|
681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
682
|
+
end
|
683
|
+
|
684
|
+
# 本接口(GetRecordPlanByDev)用于根据设备ID查询其绑定的录制计划.
|
685
|
+
|
686
|
+
# @param request: Request instance for GetRecordPlanByDev.
|
687
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordPlanByDevRequest`
|
688
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordPlanByDevResponse`
|
689
|
+
def GetRecordPlanByDev(request)
|
690
|
+
body = send_request('GetRecordPlanByDev', request.serialize)
|
691
|
+
response = JSON.parse(body)
|
692
|
+
if response['Response'].key?('Error') == false
|
693
|
+
model = GetRecordPlanByDevResponse.new
|
694
|
+
model.deserialize(response['Response'])
|
695
|
+
model
|
696
|
+
else
|
697
|
+
code = response['Response']['Error']['Code']
|
698
|
+
message = response['Response']['Error']['Message']
|
699
|
+
reqid = response['Response']['RequestId']
|
700
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
701
|
+
end
|
702
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
703
|
+
raise e
|
704
|
+
rescue StandardError => e
|
705
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
706
|
+
end
|
707
|
+
|
708
|
+
# 本接口(GetRecordPlanById)用于根据录制计划ID获取录制计划。
|
709
|
+
|
710
|
+
# @param request: Request instance for GetRecordPlanById.
|
711
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordPlanByIdRequest`
|
712
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordPlanByIdResponse`
|
713
|
+
def GetRecordPlanById(request)
|
714
|
+
body = send_request('GetRecordPlanById', request.serialize)
|
715
|
+
response = JSON.parse(body)
|
716
|
+
if response['Response'].key?('Error') == false
|
717
|
+
model = GetRecordPlanByIdResponse.new
|
718
|
+
model.deserialize(response['Response'])
|
719
|
+
model
|
720
|
+
else
|
721
|
+
code = response['Response']['Error']['Code']
|
722
|
+
message = response['Response']['Error']['Message']
|
723
|
+
reqid = response['Response']['RequestId']
|
724
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
725
|
+
end
|
726
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
727
|
+
raise e
|
728
|
+
rescue StandardError => e
|
729
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
730
|
+
end
|
731
|
+
|
732
|
+
# 本接口(GetRecordPlans)用于获取用户的全部录制计划。
|
733
|
+
|
734
|
+
# @param request: Request instance for GetRecordPlans.
|
735
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordPlansRequest`
|
736
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetRecordPlansResponse`
|
737
|
+
def GetRecordPlans(request)
|
738
|
+
body = send_request('GetRecordPlans', request.serialize)
|
739
|
+
response = JSON.parse(body)
|
740
|
+
if response['Response'].key?('Error') == false
|
741
|
+
model = GetRecordPlansResponse.new
|
742
|
+
model.deserialize(response['Response'])
|
743
|
+
model
|
744
|
+
else
|
745
|
+
code = response['Response']['Error']['Code']
|
746
|
+
message = response['Response']['Error']['Message']
|
747
|
+
reqid = response['Response']['RequestId']
|
748
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
749
|
+
end
|
750
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
751
|
+
raise e
|
752
|
+
rescue StandardError => e
|
753
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
754
|
+
end
|
755
|
+
|
756
|
+
# 本接口(GetTimeTemplateById)用于根据模板ID获取时间模板详情。
|
757
|
+
|
758
|
+
# @param request: Request instance for GetTimeTemplateById.
|
759
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetTimeTemplateByIdRequest`
|
760
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetTimeTemplateByIdResponse`
|
761
|
+
def GetTimeTemplateById(request)
|
762
|
+
body = send_request('GetTimeTemplateById', request.serialize)
|
763
|
+
response = JSON.parse(body)
|
764
|
+
if response['Response'].key?('Error') == false
|
765
|
+
model = GetTimeTemplateByIdResponse.new
|
766
|
+
model.deserialize(response['Response'])
|
767
|
+
model
|
768
|
+
else
|
769
|
+
code = response['Response']['Error']['Code']
|
770
|
+
message = response['Response']['Error']['Message']
|
771
|
+
reqid = response['Response']['RequestId']
|
772
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
773
|
+
end
|
774
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
775
|
+
raise e
|
776
|
+
rescue StandardError => e
|
777
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
778
|
+
end
|
779
|
+
|
780
|
+
# 本接口(GetTimeTemplates)用于获取时间模板列表。
|
781
|
+
|
782
|
+
# @param request: Request instance for GetTimeTemplates.
|
783
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetTimeTemplatesRequest`
|
784
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetTimeTemplatesResponse`
|
785
|
+
def GetTimeTemplates(request)
|
786
|
+
body = send_request('GetTimeTemplates', request.serialize)
|
787
|
+
response = JSON.parse(body)
|
788
|
+
if response['Response'].key?('Error') == false
|
789
|
+
model = GetTimeTemplatesResponse.new
|
790
|
+
model.deserialize(response['Response'])
|
791
|
+
model
|
792
|
+
else
|
793
|
+
code = response['Response']['Error']['Code']
|
794
|
+
message = response['Response']['Error']['Message']
|
795
|
+
reqid = response['Response']['RequestId']
|
796
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
797
|
+
end
|
798
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
799
|
+
raise e
|
800
|
+
rescue StandardError => e
|
801
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
802
|
+
end
|
803
|
+
|
804
|
+
# 本接口(GetVideoListByCon)用于查询设备的录制文件列表
|
805
|
+
|
806
|
+
# @param request: Request instance for GetVideoListByCon.
|
807
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::GetVideoListByConRequest`
|
808
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::GetVideoListByConResponse`
|
809
|
+
def GetVideoListByCon(request)
|
810
|
+
body = send_request('GetVideoListByCon', request.serialize)
|
811
|
+
response = JSON.parse(body)
|
812
|
+
if response['Response'].key?('Error') == false
|
813
|
+
model = GetVideoListByConResponse.new
|
814
|
+
model.deserialize(response['Response'])
|
815
|
+
model
|
816
|
+
else
|
817
|
+
code = response['Response']['Error']['Code']
|
818
|
+
message = response['Response']['Error']['Message']
|
819
|
+
reqid = response['Response']['RequestId']
|
820
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
821
|
+
end
|
822
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
823
|
+
raise e
|
824
|
+
rescue StandardError => e
|
825
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
826
|
+
end
|
827
|
+
|
828
|
+
# 本接口(ModifyDeviceData)用于编辑设备信息。
|
829
|
+
|
830
|
+
# @param request: Request instance for ModifyDeviceData.
|
831
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyDeviceDataRequest`
|
832
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::ModifyDeviceDataResponse`
|
833
|
+
def ModifyDeviceData(request)
|
834
|
+
body = send_request('ModifyDeviceData', request.serialize)
|
835
|
+
response = JSON.parse(body)
|
836
|
+
if response['Response'].key?('Error') == false
|
837
|
+
model = ModifyDeviceDataResponse.new
|
838
|
+
model.deserialize(response['Response'])
|
839
|
+
model
|
840
|
+
else
|
841
|
+
code = response['Response']['Error']['Code']
|
842
|
+
message = response['Response']['Error']['Message']
|
843
|
+
reqid = response['Response']['RequestId']
|
844
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
845
|
+
end
|
846
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
847
|
+
raise e
|
848
|
+
rescue StandardError => e
|
849
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
850
|
+
end
|
851
|
+
|
852
|
+
# 本接口(UpdateDeviceGroup)用于修改分组信息。
|
853
|
+
|
854
|
+
# @param request: Request instance for UpdateDeviceGroup.
|
855
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateDeviceGroupRequest`
|
856
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateDeviceGroupResponse`
|
857
|
+
def UpdateDeviceGroup(request)
|
858
|
+
body = send_request('UpdateDeviceGroup', request.serialize)
|
859
|
+
response = JSON.parse(body)
|
860
|
+
if response['Response'].key?('Error') == false
|
861
|
+
model = UpdateDeviceGroupResponse.new
|
862
|
+
model.deserialize(response['Response'])
|
863
|
+
model
|
864
|
+
else
|
865
|
+
code = response['Response']['Error']['Code']
|
866
|
+
message = response['Response']['Error']['Message']
|
867
|
+
reqid = response['Response']['RequestId']
|
868
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
869
|
+
end
|
870
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
871
|
+
raise e
|
872
|
+
rescue StandardError => e
|
873
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
874
|
+
end
|
875
|
+
|
876
|
+
# 本接口(UpdateDevicePassWord)用于修改设备密码。
|
877
|
+
|
878
|
+
# @param request: Request instance for UpdateDevicePassWord.
|
879
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateDevicePassWordRequest`
|
880
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateDevicePassWordResponse`
|
881
|
+
def UpdateDevicePassWord(request)
|
882
|
+
body = send_request('UpdateDevicePassWord', request.serialize)
|
883
|
+
response = JSON.parse(body)
|
884
|
+
if response['Response'].key?('Error') == false
|
885
|
+
model = UpdateDevicePassWordResponse.new
|
886
|
+
model.deserialize(response['Response'])
|
887
|
+
model
|
888
|
+
else
|
889
|
+
code = response['Response']['Error']['Code']
|
890
|
+
message = response['Response']['Error']['Message']
|
891
|
+
reqid = response['Response']['RequestId']
|
892
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
893
|
+
end
|
894
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
895
|
+
raise e
|
896
|
+
rescue StandardError => e
|
897
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
898
|
+
end
|
899
|
+
|
900
|
+
# 本接口(UpdateRecordPlan)用于更新录制计划。
|
901
|
+
|
902
|
+
# @param request: Request instance for UpdateRecordPlan.
|
903
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateRecordPlanRequest`
|
904
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateRecordPlanResponse`
|
905
|
+
def UpdateRecordPlan(request)
|
906
|
+
body = send_request('UpdateRecordPlan', request.serialize)
|
907
|
+
response = JSON.parse(body)
|
908
|
+
if response['Response'].key?('Error') == false
|
909
|
+
model = UpdateRecordPlanResponse.new
|
910
|
+
model.deserialize(response['Response'])
|
911
|
+
model
|
912
|
+
else
|
913
|
+
code = response['Response']['Error']['Code']
|
914
|
+
message = response['Response']['Error']['Message']
|
915
|
+
reqid = response['Response']['RequestId']
|
916
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
917
|
+
end
|
918
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
919
|
+
raise e
|
920
|
+
rescue StandardError => e
|
921
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
922
|
+
end
|
923
|
+
|
924
|
+
# 本接口(UpdateTimeTemplate)用于更新时间模板。
|
925
|
+
|
926
|
+
# @param request: Request instance for UpdateTimeTemplate.
|
927
|
+
# @type request: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateTimeTemplateRequest`
|
928
|
+
# @rtype: :class:`Tencentcloud::iotvideoindustry::V20201201::UpdateTimeTemplateResponse`
|
929
|
+
def UpdateTimeTemplate(request)
|
930
|
+
body = send_request('UpdateTimeTemplate', request.serialize)
|
931
|
+
response = JSON.parse(body)
|
932
|
+
if response['Response'].key?('Error') == false
|
933
|
+
model = UpdateTimeTemplateResponse.new
|
934
|
+
model.deserialize(response['Response'])
|
935
|
+
model
|
936
|
+
else
|
937
|
+
code = response['Response']['Error']['Code']
|
938
|
+
message = response['Response']['Error']['Message']
|
939
|
+
reqid = response['Response']['RequestId']
|
940
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
941
|
+
end
|
942
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
943
|
+
raise e
|
944
|
+
rescue StandardError => e
|
945
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
946
|
+
end
|
947
|
+
|
948
|
+
|
949
|
+
end
|
950
|
+
end
|
951
|
+
end
|
952
|
+
end
|