tencentcloud-sdk-iotvideo 3.0.620 → 3.0.621

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d37a2ee4a902e1b98b4af752a62e34120498c5c
4
- data.tar.gz: f32811e347379a59d641fe3a70d394f91364d513
3
+ metadata.gz: 1fc246dcbb2d55a8837beacecdeed2058b8bc0bb
4
+ data.tar.gz: 40495d7f50a577cdb9db9cb06780d3b2e23d4ee6
5
5
  SHA512:
6
- metadata.gz: c99f1637c58311568d81c14ab5802c9d37cde01b4b9368ab82a70526530010e6dda4667463699ea5e6621958d3694eb2f133ad4450f3f032216a564f02c4989b
7
- data.tar.gz: 01a6432508c708f04b6970f78f131635050758d9a7870b8fec16268fab76f80441319a786bf439eccbd5682c8c76ab32edf410d5d3059b48ff187a4ee7be99bf
6
+ metadata.gz: c4f9a3a2fceac330398eb77f20ff72ffdf0c00fa5f468411784271c747085c7349ec5d34bdeda2b5b1189d24246f193dc147ed4ce2067feee71423a3cf9da1b7
7
+ data.tar.gz: 54159e492e81e86676abc5f113fc932bccd585912550fbd36d7c4b043fb0c0c176601b7ace35d48e98f897c1066ab57f9a2c425cde831d5a1a9edee9c44b6518
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.620
1
+ 3.0.621
@@ -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.
@@ -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,35 @@ 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
+
5556
+ attr_accessor :Status, :CSType, :CSShiftDuration, :CSExpiredTime
5557
+
5558
+ def initialize(status=nil, cstype=nil, csshiftduration=nil, csexpiredtime=nil)
5559
+ @Status = status
5560
+ @CSType = cstype
5561
+ @CSShiftDuration = csshiftduration
5562
+ @CSExpiredTime = csexpiredtime
5563
+ end
5564
+
5565
+ def deserialize(params)
5566
+ @Status = params['Status']
5567
+ @CSType = params['CSType']
5568
+ @CSShiftDuration = params['CSShiftDuration']
5569
+ @CSExpiredTime = params['CSExpiredTime']
5570
+ end
5571
+ end
5572
+
5428
5573
  # 产品模型定义
5429
5574
  class ProductModelDefinition < TencentCloud::Common::AbstractModel
5430
5575
  # @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.620
4
+ version: 3.0.621
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-25 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common