tencentcloud-sdk-iotvideo 3.0.620 → 3.0.622
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211125/client.rb +48 -0
- data/lib/v20211125/models.rb +157 -2
- 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: dc040e5d6f4cb8e267d3e4a9e19be9a27a501237
|
4
|
+
data.tar.gz: fd7a329f26a79778c40c2122fbfe90e3387b7157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 413ec6837543f4aa33809e14ab55e60b036fa1abd219d63d9ae26de699d9ac06a2f0437fae2967afaf80e00462b3aba22b9a593a2cf98c1f173350c305bd0a79
|
7
|
+
data.tar.gz: 8bc60068bd1b6c2072175498e876f537c91f0ebcfadbd10654e636a4df5330bd655cda1f65c389f75b8e1a5fa37e787a43a27ecec109d0b027462e0ce13edf80
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.622
|
data/lib/v20211125/client.rb
CHANGED
@@ -461,6 +461,30 @@ module TencentCloud
|
|
461
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
462
|
end
|
463
463
|
|
464
|
+
# 删除云存事件
|
465
|
+
|
466
|
+
# @param request: Request instance for DeleteCloudStorageEvent.
|
467
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20211125::DeleteCloudStorageEventRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20211125::DeleteCloudStorageEventResponse`
|
469
|
+
def DeleteCloudStorageEvent(request)
|
470
|
+
body = send_request('DeleteCloudStorageEvent', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = DeleteCloudStorageEventResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
464
488
|
# 删除设备
|
465
489
|
|
466
490
|
# @param request: Request instance for DeleteDevice.
|
@@ -1229,6 +1253,30 @@ module TencentCloud
|
|
1229
1253
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
1254
|
end
|
1231
1255
|
|
1256
|
+
# 根据设备信息拉取有效套餐列表
|
1257
|
+
|
1258
|
+
# @param request: Request instance for DescribeDevicePackages.
|
1259
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20211125::DescribeDevicePackagesRequest`
|
1260
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20211125::DescribeDevicePackagesResponse`
|
1261
|
+
def DescribeDevicePackages(request)
|
1262
|
+
body = send_request('DescribeDevicePackages', request.serialize)
|
1263
|
+
response = JSON.parse(body)
|
1264
|
+
if response['Response'].key?('Error') == false
|
1265
|
+
model = DescribeDevicePackagesResponse.new
|
1266
|
+
model.deserialize(response['Response'])
|
1267
|
+
model
|
1268
|
+
else
|
1269
|
+
code = response['Response']['Error']['Code']
|
1270
|
+
message = response['Response']['Error']['Message']
|
1271
|
+
reqid = response['Response']['RequestId']
|
1272
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1273
|
+
end
|
1274
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1275
|
+
raise e
|
1276
|
+
rescue StandardError => e
|
1277
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
|
+
end
|
1279
|
+
|
1232
1280
|
# 获取设备上下线日志
|
1233
1281
|
|
1234
1282
|
# @param request: Request instance for DescribeDeviceStatusLog.
|
data/lib/v20211125/models.rb
CHANGED
@@ -1363,6 +1363,58 @@ module TencentCloud
|
|
1363
1363
|
end
|
1364
1364
|
end
|
1365
1365
|
|
1366
|
+
# DeleteCloudStorageEvent请求参数结构体
|
1367
|
+
class DeleteCloudStorageEventRequest < TencentCloud::Common::AbstractModel
|
1368
|
+
# @param ProductId: 产品ID
|
1369
|
+
# @type ProductId: String
|
1370
|
+
# @param DeviceName: 设备名称
|
1371
|
+
# @type DeviceName: String
|
1372
|
+
# @param EventId: 事件id
|
1373
|
+
# @type EventId: String
|
1374
|
+
# @param StartTime: 开始时间,unix时间
|
1375
|
+
# @type StartTime: Integer
|
1376
|
+
# @param EndTime: 结束时间,unix时间
|
1377
|
+
# @type EndTime: Integer
|
1378
|
+
# @param UserId: 用户ID
|
1379
|
+
# @type UserId: String
|
1380
|
+
|
1381
|
+
attr_accessor :ProductId, :DeviceName, :EventId, :StartTime, :EndTime, :UserId
|
1382
|
+
|
1383
|
+
def initialize(productid=nil, devicename=nil, eventid=nil, starttime=nil, endtime=nil, userid=nil)
|
1384
|
+
@ProductId = productid
|
1385
|
+
@DeviceName = devicename
|
1386
|
+
@EventId = eventid
|
1387
|
+
@StartTime = starttime
|
1388
|
+
@EndTime = endtime
|
1389
|
+
@UserId = userid
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
def deserialize(params)
|
1393
|
+
@ProductId = params['ProductId']
|
1394
|
+
@DeviceName = params['DeviceName']
|
1395
|
+
@EventId = params['EventId']
|
1396
|
+
@StartTime = params['StartTime']
|
1397
|
+
@EndTime = params['EndTime']
|
1398
|
+
@UserId = params['UserId']
|
1399
|
+
end
|
1400
|
+
end
|
1401
|
+
|
1402
|
+
# DeleteCloudStorageEvent返回参数结构体
|
1403
|
+
class DeleteCloudStorageEventResponse < TencentCloud::Common::AbstractModel
|
1404
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1405
|
+
# @type RequestId: String
|
1406
|
+
|
1407
|
+
attr_accessor :RequestId
|
1408
|
+
|
1409
|
+
def initialize(requestid=nil)
|
1410
|
+
@RequestId = requestid
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
def deserialize(params)
|
1414
|
+
@RequestId = params['RequestId']
|
1415
|
+
end
|
1416
|
+
end
|
1417
|
+
|
1366
1418
|
# DeleteDevice请求参数结构体
|
1367
1419
|
class DeleteDeviceRequest < TencentCloud::Common::AbstractModel
|
1368
1420
|
# @param ProductId: 产品ID。
|
@@ -2451,18 +2503,22 @@ module TencentCloud
|
|
2451
2503
|
class DescribeCloudStorageThumbnailResponse < TencentCloud::Common::AbstractModel
|
2452
2504
|
# @param ThumbnailURL: 缩略图访问地址
|
2453
2505
|
# @type ThumbnailURL: String
|
2506
|
+
# @param ExpireTime: 缩略图访问地址的过期时间
|
2507
|
+
# @type ExpireTime: Integer
|
2454
2508
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2455
2509
|
# @type RequestId: String
|
2456
2510
|
|
2457
|
-
attr_accessor :ThumbnailURL, :RequestId
|
2511
|
+
attr_accessor :ThumbnailURL, :ExpireTime, :RequestId
|
2458
2512
|
|
2459
|
-
def initialize(thumbnailurl=nil, requestid=nil)
|
2513
|
+
def initialize(thumbnailurl=nil, expiretime=nil, requestid=nil)
|
2460
2514
|
@ThumbnailURL = thumbnailurl
|
2515
|
+
@ExpireTime = expiretime
|
2461
2516
|
@RequestId = requestid
|
2462
2517
|
end
|
2463
2518
|
|
2464
2519
|
def deserialize(params)
|
2465
2520
|
@ThumbnailURL = params['ThumbnailURL']
|
2521
|
+
@ExpireTime = params['ExpireTime']
|
2466
2522
|
@RequestId = params['RequestId']
|
2467
2523
|
end
|
2468
2524
|
end
|
@@ -3058,6 +3114,66 @@ module TencentCloud
|
|
3058
3114
|
end
|
3059
3115
|
end
|
3060
3116
|
|
3117
|
+
# DescribeDevicePackages请求参数结构体
|
3118
|
+
class DescribeDevicePackagesRequest < TencentCloud::Common::AbstractModel
|
3119
|
+
# @param ProductId: 产品ID
|
3120
|
+
# @type ProductId: String
|
3121
|
+
# @param DeviceName: 设备名称
|
3122
|
+
# @type DeviceName: String
|
3123
|
+
# @param Limit: 分页拉取数量
|
3124
|
+
# @type Limit: Integer
|
3125
|
+
# @param Offset: 分页拉取偏移
|
3126
|
+
# @type Offset: Integer
|
3127
|
+
|
3128
|
+
attr_accessor :ProductId, :DeviceName, :Limit, :Offset
|
3129
|
+
|
3130
|
+
def initialize(productid=nil, devicename=nil, limit=nil, offset=nil)
|
3131
|
+
@ProductId = productid
|
3132
|
+
@DeviceName = devicename
|
3133
|
+
@Limit = limit
|
3134
|
+
@Offset = offset
|
3135
|
+
end
|
3136
|
+
|
3137
|
+
def deserialize(params)
|
3138
|
+
@ProductId = params['ProductId']
|
3139
|
+
@DeviceName = params['DeviceName']
|
3140
|
+
@Limit = params['Limit']
|
3141
|
+
@Offset = params['Offset']
|
3142
|
+
end
|
3143
|
+
end
|
3144
|
+
|
3145
|
+
# DescribeDevicePackages返回参数结构体
|
3146
|
+
class DescribeDevicePackagesResponse < TencentCloud::Common::AbstractModel
|
3147
|
+
# @param TotalCount: 有效云存套餐数量
|
3148
|
+
# @type TotalCount: Integer
|
3149
|
+
# @param Packages: 有效云存套餐列表
|
3150
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3151
|
+
# @type Packages: Array
|
3152
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3153
|
+
# @type RequestId: String
|
3154
|
+
|
3155
|
+
attr_accessor :TotalCount, :Packages, :RequestId
|
3156
|
+
|
3157
|
+
def initialize(totalcount=nil, packages=nil, requestid=nil)
|
3158
|
+
@TotalCount = totalcount
|
3159
|
+
@Packages = packages
|
3160
|
+
@RequestId = requestid
|
3161
|
+
end
|
3162
|
+
|
3163
|
+
def deserialize(params)
|
3164
|
+
@TotalCount = params['TotalCount']
|
3165
|
+
unless params['Packages'].nil?
|
3166
|
+
@Packages = []
|
3167
|
+
params['Packages'].each do |i|
|
3168
|
+
packageinfo_tmp = PackageInfo.new
|
3169
|
+
packageinfo_tmp.deserialize(i)
|
3170
|
+
@Packages << packageinfo_tmp
|
3171
|
+
end
|
3172
|
+
end
|
3173
|
+
@RequestId = params['RequestId']
|
3174
|
+
end
|
3175
|
+
end
|
3176
|
+
|
3061
3177
|
# DescribeDevice请求参数结构体
|
3062
3178
|
class DescribeDeviceRequest < TencentCloud::Common::AbstractModel
|
3063
3179
|
# @param ProductId: 产品ID
|
@@ -5425,6 +5541,45 @@ module TencentCloud
|
|
5425
5541
|
end
|
5426
5542
|
end
|
5427
5543
|
|
5544
|
+
# 结构体(PackageInfo)记录了设备拥有的有效套餐信息,包括云存开启状态、云存类型、云存回看时长、云存套餐过期时间
|
5545
|
+
class PackageInfo < TencentCloud::Common::AbstractModel
|
5546
|
+
# @param Status: 云存开启状态,0为未开启,2为正在生效,1为已过期
|
5547
|
+
# 注:这里只返回状态为0的数据
|
5548
|
+
# @type Status: Integer
|
5549
|
+
# @param CSType: 云存类型,1为全时云存,2为事件云存
|
5550
|
+
# @type CSType: Integer
|
5551
|
+
# @param CSShiftDuration: 云存回看时长
|
5552
|
+
# @type CSShiftDuration: Integer
|
5553
|
+
# @param CSExpiredTime: 云存套餐过期时间
|
5554
|
+
# @type CSExpiredTime: Integer
|
5555
|
+
# @param CreatedAt: 云存套餐创建时间
|
5556
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5557
|
+
# @type CreatedAt: Integer
|
5558
|
+
# @param UpdatedAt: 云存套餐更新时间
|
5559
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5560
|
+
# @type UpdatedAt: Integer
|
5561
|
+
|
5562
|
+
attr_accessor :Status, :CSType, :CSShiftDuration, :CSExpiredTime, :CreatedAt, :UpdatedAt
|
5563
|
+
|
5564
|
+
def initialize(status=nil, cstype=nil, csshiftduration=nil, csexpiredtime=nil, createdat=nil, updatedat=nil)
|
5565
|
+
@Status = status
|
5566
|
+
@CSType = cstype
|
5567
|
+
@CSShiftDuration = csshiftduration
|
5568
|
+
@CSExpiredTime = csexpiredtime
|
5569
|
+
@CreatedAt = createdat
|
5570
|
+
@UpdatedAt = updatedat
|
5571
|
+
end
|
5572
|
+
|
5573
|
+
def deserialize(params)
|
5574
|
+
@Status = params['Status']
|
5575
|
+
@CSType = params['CSType']
|
5576
|
+
@CSShiftDuration = params['CSShiftDuration']
|
5577
|
+
@CSExpiredTime = params['CSExpiredTime']
|
5578
|
+
@CreatedAt = params['CreatedAt']
|
5579
|
+
@UpdatedAt = params['UpdatedAt']
|
5580
|
+
end
|
5581
|
+
end
|
5582
|
+
|
5428
5583
|
# 产品模型定义
|
5429
5584
|
class ProductModelDefinition < TencentCloud::Common::AbstractModel
|
5430
5585
|
# @param ProductId: 产品ID
|
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: 3.0.
|
4
|
+
version: 3.0.622
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|