tencentcloud-sdk-iotvideo 1.0.354 → 1.0.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211125/client.rb +48 -0
- data/lib/v20211125/models.rb +203 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c22a6b5e6718632bcf3737f2e18683c6429102d
|
4
|
+
data.tar.gz: 5eb02b7d63c5b4f2e368fd09f6d949d2cc1fce42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea8cd68658e02fb1730000388267cad8977cf94656770c2290b8c669455c07c989faabc405bb5e51efefef880c919e458c3c94485a764612fdf3c0e2521d793e
|
7
|
+
data.tar.gz: 0dc125f0326e8dc69db2ad07922fa75e930288e3210a66dec44e06f3f557ad5487fc25d878217510af29debcd48411ff4a167fb564ac50a5a85ac10ea9f24867
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.355
|
data/lib/v20211125/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 创建产品
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateProduct.
|
83
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20211125::CreateProductRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20211125::CreateProductResponse`
|
85
|
+
def CreateProduct(request)
|
86
|
+
body = send_request('CreateProduct', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateProductResponse.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
|
+
|
80
104
|
# 查询设备数据统计
|
81
105
|
|
82
106
|
# @param request: Request instance for DescribeDeviceDataStats.
|
@@ -125,6 +149,30 @@ module TencentCloud
|
|
125
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
150
|
end
|
127
151
|
|
152
|
+
# 获取设备的绑定签名
|
153
|
+
|
154
|
+
# @param request: Request instance for GenSingleDeviceSignatureOfPublic.
|
155
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20211125::GenSingleDeviceSignatureOfPublicRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20211125::GenSingleDeviceSignatureOfPublicResponse`
|
157
|
+
def GenSingleDeviceSignatureOfPublic(request)
|
158
|
+
body = send_request('GenSingleDeviceSignatureOfPublic', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = GenSingleDeviceSignatureOfPublicResponse.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
|
+
|
128
176
|
|
129
177
|
end
|
130
178
|
end
|
data/lib/v20211125/models.rb
CHANGED
@@ -130,6 +130,81 @@ module TencentCloud
|
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
|
+
# CreateProduct请求参数结构体
|
134
|
+
class CreateProductRequest < TencentCloud::Common::AbstractModel
|
135
|
+
# @param ProductName: 产品名称
|
136
|
+
# @type ProductName: String
|
137
|
+
# @param DeviceType: 产品设备类型 1.普通设备 2.NVR设备
|
138
|
+
# @type DeviceType: Integer
|
139
|
+
# @param ProductVaildYears: 产品有效期
|
140
|
+
# @type ProductVaildYears: Integer
|
141
|
+
# @param Features: 设备功能码 ypsxth音频双向通话 spdxth视频单向通话 sxysp双向音视频
|
142
|
+
# @type Features: Array
|
143
|
+
# @param ChipOs: 设备操作系统,通用设备填default
|
144
|
+
# @type ChipOs: String
|
145
|
+
# @param ChipManufactureId: 芯片厂商id,通用设备填default
|
146
|
+
# @type ChipManufactureId: String
|
147
|
+
# @param ChipId: 芯片id,通用设备填default
|
148
|
+
# @type ChipId: String
|
149
|
+
# @param ProductDescription: 产品描述信息
|
150
|
+
# @type ProductDescription: String
|
151
|
+
# @param EncryptionType: 认证方式 只支持取值为2 psk认证
|
152
|
+
# @type EncryptionType: Integer
|
153
|
+
# @param NetType: 连接类型,wifi表示WIFI连接,cellular表示4G连接
|
154
|
+
# @type NetType: String
|
155
|
+
|
156
|
+
attr_accessor :ProductName, :DeviceType, :ProductVaildYears, :Features, :ChipOs, :ChipManufactureId, :ChipId, :ProductDescription, :EncryptionType, :NetType
|
157
|
+
|
158
|
+
def initialize(productname=nil, devicetype=nil, productvaildyears=nil, features=nil, chipos=nil, chipmanufactureid=nil, chipid=nil, productdescription=nil, encryptiontype=nil, nettype=nil)
|
159
|
+
@ProductName = productname
|
160
|
+
@DeviceType = devicetype
|
161
|
+
@ProductVaildYears = productvaildyears
|
162
|
+
@Features = features
|
163
|
+
@ChipOs = chipos
|
164
|
+
@ChipManufactureId = chipmanufactureid
|
165
|
+
@ChipId = chipid
|
166
|
+
@ProductDescription = productdescription
|
167
|
+
@EncryptionType = encryptiontype
|
168
|
+
@NetType = nettype
|
169
|
+
end
|
170
|
+
|
171
|
+
def deserialize(params)
|
172
|
+
@ProductName = params['ProductName']
|
173
|
+
@DeviceType = params['DeviceType']
|
174
|
+
@ProductVaildYears = params['ProductVaildYears']
|
175
|
+
@Features = params['Features']
|
176
|
+
@ChipOs = params['ChipOs']
|
177
|
+
@ChipManufactureId = params['ChipManufactureId']
|
178
|
+
@ChipId = params['ChipId']
|
179
|
+
@ProductDescription = params['ProductDescription']
|
180
|
+
@EncryptionType = params['EncryptionType']
|
181
|
+
@NetType = params['NetType']
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# CreateProduct返回参数结构体
|
186
|
+
class CreateProductResponse < TencentCloud::Common::AbstractModel
|
187
|
+
# @param Data: 产品详情
|
188
|
+
# @type Data: :class:`Tencentcloud::Iotvideo.v20211125.models.VideoProduct`
|
189
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
190
|
+
# @type RequestId: String
|
191
|
+
|
192
|
+
attr_accessor :Data, :RequestId
|
193
|
+
|
194
|
+
def initialize(data=nil, requestid=nil)
|
195
|
+
@Data = data
|
196
|
+
@RequestId = requestid
|
197
|
+
end
|
198
|
+
|
199
|
+
def deserialize(params)
|
200
|
+
unless params['Data'].nil?
|
201
|
+
@Data = VideoProduct.new
|
202
|
+
@Data.deserialize(params['Data'])
|
203
|
+
end
|
204
|
+
@RequestId = params['RequestId']
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
133
208
|
# DescribeDeviceDataStats请求参数结构体
|
134
209
|
class DescribeDeviceDataStatsRequest < TencentCloud::Common::AbstractModel
|
135
210
|
# @param StartDate: 开始日期
|
@@ -280,6 +355,73 @@ module TencentCloud
|
|
280
355
|
end
|
281
356
|
end
|
282
357
|
|
358
|
+
# 设备签名信息
|
359
|
+
class DeviceSignatureInfo < TencentCloud::Common::AbstractModel
|
360
|
+
# @param DeviceName: 设备名称
|
361
|
+
# @type DeviceName: String
|
362
|
+
# @param DeviceSignature: 设备签名
|
363
|
+
# @type DeviceSignature: String
|
364
|
+
|
365
|
+
attr_accessor :DeviceName, :DeviceSignature
|
366
|
+
|
367
|
+
def initialize(devicename=nil, devicesignature=nil)
|
368
|
+
@DeviceName = devicename
|
369
|
+
@DeviceSignature = devicesignature
|
370
|
+
end
|
371
|
+
|
372
|
+
def deserialize(params)
|
373
|
+
@DeviceName = params['DeviceName']
|
374
|
+
@DeviceSignature = params['DeviceSignature']
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
# GenSingleDeviceSignatureOfPublic请求参数结构体
|
379
|
+
class GenSingleDeviceSignatureOfPublicRequest < TencentCloud::Common::AbstractModel
|
380
|
+
# @param ProductId: 设备所属的产品ID
|
381
|
+
# @type ProductId: String
|
382
|
+
# @param DeviceName: 需要绑定的设备
|
383
|
+
# @type DeviceName: String
|
384
|
+
# @param Expire: 设备绑定签名的有效时间,以秒为单位。取值范围:0 < Expire <= 86400,Expire == -1(十年)
|
385
|
+
# @type Expire: Integer
|
386
|
+
|
387
|
+
attr_accessor :ProductId, :DeviceName, :Expire
|
388
|
+
|
389
|
+
def initialize(productid=nil, devicename=nil, expire=nil)
|
390
|
+
@ProductId = productid
|
391
|
+
@DeviceName = devicename
|
392
|
+
@Expire = expire
|
393
|
+
end
|
394
|
+
|
395
|
+
def deserialize(params)
|
396
|
+
@ProductId = params['ProductId']
|
397
|
+
@DeviceName = params['DeviceName']
|
398
|
+
@Expire = params['Expire']
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# GenSingleDeviceSignatureOfPublic返回参数结构体
|
403
|
+
class GenSingleDeviceSignatureOfPublicResponse < TencentCloud::Common::AbstractModel
|
404
|
+
# @param DeviceSignature: 设备签名信息
|
405
|
+
# @type DeviceSignature: :class:`Tencentcloud::Iotvideo.v20211125.models.DeviceSignatureInfo`
|
406
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
407
|
+
# @type RequestId: String
|
408
|
+
|
409
|
+
attr_accessor :DeviceSignature, :RequestId
|
410
|
+
|
411
|
+
def initialize(devicesignature=nil, requestid=nil)
|
412
|
+
@DeviceSignature = devicesignature
|
413
|
+
@RequestId = requestid
|
414
|
+
end
|
415
|
+
|
416
|
+
def deserialize(params)
|
417
|
+
unless params['DeviceSignature'].nil?
|
418
|
+
@DeviceSignature = DeviceSignatureInfo.new
|
419
|
+
@DeviceSignature.deserialize(params['DeviceSignature'])
|
420
|
+
end
|
421
|
+
@RequestId = params['RequestId']
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
283
425
|
# 消息数量统计
|
284
426
|
class MessageCntStats < TencentCloud::Common::AbstractModel
|
285
427
|
# @param Date: 统计日期
|
@@ -311,6 +453,67 @@ module TencentCloud
|
|
311
453
|
end
|
312
454
|
end
|
313
455
|
|
456
|
+
# video产品元数据
|
457
|
+
class VideoProduct < TencentCloud::Common::AbstractModel
|
458
|
+
# @param ProductId: 产品ID
|
459
|
+
# @type ProductId: String
|
460
|
+
# @param ProductName: 产品名称
|
461
|
+
# @type ProductName: String
|
462
|
+
# @param DeviceType: 产品设备类型(普通设备) 1.普通设备
|
463
|
+
# @type DeviceType: Integer
|
464
|
+
# @param EncryptionType: 认证方式:2:PSK
|
465
|
+
# @type EncryptionType: Integer
|
466
|
+
# @param Features: 设备功能码
|
467
|
+
# @type Features: Array
|
468
|
+
# @param ChipOs: 操作系统
|
469
|
+
# @type ChipOs: String
|
470
|
+
# @param ChipManufactureId: 芯片厂商id
|
471
|
+
# @type ChipManufactureId: String
|
472
|
+
# @param ChipId: 芯片id
|
473
|
+
# @type ChipId: String
|
474
|
+
# @param ProductDescription: 产品描述信息
|
475
|
+
# @type ProductDescription: String
|
476
|
+
# @param CreateTime: 创建时间unix时间戳
|
477
|
+
# @type CreateTime: Integer
|
478
|
+
# @param UpdateTime: 修改时间unix时间戳
|
479
|
+
# @type UpdateTime: Integer
|
480
|
+
# @param NetType: 连接类型,wifi表示WIFI连接,cellular表示4G连接
|
481
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
482
|
+
# @type NetType: String
|
483
|
+
|
484
|
+
attr_accessor :ProductId, :ProductName, :DeviceType, :EncryptionType, :Features, :ChipOs, :ChipManufactureId, :ChipId, :ProductDescription, :CreateTime, :UpdateTime, :NetType
|
485
|
+
|
486
|
+
def initialize(productid=nil, productname=nil, devicetype=nil, encryptiontype=nil, features=nil, chipos=nil, chipmanufactureid=nil, chipid=nil, productdescription=nil, createtime=nil, updatetime=nil, nettype=nil)
|
487
|
+
@ProductId = productid
|
488
|
+
@ProductName = productname
|
489
|
+
@DeviceType = devicetype
|
490
|
+
@EncryptionType = encryptiontype
|
491
|
+
@Features = features
|
492
|
+
@ChipOs = chipos
|
493
|
+
@ChipManufactureId = chipmanufactureid
|
494
|
+
@ChipId = chipid
|
495
|
+
@ProductDescription = productdescription
|
496
|
+
@CreateTime = createtime
|
497
|
+
@UpdateTime = updatetime
|
498
|
+
@NetType = nettype
|
499
|
+
end
|
500
|
+
|
501
|
+
def deserialize(params)
|
502
|
+
@ProductId = params['ProductId']
|
503
|
+
@ProductName = params['ProductName']
|
504
|
+
@DeviceType = params['DeviceType']
|
505
|
+
@EncryptionType = params['EncryptionType']
|
506
|
+
@Features = params['Features']
|
507
|
+
@ChipOs = params['ChipOs']
|
508
|
+
@ChipManufactureId = params['ChipManufactureId']
|
509
|
+
@ChipId = params['ChipId']
|
510
|
+
@ProductDescription = params['ProductDescription']
|
511
|
+
@CreateTime = params['CreateTime']
|
512
|
+
@UpdateTime = params['UpdateTime']
|
513
|
+
@NetType = params['NetType']
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
314
517
|
end
|
315
518
|
end
|
316
519
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-iotvideo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.355
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|