tencentcloud-sdk-iotvideo 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-iotvideo.rb +14 -0
- data/lib/v20191126/client.rb +1648 -0
- data/lib/v20191126/models.rb +4075 -0
- data/lib/v20201215/client.rb +1884 -0
- data/lib/v20201215/models.rb +5022 -0
- metadata +68 -0
@@ -0,0 +1,1648 @@
|
|
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 V20191126
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-11-26'
|
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 ClearDeviceActiveCode.
|
35
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::ClearDeviceActiveCodeRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::ClearDeviceActiveCodeResponse`
|
37
|
+
def ClearDeviceActiveCode(request)
|
38
|
+
body = send_request('ClearDeviceActiveCode', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ClearDeviceActiveCodeResponse.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
|
+
# 创建匿名访问Token
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateAnonymousAccessToken.
|
59
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateAnonymousAccessTokenRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateAnonymousAccessTokenResponse`
|
61
|
+
def CreateAnonymousAccessToken(request)
|
62
|
+
body = send_request('CreateAnonymousAccessToken', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateAnonymousAccessTokenResponse.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
|
+
# 本接口(CreateAppUsr)用于接收由厂商云发送过来的注册请求,建立厂商云终端用户与IoT Video终端用户的映射关系。
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateAppUsr.
|
83
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateAppUsrRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateAppUsrResponse`
|
85
|
+
def CreateAppUsr(request)
|
86
|
+
body = send_request('CreateAppUsr', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateAppUsrResponse.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
|
+
# 本接口(CreateBinding)用于终端用户和设备进行绑定,具体的应用场景如下:
|
105
|
+
# 终端用户与设备具有“强关联”关系。用户与设备绑定之后,用户终端即具备了该设备的访问权限,访问或操作设备时,无需获取设备访问Token。
|
106
|
+
|
107
|
+
# @param request: Request instance for CreateBinding.
|
108
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateBindingRequest`
|
109
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateBindingResponse`
|
110
|
+
def CreateBinding(request)
|
111
|
+
body = send_request('CreateBinding', request.serialize)
|
112
|
+
response = JSON.parse(body)
|
113
|
+
if response['Response'].key?('Error') == false
|
114
|
+
model = CreateBindingResponse.new
|
115
|
+
model.deserialize(response['Response'])
|
116
|
+
model
|
117
|
+
else
|
118
|
+
code = response['Response']['Error']['Code']
|
119
|
+
message = response['Response']['Error']['Message']
|
120
|
+
reqid = response['Response']['RequestId']
|
121
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
122
|
+
end
|
123
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
124
|
+
raise e
|
125
|
+
rescue StandardError => e
|
126
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
127
|
+
end
|
128
|
+
|
129
|
+
# 本接口(CreateDevToken)用于以下场景:
|
130
|
+
# 终端用户与设备没有强绑定关联关系;
|
131
|
+
# 允许终端用户短时或一次性临时访问设备;
|
132
|
+
# 当终端用户与设备有强绑定关系时,可以不用调用此接口
|
133
|
+
|
134
|
+
# @param request: Request instance for CreateDevToken.
|
135
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateDevTokenRequest`
|
136
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateDevTokenResponse`
|
137
|
+
def CreateDevToken(request)
|
138
|
+
body = send_request('CreateDevToken', request.serialize)
|
139
|
+
response = JSON.parse(body)
|
140
|
+
if response['Response'].key?('Error') == false
|
141
|
+
model = CreateDevTokenResponse.new
|
142
|
+
model.deserialize(response['Response'])
|
143
|
+
model
|
144
|
+
else
|
145
|
+
code = response['Response']['Error']['Code']
|
146
|
+
message = response['Response']['Error']['Message']
|
147
|
+
reqid = response['Response']['RequestId']
|
148
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
149
|
+
end
|
150
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
151
|
+
raise e
|
152
|
+
rescue StandardError => e
|
153
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
154
|
+
end
|
155
|
+
|
156
|
+
# 本接口(CreateDevices)用于批量创建新的物联网视频通信设备。
|
157
|
+
# 注意:腾讯云不会对设备私钥进行保存,请自行保管好您的设备私钥。
|
158
|
+
|
159
|
+
# @param request: Request instance for CreateDevices.
|
160
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateDevicesRequest`
|
161
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateDevicesResponse`
|
162
|
+
def CreateDevices(request)
|
163
|
+
body = send_request('CreateDevices', request.serialize)
|
164
|
+
response = JSON.parse(body)
|
165
|
+
if response['Response'].key?('Error') == false
|
166
|
+
model = CreateDevicesResponse.new
|
167
|
+
model.deserialize(response['Response'])
|
168
|
+
model
|
169
|
+
else
|
170
|
+
code = response['Response']['Error']['Code']
|
171
|
+
message = response['Response']['Error']['Message']
|
172
|
+
reqid = response['Response']['RequestId']
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
174
|
+
end
|
175
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
176
|
+
raise e
|
177
|
+
rescue StandardError => e
|
178
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
179
|
+
end
|
180
|
+
|
181
|
+
# 本接口(CreateGencode)用于生成设备物模型源代码
|
182
|
+
|
183
|
+
# @param request: Request instance for CreateGencode.
|
184
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateGencodeRequest`
|
185
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateGencodeResponse`
|
186
|
+
def CreateGencode(request)
|
187
|
+
body = send_request('CreateGencode', request.serialize)
|
188
|
+
response = JSON.parse(body)
|
189
|
+
if response['Response'].key?('Error') == false
|
190
|
+
model = CreateGencodeResponse.new
|
191
|
+
model.deserialize(response['Response'])
|
192
|
+
model
|
193
|
+
else
|
194
|
+
code = response['Response']['Error']['Code']
|
195
|
+
message = response['Response']['Error']['Message']
|
196
|
+
reqid = response['Response']['RequestId']
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
198
|
+
end
|
199
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
200
|
+
raise e
|
201
|
+
rescue StandardError => e
|
202
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
203
|
+
end
|
204
|
+
|
205
|
+
# 本接口(CreateIotDataType)用于创建自定义物模型数据类型。
|
206
|
+
|
207
|
+
# @param request: Request instance for CreateIotDataType.
|
208
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateIotDataTypeRequest`
|
209
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateIotDataTypeResponse`
|
210
|
+
def CreateIotDataType(request)
|
211
|
+
body = send_request('CreateIotDataType', request.serialize)
|
212
|
+
response = JSON.parse(body)
|
213
|
+
if response['Response'].key?('Error') == false
|
214
|
+
model = CreateIotDataTypeResponse.new
|
215
|
+
model.deserialize(response['Response'])
|
216
|
+
model
|
217
|
+
else
|
218
|
+
code = response['Response']['Error']['Code']
|
219
|
+
message = response['Response']['Error']['Message']
|
220
|
+
reqid = response['Response']['RequestId']
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
222
|
+
end
|
223
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
224
|
+
raise e
|
225
|
+
rescue StandardError => e
|
226
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
227
|
+
end
|
228
|
+
|
229
|
+
# 本接口(CreateIotModel)用于定义的物模型提交。
|
230
|
+
# 该接口实现了物模型草稿箱的功能,保存用户最后一次编辑的物模型数据。
|
231
|
+
|
232
|
+
# @param request: Request instance for CreateIotModel.
|
233
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateIotModelRequest`
|
234
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateIotModelResponse`
|
235
|
+
def CreateIotModel(request)
|
236
|
+
body = send_request('CreateIotModel', request.serialize)
|
237
|
+
response = JSON.parse(body)
|
238
|
+
if response['Response'].key?('Error') == false
|
239
|
+
model = CreateIotModelResponse.new
|
240
|
+
model.deserialize(response['Response'])
|
241
|
+
model
|
242
|
+
else
|
243
|
+
code = response['Response']['Error']['Code']
|
244
|
+
message = response['Response']['Error']['Message']
|
245
|
+
reqid = response['Response']['RequestId']
|
246
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
247
|
+
end
|
248
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
249
|
+
raise e
|
250
|
+
rescue StandardError => e
|
251
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
252
|
+
end
|
253
|
+
|
254
|
+
# 本接口(CreateProduct)用于创建一个新的物联网智能视频产品。
|
255
|
+
|
256
|
+
# @param request: Request instance for CreateProduct.
|
257
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateProductRequest`
|
258
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateProductResponse`
|
259
|
+
def CreateProduct(request)
|
260
|
+
body = send_request('CreateProduct', request.serialize)
|
261
|
+
response = JSON.parse(body)
|
262
|
+
if response['Response'].key?('Error') == false
|
263
|
+
model = CreateProductResponse.new
|
264
|
+
model.deserialize(response['Response'])
|
265
|
+
model
|
266
|
+
else
|
267
|
+
code = response['Response']['Error']['Code']
|
268
|
+
message = response['Response']['Error']['Message']
|
269
|
+
reqid = response['Response']['RequestId']
|
270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
271
|
+
end
|
272
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
273
|
+
raise e
|
274
|
+
rescue StandardError => e
|
275
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
276
|
+
end
|
277
|
+
|
278
|
+
# 该接口已经停止维护,请勿使用
|
279
|
+
|
280
|
+
# @param request: Request instance for CreateStorage.
|
281
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateStorageRequest`
|
282
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateStorageResponse`
|
283
|
+
def CreateStorage(request)
|
284
|
+
body = send_request('CreateStorage', request.serialize)
|
285
|
+
response = JSON.parse(body)
|
286
|
+
if response['Response'].key?('Error') == false
|
287
|
+
model = CreateStorageResponse.new
|
288
|
+
model.deserialize(response['Response'])
|
289
|
+
model
|
290
|
+
else
|
291
|
+
code = response['Response']['Error']['Code']
|
292
|
+
message = response['Response']['Error']['Message']
|
293
|
+
reqid = response['Response']['RequestId']
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
295
|
+
end
|
296
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
297
|
+
raise e
|
298
|
+
rescue StandardError => e
|
299
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
300
|
+
end
|
301
|
+
|
302
|
+
# 购买云存服务
|
303
|
+
|
304
|
+
# @param request: Request instance for CreateStorageService.
|
305
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateStorageServiceRequest`
|
306
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateStorageServiceResponse`
|
307
|
+
def CreateStorageService(request)
|
308
|
+
body = send_request('CreateStorageService', request.serialize)
|
309
|
+
response = JSON.parse(body)
|
310
|
+
if response['Response'].key?('Error') == false
|
311
|
+
model = CreateStorageServiceResponse.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
|
+
# 本接口(CreateTraceIds)用于将设备加到日志跟踪白名单。
|
327
|
+
|
328
|
+
# @param request: Request instance for CreateTraceIds.
|
329
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateTraceIdsRequest`
|
330
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateTraceIdsResponse`
|
331
|
+
def CreateTraceIds(request)
|
332
|
+
body = send_request('CreateTraceIds', request.serialize)
|
333
|
+
response = JSON.parse(body)
|
334
|
+
if response['Response'].key?('Error') == false
|
335
|
+
model = CreateTraceIdsResponse.new
|
336
|
+
model.deserialize(response['Response'])
|
337
|
+
model
|
338
|
+
else
|
339
|
+
code = response['Response']['Error']['Code']
|
340
|
+
message = response['Response']['Error']['Message']
|
341
|
+
reqid = response['Response']['RequestId']
|
342
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
343
|
+
end
|
344
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
345
|
+
raise e
|
346
|
+
rescue StandardError => e
|
347
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
348
|
+
end
|
349
|
+
|
350
|
+
# 本接口(CreateUploadPath)用于获取固件上传路径。
|
351
|
+
|
352
|
+
# @param request: Request instance for CreateUploadPath.
|
353
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateUploadPathRequest`
|
354
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateUploadPathResponse`
|
355
|
+
def CreateUploadPath(request)
|
356
|
+
body = send_request('CreateUploadPath', request.serialize)
|
357
|
+
response = JSON.parse(body)
|
358
|
+
if response['Response'].key?('Error') == false
|
359
|
+
model = CreateUploadPathResponse.new
|
360
|
+
model.deserialize(response['Response'])
|
361
|
+
model
|
362
|
+
else
|
363
|
+
code = response['Response']['Error']['Code']
|
364
|
+
message = response['Response']['Error']['Message']
|
365
|
+
reqid = response['Response']['RequestId']
|
366
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
367
|
+
end
|
368
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
369
|
+
raise e
|
370
|
+
rescue StandardError => e
|
371
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
372
|
+
end
|
373
|
+
|
374
|
+
# 本接口(CreateUsrToken)用于终端用户获取IoT Video平台的accessToken,初始化SDK,连接到IoT Video接入服务器。
|
375
|
+
|
376
|
+
# @param request: Request instance for CreateUsrToken.
|
377
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateUsrTokenRequest`
|
378
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateUsrTokenResponse`
|
379
|
+
def CreateUsrToken(request)
|
380
|
+
body = send_request('CreateUsrToken', request.serialize)
|
381
|
+
response = JSON.parse(body)
|
382
|
+
if response['Response'].key?('Error') == false
|
383
|
+
model = CreateUsrTokenResponse.new
|
384
|
+
model.deserialize(response['Response'])
|
385
|
+
model
|
386
|
+
else
|
387
|
+
code = response['Response']['Error']['Code']
|
388
|
+
message = response['Response']['Error']['Message']
|
389
|
+
reqid = response['Response']['RequestId']
|
390
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
391
|
+
end
|
392
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
393
|
+
raise e
|
394
|
+
rescue StandardError => e
|
395
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
396
|
+
end
|
397
|
+
|
398
|
+
# 本接口(DeleteAppUsr)用于删除终端用户。
|
399
|
+
|
400
|
+
# @param request: Request instance for DeleteAppUsr.
|
401
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteAppUsrRequest`
|
402
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteAppUsrResponse`
|
403
|
+
def DeleteAppUsr(request)
|
404
|
+
body = send_request('DeleteAppUsr', request.serialize)
|
405
|
+
response = JSON.parse(body)
|
406
|
+
if response['Response'].key?('Error') == false
|
407
|
+
model = DeleteAppUsrResponse.new
|
408
|
+
model.deserialize(response['Response'])
|
409
|
+
model
|
410
|
+
else
|
411
|
+
code = response['Response']['Error']['Code']
|
412
|
+
message = response['Response']['Error']['Message']
|
413
|
+
reqid = response['Response']['RequestId']
|
414
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
415
|
+
end
|
416
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
417
|
+
raise e
|
418
|
+
rescue StandardError => e
|
419
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
420
|
+
end
|
421
|
+
|
422
|
+
# 本接口(DeleteBinding)用于终端用户和设备进行解绑定。
|
423
|
+
|
424
|
+
# @param request: Request instance for DeleteBinding.
|
425
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteBindingRequest`
|
426
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteBindingResponse`
|
427
|
+
def DeleteBinding(request)
|
428
|
+
body = send_request('DeleteBinding', request.serialize)
|
429
|
+
response = JSON.parse(body)
|
430
|
+
if response['Response'].key?('Error') == false
|
431
|
+
model = DeleteBindingResponse.new
|
432
|
+
model.deserialize(response['Response'])
|
433
|
+
model
|
434
|
+
else
|
435
|
+
code = response['Response']['Error']['Code']
|
436
|
+
message = response['Response']['Error']['Message']
|
437
|
+
reqid = response['Response']['RequestId']
|
438
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
439
|
+
end
|
440
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
441
|
+
raise e
|
442
|
+
rescue StandardError => e
|
443
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
444
|
+
end
|
445
|
+
|
446
|
+
# 本接口(DeleteDevice)用于删除设备,可进行批量操作,每次操作最多100台设备。
|
447
|
+
|
448
|
+
# @param request: Request instance for DeleteDevice.
|
449
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteDeviceRequest`
|
450
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteDeviceResponse`
|
451
|
+
def DeleteDevice(request)
|
452
|
+
body = send_request('DeleteDevice', request.serialize)
|
453
|
+
response = JSON.parse(body)
|
454
|
+
if response['Response'].key?('Error') == false
|
455
|
+
model = DeleteDeviceResponse.new
|
456
|
+
model.deserialize(response['Response'])
|
457
|
+
model
|
458
|
+
else
|
459
|
+
code = response['Response']['Error']['Code']
|
460
|
+
message = response['Response']['Error']['Message']
|
461
|
+
reqid = response['Response']['RequestId']
|
462
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
463
|
+
end
|
464
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
465
|
+
raise e
|
466
|
+
rescue StandardError => e
|
467
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
468
|
+
end
|
469
|
+
|
470
|
+
# 本接口(DeleteIotDataType)用于删除自定义物模型数据类型。
|
471
|
+
|
472
|
+
# @param request: Request instance for DeleteIotDataType.
|
473
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteIotDataTypeRequest`
|
474
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteIotDataTypeResponse`
|
475
|
+
def DeleteIotDataType(request)
|
476
|
+
body = send_request('DeleteIotDataType', request.serialize)
|
477
|
+
response = JSON.parse(body)
|
478
|
+
if response['Response'].key?('Error') == false
|
479
|
+
model = DeleteIotDataTypeResponse.new
|
480
|
+
model.deserialize(response['Response'])
|
481
|
+
model
|
482
|
+
else
|
483
|
+
code = response['Response']['Error']['Code']
|
484
|
+
message = response['Response']['Error']['Message']
|
485
|
+
reqid = response['Response']['RequestId']
|
486
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
487
|
+
end
|
488
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
489
|
+
raise e
|
490
|
+
rescue StandardError => e
|
491
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
492
|
+
end
|
493
|
+
|
494
|
+
# 本接口(DeleteMessageQueue)用于删除物联网智能视频产品的转发消息配置信息。
|
495
|
+
|
496
|
+
# @param request: Request instance for DeleteMessageQueue.
|
497
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteMessageQueueRequest`
|
498
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteMessageQueueResponse`
|
499
|
+
def DeleteMessageQueue(request)
|
500
|
+
body = send_request('DeleteMessageQueue', request.serialize)
|
501
|
+
response = JSON.parse(body)
|
502
|
+
if response['Response'].key?('Error') == false
|
503
|
+
model = DeleteMessageQueueResponse.new
|
504
|
+
model.deserialize(response['Response'])
|
505
|
+
model
|
506
|
+
else
|
507
|
+
code = response['Response']['Error']['Code']
|
508
|
+
message = response['Response']['Error']['Message']
|
509
|
+
reqid = response['Response']['RequestId']
|
510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
511
|
+
end
|
512
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
513
|
+
raise e
|
514
|
+
rescue StandardError => e
|
515
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
516
|
+
end
|
517
|
+
|
518
|
+
# 本接口(DeleteOtaVersion)用于删除固件版本信息。
|
519
|
+
|
520
|
+
# @param request: Request instance for DeleteOtaVersion.
|
521
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteOtaVersionRequest`
|
522
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteOtaVersionResponse`
|
523
|
+
def DeleteOtaVersion(request)
|
524
|
+
body = send_request('DeleteOtaVersion', request.serialize)
|
525
|
+
response = JSON.parse(body)
|
526
|
+
if response['Response'].key?('Error') == false
|
527
|
+
model = DeleteOtaVersionResponse.new
|
528
|
+
model.deserialize(response['Response'])
|
529
|
+
model
|
530
|
+
else
|
531
|
+
code = response['Response']['Error']['Code']
|
532
|
+
message = response['Response']['Error']['Message']
|
533
|
+
reqid = response['Response']['RequestId']
|
534
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
535
|
+
end
|
536
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
537
|
+
raise e
|
538
|
+
rescue StandardError => e
|
539
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
540
|
+
end
|
541
|
+
|
542
|
+
# 本接口(DeleteProduct)用于删除一个物联网智能视频产品。
|
543
|
+
|
544
|
+
# @param request: Request instance for DeleteProduct.
|
545
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteProductRequest`
|
546
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteProductResponse`
|
547
|
+
def DeleteProduct(request)
|
548
|
+
body = send_request('DeleteProduct', request.serialize)
|
549
|
+
response = JSON.parse(body)
|
550
|
+
if response['Response'].key?('Error') == false
|
551
|
+
model = DeleteProductResponse.new
|
552
|
+
model.deserialize(response['Response'])
|
553
|
+
model
|
554
|
+
else
|
555
|
+
code = response['Response']['Error']['Code']
|
556
|
+
message = response['Response']['Error']['Message']
|
557
|
+
reqid = response['Response']['RequestId']
|
558
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
559
|
+
end
|
560
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
561
|
+
raise e
|
562
|
+
rescue StandardError => e
|
563
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
564
|
+
end
|
565
|
+
|
566
|
+
# 本接口(DeleteTraceIds)用于将设备从日志跟踪白名单中删除,该接口可批量操作,最多支持同时操作100台设备。
|
567
|
+
|
568
|
+
# @param request: Request instance for DeleteTraceIds.
|
569
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeleteTraceIdsRequest`
|
570
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeleteTraceIdsResponse`
|
571
|
+
def DeleteTraceIds(request)
|
572
|
+
body = send_request('DeleteTraceIds', request.serialize)
|
573
|
+
response = JSON.parse(body)
|
574
|
+
if response['Response'].key?('Error') == false
|
575
|
+
model = DeleteTraceIdsResponse.new
|
576
|
+
model.deserialize(response['Response'])
|
577
|
+
model
|
578
|
+
else
|
579
|
+
code = response['Response']['Error']['Code']
|
580
|
+
message = response['Response']['Error']['Message']
|
581
|
+
reqid = response['Response']['RequestId']
|
582
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
583
|
+
end
|
584
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
585
|
+
raise e
|
586
|
+
rescue StandardError => e
|
587
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
588
|
+
end
|
589
|
+
|
590
|
+
# 将已购买的云存服务转移到另一设备
|
591
|
+
|
592
|
+
# @param request: Request instance for DeliverStorageService.
|
593
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DeliverStorageServiceRequest`
|
594
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DeliverStorageServiceResponse`
|
595
|
+
def DeliverStorageService(request)
|
596
|
+
body = send_request('DeliverStorageService', request.serialize)
|
597
|
+
response = JSON.parse(body)
|
598
|
+
if response['Response'].key?('Error') == false
|
599
|
+
model = DeliverStorageServiceResponse.new
|
600
|
+
model.deserialize(response['Response'])
|
601
|
+
model
|
602
|
+
else
|
603
|
+
code = response['Response']['Error']['Code']
|
604
|
+
message = response['Response']['Error']['Message']
|
605
|
+
reqid = response['Response']['RequestId']
|
606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
607
|
+
end
|
608
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
609
|
+
raise e
|
610
|
+
rescue StandardError => e
|
611
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
612
|
+
end
|
613
|
+
|
614
|
+
# 客户可通过本接口获取账户余额信息, 默认接口请求频率限制:1次/秒
|
615
|
+
|
616
|
+
# @param request: Request instance for DescribeAccountBalance.
|
617
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeAccountBalanceRequest`
|
618
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeAccountBalanceResponse`
|
619
|
+
def DescribeAccountBalance(request)
|
620
|
+
body = send_request('DescribeAccountBalance', request.serialize)
|
621
|
+
response = JSON.parse(body)
|
622
|
+
if response['Response'].key?('Error') == false
|
623
|
+
model = DescribeAccountBalanceResponse.new
|
624
|
+
model.deserialize(response['Response'])
|
625
|
+
model
|
626
|
+
else
|
627
|
+
code = response['Response']['Error']['Code']
|
628
|
+
message = response['Response']['Error']['Message']
|
629
|
+
reqid = response['Response']['RequestId']
|
630
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
631
|
+
end
|
632
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
633
|
+
raise e
|
634
|
+
rescue StandardError => e
|
635
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
636
|
+
end
|
637
|
+
|
638
|
+
# 本接口(DescribeBindDev)用于查询终端用户绑定的设备列表。
|
639
|
+
|
640
|
+
# @param request: Request instance for DescribeBindDev.
|
641
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeBindDevRequest`
|
642
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeBindDevResponse`
|
643
|
+
def DescribeBindDev(request)
|
644
|
+
body = send_request('DescribeBindDev', request.serialize)
|
645
|
+
response = JSON.parse(body)
|
646
|
+
if response['Response'].key?('Error') == false
|
647
|
+
model = DescribeBindDevResponse.new
|
648
|
+
model.deserialize(response['Response'])
|
649
|
+
model
|
650
|
+
else
|
651
|
+
code = response['Response']['Error']['Code']
|
652
|
+
message = response['Response']['Error']['Message']
|
653
|
+
reqid = response['Response']['RequestId']
|
654
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
655
|
+
end
|
656
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
657
|
+
raise e
|
658
|
+
rescue StandardError => e
|
659
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
660
|
+
end
|
661
|
+
|
662
|
+
# 本接口(DescribeBindUsr)用于查询设备被分享的所有用户列表。
|
663
|
+
|
664
|
+
# @param request: Request instance for DescribeBindUsr.
|
665
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeBindUsrRequest`
|
666
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeBindUsrResponse`
|
667
|
+
def DescribeBindUsr(request)
|
668
|
+
body = send_request('DescribeBindUsr', request.serialize)
|
669
|
+
response = JSON.parse(body)
|
670
|
+
if response['Response'].key?('Error') == false
|
671
|
+
model = DescribeBindUsrResponse.new
|
672
|
+
model.deserialize(response['Response'])
|
673
|
+
model
|
674
|
+
else
|
675
|
+
code = response['Response']['Error']['Code']
|
676
|
+
message = response['Response']['Error']['Message']
|
677
|
+
reqid = response['Response']['RequestId']
|
678
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
679
|
+
end
|
680
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
681
|
+
raise e
|
682
|
+
rescue StandardError => e
|
683
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
684
|
+
end
|
685
|
+
|
686
|
+
# 本接口(DescribeDevice)获取设备信息。
|
687
|
+
|
688
|
+
# @param request: Request instance for DescribeDevice.
|
689
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeDeviceRequest`
|
690
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeDeviceResponse`
|
691
|
+
def DescribeDevice(request)
|
692
|
+
body = send_request('DescribeDevice', request.serialize)
|
693
|
+
response = JSON.parse(body)
|
694
|
+
if response['Response'].key?('Error') == false
|
695
|
+
model = DescribeDeviceResponse.new
|
696
|
+
model.deserialize(response['Response'])
|
697
|
+
model
|
698
|
+
else
|
699
|
+
code = response['Response']['Error']['Code']
|
700
|
+
message = response['Response']['Error']['Message']
|
701
|
+
reqid = response['Response']['RequestId']
|
702
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
703
|
+
end
|
704
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
705
|
+
raise e
|
706
|
+
rescue StandardError => e
|
707
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
708
|
+
end
|
709
|
+
|
710
|
+
# 本接口(DescribeDeviceModel)用于获取设备物模型。
|
711
|
+
|
712
|
+
# @param request: Request instance for DescribeDeviceModel.
|
713
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeDeviceModelRequest`
|
714
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeDeviceModelResponse`
|
715
|
+
def DescribeDeviceModel(request)
|
716
|
+
body = send_request('DescribeDeviceModel', request.serialize)
|
717
|
+
response = JSON.parse(body)
|
718
|
+
if response['Response'].key?('Error') == false
|
719
|
+
model = DescribeDeviceModelResponse.new
|
720
|
+
model.deserialize(response['Response'])
|
721
|
+
model
|
722
|
+
else
|
723
|
+
code = response['Response']['Error']['Code']
|
724
|
+
message = response['Response']['Error']['Message']
|
725
|
+
reqid = response['Response']['RequestId']
|
726
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
727
|
+
end
|
728
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
729
|
+
raise e
|
730
|
+
rescue StandardError => e
|
731
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
732
|
+
end
|
733
|
+
|
734
|
+
# 本接口(DescribeDevices)用于获取设备信息列表。
|
735
|
+
|
736
|
+
# @param request: Request instance for DescribeDevices.
|
737
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeDevicesRequest`
|
738
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeDevicesResponse`
|
739
|
+
def DescribeDevices(request)
|
740
|
+
body = send_request('DescribeDevices', request.serialize)
|
741
|
+
response = JSON.parse(body)
|
742
|
+
if response['Response'].key?('Error') == false
|
743
|
+
model = DescribeDevicesResponse.new
|
744
|
+
model.deserialize(response['Response'])
|
745
|
+
model
|
746
|
+
else
|
747
|
+
code = response['Response']['Error']['Code']
|
748
|
+
message = response['Response']['Error']['Message']
|
749
|
+
reqid = response['Response']['RequestId']
|
750
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
751
|
+
end
|
752
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
753
|
+
raise e
|
754
|
+
rescue StandardError => e
|
755
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
756
|
+
end
|
757
|
+
|
758
|
+
# 本接口(DescribeIotDataType)用于查询自定义的物模型数据类型。
|
759
|
+
|
760
|
+
# @param request: Request instance for DescribeIotDataType.
|
761
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeIotDataTypeRequest`
|
762
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeIotDataTypeResponse`
|
763
|
+
def DescribeIotDataType(request)
|
764
|
+
body = send_request('DescribeIotDataType', request.serialize)
|
765
|
+
response = JSON.parse(body)
|
766
|
+
if response['Response'].key?('Error') == false
|
767
|
+
model = DescribeIotDataTypeResponse.new
|
768
|
+
model.deserialize(response['Response'])
|
769
|
+
model
|
770
|
+
else
|
771
|
+
code = response['Response']['Error']['Code']
|
772
|
+
message = response['Response']['Error']['Message']
|
773
|
+
reqid = response['Response']['RequestId']
|
774
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
775
|
+
end
|
776
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
777
|
+
raise e
|
778
|
+
rescue StandardError => e
|
779
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
780
|
+
end
|
781
|
+
|
782
|
+
# 本接口(DescribeIotModel)用于获取物模型定义详情。
|
783
|
+
|
784
|
+
# @param request: Request instance for DescribeIotModel.
|
785
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeIotModelRequest`
|
786
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeIotModelResponse`
|
787
|
+
def DescribeIotModel(request)
|
788
|
+
body = send_request('DescribeIotModel', request.serialize)
|
789
|
+
response = JSON.parse(body)
|
790
|
+
if response['Response'].key?('Error') == false
|
791
|
+
model = DescribeIotModelResponse.new
|
792
|
+
model.deserialize(response['Response'])
|
793
|
+
model
|
794
|
+
else
|
795
|
+
code = response['Response']['Error']['Code']
|
796
|
+
message = response['Response']['Error']['Message']
|
797
|
+
reqid = response['Response']['RequestId']
|
798
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
799
|
+
end
|
800
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
801
|
+
raise e
|
802
|
+
rescue StandardError => e
|
803
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
804
|
+
end
|
805
|
+
|
806
|
+
# 本接口(DescribeIotModels)用于列出物模型历史版本列表。
|
807
|
+
|
808
|
+
# @param request: Request instance for DescribeIotModels.
|
809
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeIotModelsRequest`
|
810
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeIotModelsResponse`
|
811
|
+
def DescribeIotModels(request)
|
812
|
+
body = send_request('DescribeIotModels', request.serialize)
|
813
|
+
response = JSON.parse(body)
|
814
|
+
if response['Response'].key?('Error') == false
|
815
|
+
model = DescribeIotModelsResponse.new
|
816
|
+
model.deserialize(response['Response'])
|
817
|
+
model
|
818
|
+
else
|
819
|
+
code = response['Response']['Error']['Code']
|
820
|
+
message = response['Response']['Error']['Message']
|
821
|
+
reqid = response['Response']['RequestId']
|
822
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
823
|
+
end
|
824
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
825
|
+
raise e
|
826
|
+
rescue StandardError => e
|
827
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
828
|
+
end
|
829
|
+
|
830
|
+
# 本接口(DescribeLogs)用于查询设备日志列表。
|
831
|
+
# 设备日志最长保留时长为15天,超期自动清除。
|
832
|
+
|
833
|
+
# @param request: Request instance for DescribeLogs.
|
834
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeLogsRequest`
|
835
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeLogsResponse`
|
836
|
+
def DescribeLogs(request)
|
837
|
+
body = send_request('DescribeLogs', request.serialize)
|
838
|
+
response = JSON.parse(body)
|
839
|
+
if response['Response'].key?('Error') == false
|
840
|
+
model = DescribeLogsResponse.new
|
841
|
+
model.deserialize(response['Response'])
|
842
|
+
model
|
843
|
+
else
|
844
|
+
code = response['Response']['Error']['Code']
|
845
|
+
message = response['Response']['Error']['Message']
|
846
|
+
reqid = response['Response']['RequestId']
|
847
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
848
|
+
end
|
849
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
850
|
+
raise e
|
851
|
+
rescue StandardError => e
|
852
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
853
|
+
end
|
854
|
+
|
855
|
+
# 本接口(DescribeMessageQueue)用于查询物联网智能视频产品转发消息配置。
|
856
|
+
|
857
|
+
# @param request: Request instance for DescribeMessageQueue.
|
858
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeMessageQueueRequest`
|
859
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeMessageQueueResponse`
|
860
|
+
def DescribeMessageQueue(request)
|
861
|
+
body = send_request('DescribeMessageQueue', request.serialize)
|
862
|
+
response = JSON.parse(body)
|
863
|
+
if response['Response'].key?('Error') == false
|
864
|
+
model = DescribeMessageQueueResponse.new
|
865
|
+
model.deserialize(response['Response'])
|
866
|
+
model
|
867
|
+
else
|
868
|
+
code = response['Response']['Error']['Code']
|
869
|
+
message = response['Response']['Error']['Message']
|
870
|
+
reqid = response['Response']['RequestId']
|
871
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
872
|
+
end
|
873
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
874
|
+
raise e
|
875
|
+
rescue StandardError => e
|
876
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
877
|
+
end
|
878
|
+
|
879
|
+
# 本接口(DescribeModelDataRet)用于根据TaskId获取对设备物模型操作最终响应的结果。
|
880
|
+
|
881
|
+
# @param request: Request instance for DescribeModelDataRet.
|
882
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeModelDataRetRequest`
|
883
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeModelDataRetResponse`
|
884
|
+
def DescribeModelDataRet(request)
|
885
|
+
body = send_request('DescribeModelDataRet', request.serialize)
|
886
|
+
response = JSON.parse(body)
|
887
|
+
if response['Response'].key?('Error') == false
|
888
|
+
model = DescribeModelDataRetResponse.new
|
889
|
+
model.deserialize(response['Response'])
|
890
|
+
model
|
891
|
+
else
|
892
|
+
code = response['Response']['Error']['Code']
|
893
|
+
message = response['Response']['Error']['Message']
|
894
|
+
reqid = response['Response']['RequestId']
|
895
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
896
|
+
end
|
897
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
898
|
+
raise e
|
899
|
+
rescue StandardError => e
|
900
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
901
|
+
end
|
902
|
+
|
903
|
+
# 查看操作系统支持的芯片列表
|
904
|
+
|
905
|
+
# @param request: Request instance for DescribeOsList.
|
906
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeOsListRequest`
|
907
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeOsListResponse`
|
908
|
+
def DescribeOsList(request)
|
909
|
+
body = send_request('DescribeOsList', request.serialize)
|
910
|
+
response = JSON.parse(body)
|
911
|
+
if response['Response'].key?('Error') == false
|
912
|
+
model = DescribeOsListResponse.new
|
913
|
+
model.deserialize(response['Response'])
|
914
|
+
model
|
915
|
+
else
|
916
|
+
code = response['Response']['Error']['Code']
|
917
|
+
message = response['Response']['Error']['Message']
|
918
|
+
reqid = response['Response']['RequestId']
|
919
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
920
|
+
end
|
921
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
922
|
+
raise e
|
923
|
+
rescue StandardError => e
|
924
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
925
|
+
end
|
926
|
+
|
927
|
+
# 本接口(DescribeOtaVersions)用于查询固件版本信息列表。
|
928
|
+
|
929
|
+
# @param request: Request instance for DescribeOtaVersions.
|
930
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeOtaVersionsRequest`
|
931
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeOtaVersionsResponse`
|
932
|
+
def DescribeOtaVersions(request)
|
933
|
+
body = send_request('DescribeOtaVersions', request.serialize)
|
934
|
+
response = JSON.parse(body)
|
935
|
+
if response['Response'].key?('Error') == false
|
936
|
+
model = DescribeOtaVersionsResponse.new
|
937
|
+
model.deserialize(response['Response'])
|
938
|
+
model
|
939
|
+
else
|
940
|
+
code = response['Response']['Error']['Code']
|
941
|
+
message = response['Response']['Error']['Message']
|
942
|
+
reqid = response['Response']['RequestId']
|
943
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
944
|
+
end
|
945
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
946
|
+
raise e
|
947
|
+
rescue StandardError => e
|
948
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
949
|
+
end
|
950
|
+
|
951
|
+
# 本接口(DescribeProduct)用于获取单个产品的详细信息。
|
952
|
+
|
953
|
+
# @param request: Request instance for DescribeProduct.
|
954
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeProductRequest`
|
955
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeProductResponse`
|
956
|
+
def DescribeProduct(request)
|
957
|
+
body = send_request('DescribeProduct', request.serialize)
|
958
|
+
response = JSON.parse(body)
|
959
|
+
if response['Response'].key?('Error') == false
|
960
|
+
model = DescribeProductResponse.new
|
961
|
+
model.deserialize(response['Response'])
|
962
|
+
model
|
963
|
+
else
|
964
|
+
code = response['Response']['Error']['Code']
|
965
|
+
message = response['Response']['Error']['Message']
|
966
|
+
reqid = response['Response']['RequestId']
|
967
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
968
|
+
end
|
969
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
970
|
+
raise e
|
971
|
+
rescue StandardError => e
|
972
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
973
|
+
end
|
974
|
+
|
975
|
+
# 本接口(DescribeProducts)用于列出用户账号下的物联网智能视频产品列表。
|
976
|
+
|
977
|
+
# @param request: Request instance for DescribeProducts.
|
978
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeProductsRequest`
|
979
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeProductsResponse`
|
980
|
+
def DescribeProducts(request)
|
981
|
+
body = send_request('DescribeProducts', request.serialize)
|
982
|
+
response = JSON.parse(body)
|
983
|
+
if response['Response'].key?('Error') == false
|
984
|
+
model = DescribeProductsResponse.new
|
985
|
+
model.deserialize(response['Response'])
|
986
|
+
model
|
987
|
+
else
|
988
|
+
code = response['Response']['Error']['Code']
|
989
|
+
message = response['Response']['Error']['Message']
|
990
|
+
reqid = response['Response']['RequestId']
|
991
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
992
|
+
end
|
993
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
994
|
+
raise e
|
995
|
+
rescue StandardError => e
|
996
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
997
|
+
end
|
998
|
+
|
999
|
+
# 本接口(DescribePubVersions)用于获取某一产品发布过的全部固件版本。
|
1000
|
+
|
1001
|
+
# @param request: Request instance for DescribePubVersions.
|
1002
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribePubVersionsRequest`
|
1003
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribePubVersionsResponse`
|
1004
|
+
def DescribePubVersions(request)
|
1005
|
+
body = send_request('DescribePubVersions', request.serialize)
|
1006
|
+
response = JSON.parse(body)
|
1007
|
+
if response['Response'].key?('Error') == false
|
1008
|
+
model = DescribePubVersionsResponse.new
|
1009
|
+
model.deserialize(response['Response'])
|
1010
|
+
model
|
1011
|
+
else
|
1012
|
+
code = response['Response']['Error']['Code']
|
1013
|
+
message = response['Response']['Error']['Message']
|
1014
|
+
reqid = response['Response']['RequestId']
|
1015
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1016
|
+
end
|
1017
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1018
|
+
raise e
|
1019
|
+
rescue StandardError => e
|
1020
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# 客户可通过本接口获取充值记录信息, 一次最多返回50条记录。
|
1024
|
+
|
1025
|
+
# @param request: Request instance for DescribeRechargeRecords.
|
1026
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeRechargeRecordsRequest`
|
1027
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeRechargeRecordsResponse`
|
1028
|
+
def DescribeRechargeRecords(request)
|
1029
|
+
body = send_request('DescribeRechargeRecords', request.serialize)
|
1030
|
+
response = JSON.parse(body)
|
1031
|
+
if response['Response'].key?('Error') == false
|
1032
|
+
model = DescribeRechargeRecordsResponse.new
|
1033
|
+
model.deserialize(response['Response'])
|
1034
|
+
model
|
1035
|
+
else
|
1036
|
+
code = response['Response']['Error']['Code']
|
1037
|
+
message = response['Response']['Error']['Message']
|
1038
|
+
reqid = response['Response']['RequestId']
|
1039
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1040
|
+
end
|
1041
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1042
|
+
raise e
|
1043
|
+
rescue StandardError => e
|
1044
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# 本接口(DescribeRegistrationStatus)用于查询终端用户的注册状态。
|
1048
|
+
|
1049
|
+
# @param request: Request instance for DescribeRegistrationStatus.
|
1050
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeRegistrationStatusRequest`
|
1051
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeRegistrationStatusResponse`
|
1052
|
+
def DescribeRegistrationStatus(request)
|
1053
|
+
body = send_request('DescribeRegistrationStatus', request.serialize)
|
1054
|
+
response = JSON.parse(body)
|
1055
|
+
if response['Response'].key?('Error') == false
|
1056
|
+
model = DescribeRegistrationStatusResponse.new
|
1057
|
+
model.deserialize(response['Response'])
|
1058
|
+
model
|
1059
|
+
else
|
1060
|
+
code = response['Response']['Error']['Code']
|
1061
|
+
message = response['Response']['Error']['Message']
|
1062
|
+
reqid = response['Response']['RequestId']
|
1063
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1064
|
+
end
|
1065
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1066
|
+
raise e
|
1067
|
+
rescue StandardError => e
|
1068
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# 本接口(DescribeRunLog)用于获取设备运行日志。
|
1072
|
+
|
1073
|
+
# @param request: Request instance for DescribeRunLog.
|
1074
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeRunLogRequest`
|
1075
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeRunLogResponse`
|
1076
|
+
def DescribeRunLog(request)
|
1077
|
+
body = send_request('DescribeRunLog', request.serialize)
|
1078
|
+
response = JSON.parse(body)
|
1079
|
+
if response['Response'].key?('Error') == false
|
1080
|
+
model = DescribeRunLogResponse.new
|
1081
|
+
model.deserialize(response['Response'])
|
1082
|
+
model
|
1083
|
+
else
|
1084
|
+
code = response['Response']['Error']['Code']
|
1085
|
+
message = response['Response']['Error']['Message']
|
1086
|
+
reqid = response['Response']['RequestId']
|
1087
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1088
|
+
end
|
1089
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1090
|
+
raise e
|
1091
|
+
rescue StandardError => e
|
1092
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# 查询云存服务
|
1096
|
+
|
1097
|
+
# @param request: Request instance for DescribeStorageService.
|
1098
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeStorageServiceRequest`
|
1099
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeStorageServiceResponse`
|
1100
|
+
def DescribeStorageService(request)
|
1101
|
+
body = send_request('DescribeStorageService', request.serialize)
|
1102
|
+
response = JSON.parse(body)
|
1103
|
+
if response['Response'].key?('Error') == false
|
1104
|
+
model = DescribeStorageServiceResponse.new
|
1105
|
+
model.deserialize(response['Response'])
|
1106
|
+
model
|
1107
|
+
else
|
1108
|
+
code = response['Response']['Error']['Code']
|
1109
|
+
message = response['Response']['Error']['Message']
|
1110
|
+
reqid = response['Response']['RequestId']
|
1111
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1112
|
+
end
|
1113
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1114
|
+
raise e
|
1115
|
+
rescue StandardError => e
|
1116
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
# 请求设备直播流地址
|
1120
|
+
|
1121
|
+
# @param request: Request instance for DescribeStream.
|
1122
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeStreamRequest`
|
1123
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeStreamResponse`
|
1124
|
+
def DescribeStream(request)
|
1125
|
+
body = send_request('DescribeStream', request.serialize)
|
1126
|
+
response = JSON.parse(body)
|
1127
|
+
if response['Response'].key?('Error') == false
|
1128
|
+
model = DescribeStreamResponse.new
|
1129
|
+
model.deserialize(response['Response'])
|
1130
|
+
model
|
1131
|
+
else
|
1132
|
+
code = response['Response']['Error']['Code']
|
1133
|
+
message = response['Response']['Error']['Message']
|
1134
|
+
reqid = response['Response']['RequestId']
|
1135
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1136
|
+
end
|
1137
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1138
|
+
raise e
|
1139
|
+
rescue StandardError => e
|
1140
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
# 本接口(DescribeTraceIds)用于查询设备日志跟踪白名单。
|
1144
|
+
|
1145
|
+
# @param request: Request instance for DescribeTraceIds.
|
1146
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeTraceIdsRequest`
|
1147
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeTraceIdsResponse`
|
1148
|
+
def DescribeTraceIds(request)
|
1149
|
+
body = send_request('DescribeTraceIds', request.serialize)
|
1150
|
+
response = JSON.parse(body)
|
1151
|
+
if response['Response'].key?('Error') == false
|
1152
|
+
model = DescribeTraceIdsResponse.new
|
1153
|
+
model.deserialize(response['Response'])
|
1154
|
+
model
|
1155
|
+
else
|
1156
|
+
code = response['Response']['Error']['Code']
|
1157
|
+
message = response['Response']['Error']['Message']
|
1158
|
+
reqid = response['Response']['RequestId']
|
1159
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1160
|
+
end
|
1161
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1162
|
+
raise e
|
1163
|
+
rescue StandardError => e
|
1164
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
# 本接口(DescribeTraceStatus)用于查询指定设备是否在白名单中。
|
1168
|
+
|
1169
|
+
# @param request: Request instance for DescribeTraceStatus.
|
1170
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DescribeTraceStatusRequest`
|
1171
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DescribeTraceStatusResponse`
|
1172
|
+
def DescribeTraceStatus(request)
|
1173
|
+
body = send_request('DescribeTraceStatus', request.serialize)
|
1174
|
+
response = JSON.parse(body)
|
1175
|
+
if response['Response'].key?('Error') == false
|
1176
|
+
model = DescribeTraceStatusResponse.new
|
1177
|
+
model.deserialize(response['Response'])
|
1178
|
+
model
|
1179
|
+
else
|
1180
|
+
code = response['Response']['Error']['Code']
|
1181
|
+
message = response['Response']['Error']['Message']
|
1182
|
+
reqid = response['Response']['RequestId']
|
1183
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1184
|
+
end
|
1185
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1186
|
+
raise e
|
1187
|
+
rescue StandardError => e
|
1188
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# 本接口(DisableDevice)用于禁用设备,可进行批量操作,每次操作最多100台设备。
|
1192
|
+
|
1193
|
+
# @param request: Request instance for DisableDevice.
|
1194
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DisableDeviceRequest`
|
1195
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DisableDeviceResponse`
|
1196
|
+
def DisableDevice(request)
|
1197
|
+
body = send_request('DisableDevice', request.serialize)
|
1198
|
+
response = JSON.parse(body)
|
1199
|
+
if response['Response'].key?('Error') == false
|
1200
|
+
model = DisableDeviceResponse.new
|
1201
|
+
model.deserialize(response['Response'])
|
1202
|
+
model
|
1203
|
+
else
|
1204
|
+
code = response['Response']['Error']['Code']
|
1205
|
+
message = response['Response']['Error']['Message']
|
1206
|
+
reqid = response['Response']['RequestId']
|
1207
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1208
|
+
end
|
1209
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1210
|
+
raise e
|
1211
|
+
rescue StandardError => e
|
1212
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
# 本接口(DisableDeviceStream)用于停止设备推流,可进行批量操作,每次操作最多100台设备。
|
1216
|
+
|
1217
|
+
# @param request: Request instance for DisableDeviceStream.
|
1218
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DisableDeviceStreamRequest`
|
1219
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DisableDeviceStreamResponse`
|
1220
|
+
def DisableDeviceStream(request)
|
1221
|
+
body = send_request('DisableDeviceStream', request.serialize)
|
1222
|
+
response = JSON.parse(body)
|
1223
|
+
if response['Response'].key?('Error') == false
|
1224
|
+
model = DisableDeviceStreamResponse.new
|
1225
|
+
model.deserialize(response['Response'])
|
1226
|
+
model
|
1227
|
+
else
|
1228
|
+
code = response['Response']['Error']['Code']
|
1229
|
+
message = response['Response']['Error']['Message']
|
1230
|
+
reqid = response['Response']['RequestId']
|
1231
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1232
|
+
end
|
1233
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1234
|
+
raise e
|
1235
|
+
rescue StandardError => e
|
1236
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
# 本接口(DisableOtaVersion)用于禁用固件版本。
|
1240
|
+
|
1241
|
+
# @param request: Request instance for DisableOtaVersion.
|
1242
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::DisableOtaVersionRequest`
|
1243
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::DisableOtaVersionResponse`
|
1244
|
+
def DisableOtaVersion(request)
|
1245
|
+
body = send_request('DisableOtaVersion', request.serialize)
|
1246
|
+
response = JSON.parse(body)
|
1247
|
+
if response['Response'].key?('Error') == false
|
1248
|
+
model = DisableOtaVersionResponse.new
|
1249
|
+
model.deserialize(response['Response'])
|
1250
|
+
model
|
1251
|
+
else
|
1252
|
+
code = response['Response']['Error']['Code']
|
1253
|
+
message = response['Response']['Error']['Message']
|
1254
|
+
reqid = response['Response']['RequestId']
|
1255
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1256
|
+
end
|
1257
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1258
|
+
raise e
|
1259
|
+
rescue StandardError => e
|
1260
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
# 修改设备信息
|
1264
|
+
|
1265
|
+
# @param request: Request instance for ModifyDevice.
|
1266
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::ModifyDeviceRequest`
|
1267
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::ModifyDeviceResponse`
|
1268
|
+
def ModifyDevice(request)
|
1269
|
+
body = send_request('ModifyDevice', request.serialize)
|
1270
|
+
response = JSON.parse(body)
|
1271
|
+
if response['Response'].key?('Error') == false
|
1272
|
+
model = ModifyDeviceResponse.new
|
1273
|
+
model.deserialize(response['Response'])
|
1274
|
+
model
|
1275
|
+
else
|
1276
|
+
code = response['Response']['Error']['Code']
|
1277
|
+
message = response['Response']['Error']['Message']
|
1278
|
+
reqid = response['Response']['RequestId']
|
1279
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1280
|
+
end
|
1281
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1282
|
+
raise e
|
1283
|
+
rescue StandardError => e
|
1284
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
# 本接口(ModifyDeviceAction)用于修改设备物模型的行为(Action)。
|
1288
|
+
|
1289
|
+
# 可对ctlVal数据属性进行写入,如:Action.takePhoto.ctlVal,设备在线且成功发送到设备才返回,物模型写入数据时,不需要传入时标信息,平台以当前时标作为数据的时标更新物模型中的时标信息。
|
1290
|
+
# 注意:
|
1291
|
+
# 1.若设备当前不在线,会直接返回错误
|
1292
|
+
# 2.若设备网络出现异常时,消息发送可能超时,超时等待最长时间为3秒
|
1293
|
+
# 3.value的内容必须与实际物模型的定义一致
|
1294
|
+
|
1295
|
+
# @param request: Request instance for ModifyDeviceAction.
|
1296
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::ModifyDeviceActionRequest`
|
1297
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::ModifyDeviceActionResponse`
|
1298
|
+
def ModifyDeviceAction(request)
|
1299
|
+
body = send_request('ModifyDeviceAction', request.serialize)
|
1300
|
+
response = JSON.parse(body)
|
1301
|
+
if response['Response'].key?('Error') == false
|
1302
|
+
model = ModifyDeviceActionResponse.new
|
1303
|
+
model.deserialize(response['Response'])
|
1304
|
+
model
|
1305
|
+
else
|
1306
|
+
code = response['Response']['Error']['Code']
|
1307
|
+
message = response['Response']['Error']['Message']
|
1308
|
+
reqid = response['Response']['RequestId']
|
1309
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1310
|
+
end
|
1311
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1312
|
+
raise e
|
1313
|
+
rescue StandardError => e
|
1314
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1315
|
+
end
|
1316
|
+
|
1317
|
+
# 本接口(ModifyDeviceProperty)用于修改设备物模型的属性(ProWritable)。
|
1318
|
+
# 可对setVal数据属性进行写入,如:
|
1319
|
+
# ProWritable.Pos.setVal
|
1320
|
+
# 对于嵌套类型的可写属性,可以仅对其部分数据内容进行写入,如:
|
1321
|
+
# ProWritable.Pos.setVal.x;
|
1322
|
+
# 可写属性云端写入成功即返回;云端向设备端发布属性变更参数;若当前设备不在线,在设备下次上线时会自动更新这些属性参数;
|
1323
|
+
# 物模型写入数据时,不需要传入时标信息,平台以当前时标作为数据的时标更新物模型中的时标信息。
|
1324
|
+
|
1325
|
+
# @param request: Request instance for ModifyDeviceProperty.
|
1326
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::ModifyDevicePropertyRequest`
|
1327
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::ModifyDevicePropertyResponse`
|
1328
|
+
def ModifyDeviceProperty(request)
|
1329
|
+
body = send_request('ModifyDeviceProperty', request.serialize)
|
1330
|
+
response = JSON.parse(body)
|
1331
|
+
if response['Response'].key?('Error') == false
|
1332
|
+
model = ModifyDevicePropertyResponse.new
|
1333
|
+
model.deserialize(response['Response'])
|
1334
|
+
model
|
1335
|
+
else
|
1336
|
+
code = response['Response']['Error']['Code']
|
1337
|
+
message = response['Response']['Error']['Message']
|
1338
|
+
reqid = response['Response']['RequestId']
|
1339
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1340
|
+
end
|
1341
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1342
|
+
raise e
|
1343
|
+
rescue StandardError => e
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
# 本接口(ModifyProduct)用于编辑物联网智能视频产品的相关信息。
|
1348
|
+
|
1349
|
+
# @param request: Request instance for ModifyProduct.
|
1350
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::ModifyProductRequest`
|
1351
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::ModifyProductResponse`
|
1352
|
+
def ModifyProduct(request)
|
1353
|
+
body = send_request('ModifyProduct', request.serialize)
|
1354
|
+
response = JSON.parse(body)
|
1355
|
+
if response['Response'].key?('Error') == false
|
1356
|
+
model = ModifyProductResponse.new
|
1357
|
+
model.deserialize(response['Response'])
|
1358
|
+
model
|
1359
|
+
else
|
1360
|
+
code = response['Response']['Error']['Code']
|
1361
|
+
message = response['Response']['Error']['Message']
|
1362
|
+
reqid = response['Response']['RequestId']
|
1363
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1364
|
+
end
|
1365
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1366
|
+
raise e
|
1367
|
+
rescue StandardError => e
|
1368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# 编辑版本描述信息
|
1372
|
+
|
1373
|
+
# @param request: Request instance for ModifyVerContent.
|
1374
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::ModifyVerContentRequest`
|
1375
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::ModifyVerContentResponse`
|
1376
|
+
def ModifyVerContent(request)
|
1377
|
+
body = send_request('ModifyVerContent', request.serialize)
|
1378
|
+
response = JSON.parse(body)
|
1379
|
+
if response['Response'].key?('Error') == false
|
1380
|
+
model = ModifyVerContentResponse.new
|
1381
|
+
model.deserialize(response['Response'])
|
1382
|
+
model
|
1383
|
+
else
|
1384
|
+
code = response['Response']['Error']['Code']
|
1385
|
+
message = response['Response']['Error']['Message']
|
1386
|
+
reqid = response['Response']['RequestId']
|
1387
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1388
|
+
end
|
1389
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1390
|
+
raise e
|
1391
|
+
rescue StandardError => e
|
1392
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
# 本接口(RefundStorageService)用于退订已购买的云存服务。
|
1396
|
+
# 退订时,云存服务对应订单的处理方式 :
|
1397
|
+
# 1. 未开始的订单自动回到已付费订单池
|
1398
|
+
# 2. 已开始的订单自动失效
|
1399
|
+
# 3. 购买云存接口,优先从已付费订单池中分配订单
|
1400
|
+
|
1401
|
+
# @param request: Request instance for RefundStorageService.
|
1402
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RefundStorageServiceRequest`
|
1403
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RefundStorageServiceResponse`
|
1404
|
+
def RefundStorageService(request)
|
1405
|
+
body = send_request('RefundStorageService', request.serialize)
|
1406
|
+
response = JSON.parse(body)
|
1407
|
+
if response['Response'].key?('Error') == false
|
1408
|
+
model = RefundStorageServiceResponse.new
|
1409
|
+
model.deserialize(response['Response'])
|
1410
|
+
model
|
1411
|
+
else
|
1412
|
+
code = response['Response']['Error']['Code']
|
1413
|
+
message = response['Response']['Error']['Message']
|
1414
|
+
reqid = response['Response']['RequestId']
|
1415
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1416
|
+
end
|
1417
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1418
|
+
raise e
|
1419
|
+
rescue StandardError => e
|
1420
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
# 本接口(RunDevice)用于启用设备,可进行批量操作,每次操作最多100台设备。
|
1424
|
+
|
1425
|
+
# @param request: Request instance for RunDevice.
|
1426
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RunDeviceRequest`
|
1427
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RunDeviceResponse`
|
1428
|
+
def RunDevice(request)
|
1429
|
+
body = send_request('RunDevice', request.serialize)
|
1430
|
+
response = JSON.parse(body)
|
1431
|
+
if response['Response'].key?('Error') == false
|
1432
|
+
model = RunDeviceResponse.new
|
1433
|
+
model.deserialize(response['Response'])
|
1434
|
+
model
|
1435
|
+
else
|
1436
|
+
code = response['Response']['Error']['Code']
|
1437
|
+
message = response['Response']['Error']['Message']
|
1438
|
+
reqid = response['Response']['RequestId']
|
1439
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1440
|
+
end
|
1441
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1442
|
+
raise e
|
1443
|
+
rescue StandardError => e
|
1444
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
# 本接口(RunDeviceStream)用于开启设备推流,可进行批量操作,每次操作最多100台设备。
|
1448
|
+
|
1449
|
+
# @param request: Request instance for RunDeviceStream.
|
1450
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RunDeviceStreamRequest`
|
1451
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RunDeviceStreamResponse`
|
1452
|
+
def RunDeviceStream(request)
|
1453
|
+
body = send_request('RunDeviceStream', request.serialize)
|
1454
|
+
response = JSON.parse(body)
|
1455
|
+
if response['Response'].key?('Error') == false
|
1456
|
+
model = RunDeviceStreamResponse.new
|
1457
|
+
model.deserialize(response['Response'])
|
1458
|
+
model
|
1459
|
+
else
|
1460
|
+
code = response['Response']['Error']['Code']
|
1461
|
+
message = response['Response']['Error']['Message']
|
1462
|
+
reqid = response['Response']['RequestId']
|
1463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1464
|
+
end
|
1465
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1466
|
+
raise e
|
1467
|
+
rescue StandardError => e
|
1468
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
# 本接口(RunIotModel)用于对定义的物模型进行发布。
|
1472
|
+
|
1473
|
+
# @param request: Request instance for RunIotModel.
|
1474
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RunIotModelRequest`
|
1475
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RunIotModelResponse`
|
1476
|
+
def RunIotModel(request)
|
1477
|
+
body = send_request('RunIotModel', request.serialize)
|
1478
|
+
response = JSON.parse(body)
|
1479
|
+
if response['Response'].key?('Error') == false
|
1480
|
+
model = RunIotModelResponse.new
|
1481
|
+
model.deserialize(response['Response'])
|
1482
|
+
model
|
1483
|
+
else
|
1484
|
+
code = response['Response']['Error']['Code']
|
1485
|
+
message = response['Response']['Error']['Message']
|
1486
|
+
reqid = response['Response']['RequestId']
|
1487
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1488
|
+
end
|
1489
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1490
|
+
raise e
|
1491
|
+
rescue StandardError => e
|
1492
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1493
|
+
end
|
1494
|
+
|
1495
|
+
# 本接口(RunOtaVersion)用于固件版本正式发布。
|
1496
|
+
|
1497
|
+
# @param request: Request instance for RunOtaVersion.
|
1498
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RunOtaVersionRequest`
|
1499
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RunOtaVersionResponse`
|
1500
|
+
def RunOtaVersion(request)
|
1501
|
+
body = send_request('RunOtaVersion', request.serialize)
|
1502
|
+
response = JSON.parse(body)
|
1503
|
+
if response['Response'].key?('Error') == false
|
1504
|
+
model = RunOtaVersionResponse.new
|
1505
|
+
model.deserialize(response['Response'])
|
1506
|
+
model
|
1507
|
+
else
|
1508
|
+
code = response['Response']['Error']['Code']
|
1509
|
+
message = response['Response']['Error']['Message']
|
1510
|
+
reqid = response['Response']['RequestId']
|
1511
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1512
|
+
end
|
1513
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1514
|
+
raise e
|
1515
|
+
rescue StandardError => e
|
1516
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# 本接口(RunTestOtaVersion)用于固件版本测试发布。
|
1520
|
+
|
1521
|
+
# @param request: Request instance for RunTestOtaVersion.
|
1522
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RunTestOtaVersionRequest`
|
1523
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RunTestOtaVersionResponse`
|
1524
|
+
def RunTestOtaVersion(request)
|
1525
|
+
body = send_request('RunTestOtaVersion', request.serialize)
|
1526
|
+
response = JSON.parse(body)
|
1527
|
+
if response['Response'].key?('Error') == false
|
1528
|
+
model = RunTestOtaVersionResponse.new
|
1529
|
+
model.deserialize(response['Response'])
|
1530
|
+
model
|
1531
|
+
else
|
1532
|
+
code = response['Response']['Error']['Code']
|
1533
|
+
message = response['Response']['Error']['Message']
|
1534
|
+
reqid = response['Response']['RequestId']
|
1535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1536
|
+
end
|
1537
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1538
|
+
raise e
|
1539
|
+
rescue StandardError => e
|
1540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
# 本接口(SendOnlineMsg)用于向设备发送在线消息。
|
1544
|
+
# 注意:
|
1545
|
+
# 若设备当前不在线,会直接返回错误;
|
1546
|
+
# 若设备网络出现异常时,消息发送可能超时,超时等待最长时间为3秒.waitresp非0情况下,会导致本接口阻塞3秒。
|
1547
|
+
|
1548
|
+
# @param request: Request instance for SendOnlineMsg.
|
1549
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::SendOnlineMsgRequest`
|
1550
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::SendOnlineMsgResponse`
|
1551
|
+
def SendOnlineMsg(request)
|
1552
|
+
body = send_request('SendOnlineMsg', request.serialize)
|
1553
|
+
response = JSON.parse(body)
|
1554
|
+
if response['Response'].key?('Error') == false
|
1555
|
+
model = SendOnlineMsgResponse.new
|
1556
|
+
model.deserialize(response['Response'])
|
1557
|
+
model
|
1558
|
+
else
|
1559
|
+
code = response['Response']['Error']['Code']
|
1560
|
+
message = response['Response']['Error']['Message']
|
1561
|
+
reqid = response['Response']['RequestId']
|
1562
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1563
|
+
end
|
1564
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1565
|
+
raise e
|
1566
|
+
rescue StandardError => e
|
1567
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
# 本接口(SetMessageQueue)用于配置物联网智能视频产品的转发消息队列。
|
1571
|
+
|
1572
|
+
# @param request: Request instance for SetMessageQueue.
|
1573
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::SetMessageQueueRequest`
|
1574
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::SetMessageQueueResponse`
|
1575
|
+
def SetMessageQueue(request)
|
1576
|
+
body = send_request('SetMessageQueue', request.serialize)
|
1577
|
+
response = JSON.parse(body)
|
1578
|
+
if response['Response'].key?('Error') == false
|
1579
|
+
model = SetMessageQueueResponse.new
|
1580
|
+
model.deserialize(response['Response'])
|
1581
|
+
model
|
1582
|
+
else
|
1583
|
+
code = response['Response']['Error']['Code']
|
1584
|
+
message = response['Response']['Error']['Message']
|
1585
|
+
reqid = response['Response']['RequestId']
|
1586
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1587
|
+
end
|
1588
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1589
|
+
raise e
|
1590
|
+
rescue StandardError => e
|
1591
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
# 本接口(UpgradeDevice)用于对设备进行固件升级。
|
1595
|
+
# 该接口向指定的设备下发固件更新指令,可将固件升级到任意版本(可实现固件降级)。
|
1596
|
+
# 警告:使能UpgradeNow参数存在一定的风险性!建议仅在debug场景下使用!
|
1597
|
+
|
1598
|
+
# @param request: Request instance for UpgradeDevice.
|
1599
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::UpgradeDeviceRequest`
|
1600
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::UpgradeDeviceResponse`
|
1601
|
+
def UpgradeDevice(request)
|
1602
|
+
body = send_request('UpgradeDevice', request.serialize)
|
1603
|
+
response = JSON.parse(body)
|
1604
|
+
if response['Response'].key?('Error') == false
|
1605
|
+
model = UpgradeDeviceResponse.new
|
1606
|
+
model.deserialize(response['Response'])
|
1607
|
+
model
|
1608
|
+
else
|
1609
|
+
code = response['Response']['Error']['Code']
|
1610
|
+
message = response['Response']['Error']['Message']
|
1611
|
+
reqid = response['Response']['RequestId']
|
1612
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1613
|
+
end
|
1614
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1615
|
+
raise e
|
1616
|
+
rescue StandardError => e
|
1617
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
# 本接口(UploadOtaVersion)接收上传到控制台的固件版本信息。
|
1621
|
+
|
1622
|
+
# @param request: Request instance for UploadOtaVersion.
|
1623
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::UploadOtaVersionRequest`
|
1624
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::UploadOtaVersionResponse`
|
1625
|
+
def UploadOtaVersion(request)
|
1626
|
+
body = send_request('UploadOtaVersion', request.serialize)
|
1627
|
+
response = JSON.parse(body)
|
1628
|
+
if response['Response'].key?('Error') == false
|
1629
|
+
model = UploadOtaVersionResponse.new
|
1630
|
+
model.deserialize(response['Response'])
|
1631
|
+
model
|
1632
|
+
else
|
1633
|
+
code = response['Response']['Error']['Code']
|
1634
|
+
message = response['Response']['Error']['Message']
|
1635
|
+
reqid = response['Response']['RequestId']
|
1636
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1637
|
+
end
|
1638
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1639
|
+
raise e
|
1640
|
+
rescue StandardError => e
|
1641
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
|
1645
|
+
end
|
1646
|
+
end
|
1647
|
+
end
|
1648
|
+
end
|