tencentcloud-sdk-iotvideo 3.0.933 → 3.0.935
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/v20191126/client.rb +48 -0
- data/lib/v20191126/models.rb +184 -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: 7bb4ca40fcd13d2dde6e976fee0917f77a15685a
|
4
|
+
data.tar.gz: 0191ef8c12be04c44292837a0a029888f7dfc7a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b697b27c4526d3866c65080a49cbbcb4c2c485fd8991555c51ee6fa6eee56ee0a4ce9e73a73006da38df67848287bda30fa4f22dae5437a97414540c0b03028
|
7
|
+
data.tar.gz: dd437da860a10a05fdbf90ead5fb4585f1411843c9c6093859a5df7a559190acf929fe2311be253bbfbcc217b58215e93c29f4a3fe0ecd4002e03676bc40d276
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.935
|
data/lib/v20191126/client.rb
CHANGED
@@ -371,6 +371,30 @@ module TencentCloud
|
|
371
371
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
372
372
|
end
|
373
373
|
|
374
|
+
# 设备申请cos上传证书
|
375
|
+
|
376
|
+
# @param request: Request instance for CreateUploadTest.
|
377
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::CreateUploadTestRequest`
|
378
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::CreateUploadTestResponse`
|
379
|
+
def CreateUploadTest(request)
|
380
|
+
body = send_request('CreateUploadTest', request.serialize)
|
381
|
+
response = JSON.parse(body)
|
382
|
+
if response['Response'].key?('Error') == false
|
383
|
+
model = CreateUploadTestResponse.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
|
+
|
374
398
|
# 本接口(CreateUsrToken)用于终端用户获取IoT Video平台的accessToken,初始化SDK,连接到IoT Video接入服务器。
|
375
399
|
|
376
400
|
# @param request: Request instance for CreateUsrToken.
|
@@ -1420,6 +1444,30 @@ module TencentCloud
|
|
1420
1444
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1421
1445
|
end
|
1422
1446
|
|
1447
|
+
# 设备刷新cos上传证书
|
1448
|
+
|
1449
|
+
# @param request: Request instance for RenewUploadTest.
|
1450
|
+
# @type request: :class:`Tencentcloud::iotvideo::V20191126::RenewUploadTestRequest`
|
1451
|
+
# @rtype: :class:`Tencentcloud::iotvideo::V20191126::RenewUploadTestResponse`
|
1452
|
+
def RenewUploadTest(request)
|
1453
|
+
body = send_request('RenewUploadTest', request.serialize)
|
1454
|
+
response = JSON.parse(body)
|
1455
|
+
if response['Response'].key?('Error') == false
|
1456
|
+
model = RenewUploadTestResponse.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
|
+
|
1423
1471
|
# 本接口(RunDevice)用于启用设备,可进行批量操作,每次操作最多100台设备。
|
1424
1472
|
|
1425
1473
|
# @param request: Request instance for RunDevice.
|
data/lib/v20191126/models.rb
CHANGED
@@ -66,6 +66,38 @@ module TencentCloud
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
+
# 证书信息
|
70
|
+
class CertificateInfo < TencentCloud::Common::AbstractModel
|
71
|
+
# @param SecretId: SecretId
|
72
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
73
|
+
# @type SecretId: String
|
74
|
+
# @param SecretKey: SecretKey
|
75
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
76
|
+
# @type SecretKey: String
|
77
|
+
# @param Token: Token
|
78
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
79
|
+
# @type Token: String
|
80
|
+
# @param ExpiredTime: 过期时间,UNIX时间戳,单位秒
|
81
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
82
|
+
# @type ExpiredTime: Integer
|
83
|
+
|
84
|
+
attr_accessor :SecretId, :SecretKey, :Token, :ExpiredTime
|
85
|
+
|
86
|
+
def initialize(secretid=nil, secretkey=nil, token=nil, expiredtime=nil)
|
87
|
+
@SecretId = secretid
|
88
|
+
@SecretKey = secretkey
|
89
|
+
@Token = token
|
90
|
+
@ExpiredTime = expiredtime
|
91
|
+
end
|
92
|
+
|
93
|
+
def deserialize(params)
|
94
|
+
@SecretId = params['SecretId']
|
95
|
+
@SecretKey = params['SecretKey']
|
96
|
+
@Token = params['Token']
|
97
|
+
@ExpiredTime = params['ExpiredTime']
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
69
101
|
# ClearDeviceActiveCode请求参数结构体
|
70
102
|
class ClearDeviceActiveCodeRequest < TencentCloud::Common::AbstractModel
|
71
103
|
# @param Tids: 设备TID列表,0<元素数量<=100
|
@@ -130,6 +162,46 @@ module TencentCloud
|
|
130
162
|
end
|
131
163
|
end
|
132
164
|
|
165
|
+
# 申请上传证书回包
|
166
|
+
class CosCertificate < TencentCloud::Common::AbstractModel
|
167
|
+
# @param StorageBucket: cos存储桶
|
168
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
169
|
+
# @type StorageBucket: String
|
170
|
+
# @param StorageRegion: cos存储园区
|
171
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
172
|
+
# @type StorageRegion: String
|
173
|
+
# @param StoragePath: 存储路径,录制场景下该值为存储目录
|
174
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
175
|
+
# @type StoragePath: String
|
176
|
+
# @param TempCertificate: 证书信息
|
177
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
178
|
+
# @type TempCertificate: :class:`Tencentcloud::Iotvideo.v20191126.models.CertificateInfo`
|
179
|
+
# @param SessionKey: SessionKey
|
180
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
181
|
+
# @type SessionKey: String
|
182
|
+
|
183
|
+
attr_accessor :StorageBucket, :StorageRegion, :StoragePath, :TempCertificate, :SessionKey
|
184
|
+
|
185
|
+
def initialize(storagebucket=nil, storageregion=nil, storagepath=nil, tempcertificate=nil, sessionkey=nil)
|
186
|
+
@StorageBucket = storagebucket
|
187
|
+
@StorageRegion = storageregion
|
188
|
+
@StoragePath = storagepath
|
189
|
+
@TempCertificate = tempcertificate
|
190
|
+
@SessionKey = sessionkey
|
191
|
+
end
|
192
|
+
|
193
|
+
def deserialize(params)
|
194
|
+
@StorageBucket = params['StorageBucket']
|
195
|
+
@StorageRegion = params['StorageRegion']
|
196
|
+
@StoragePath = params['StoragePath']
|
197
|
+
unless params['TempCertificate'].nil?
|
198
|
+
@TempCertificate = CertificateInfo.new
|
199
|
+
@TempCertificate.deserialize(params['TempCertificate'])
|
200
|
+
end
|
201
|
+
@SessionKey = params['SessionKey']
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
133
205
|
# CreateAnonymousAccessToken请求参数结构体
|
134
206
|
class CreateAnonymousAccessTokenRequest < TencentCloud::Common::AbstractModel
|
135
207
|
# @param TtlMinutes: Token的TTL(time to alive)分钟数,最大值1440(即24小时)
|
@@ -823,6 +895,50 @@ module TencentCloud
|
|
823
895
|
end
|
824
896
|
end
|
825
897
|
|
898
|
+
# CreateUploadTest请求参数结构体
|
899
|
+
class CreateUploadTestRequest < TencentCloud::Common::AbstractModel
|
900
|
+
# @param PkgId: package ID
|
901
|
+
# @type PkgId: String
|
902
|
+
# @param Tid: 设备TID
|
903
|
+
# @type Tid: String
|
904
|
+
|
905
|
+
attr_accessor :PkgId, :Tid
|
906
|
+
|
907
|
+
def initialize(pkgid=nil, tid=nil)
|
908
|
+
@PkgId = pkgid
|
909
|
+
@Tid = tid
|
910
|
+
end
|
911
|
+
|
912
|
+
def deserialize(params)
|
913
|
+
@PkgId = params['PkgId']
|
914
|
+
@Tid = params['Tid']
|
915
|
+
end
|
916
|
+
end
|
917
|
+
|
918
|
+
# CreateUploadTest返回参数结构体
|
919
|
+
class CreateUploadTestResponse < TencentCloud::Common::AbstractModel
|
920
|
+
# @param Data: 申请设备证书返回的信息
|
921
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
922
|
+
# @type Data: :class:`Tencentcloud::Iotvideo.v20191126.models.CosCertificate`
|
923
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
924
|
+
# @type RequestId: String
|
925
|
+
|
926
|
+
attr_accessor :Data, :RequestId
|
927
|
+
|
928
|
+
def initialize(data=nil, requestid=nil)
|
929
|
+
@Data = data
|
930
|
+
@RequestId = requestid
|
931
|
+
end
|
932
|
+
|
933
|
+
def deserialize(params)
|
934
|
+
unless params['Data'].nil?
|
935
|
+
@Data = CosCertificate.new
|
936
|
+
@Data.deserialize(params['Data'])
|
937
|
+
end
|
938
|
+
@RequestId = params['RequestId']
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
826
942
|
# CreateUsrToken请求参数结构体
|
827
943
|
class CreateUsrTokenRequest < TencentCloud::Common::AbstractModel
|
828
944
|
# @param AccessId: 终端用户在IoT Video上的唯一标识ID
|
@@ -3425,6 +3541,74 @@ module TencentCloud
|
|
3425
3541
|
end
|
3426
3542
|
end
|
3427
3543
|
|
3544
|
+
# 刷新证书信息
|
3545
|
+
class RenewCertificate < TencentCloud::Common::AbstractModel
|
3546
|
+
# @param TempCertificate: 刷新证书信息
|
3547
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3548
|
+
# @type TempCertificate: :class:`Tencentcloud::Iotvideo.v20191126.models.CertificateInfo`
|
3549
|
+
|
3550
|
+
attr_accessor :TempCertificate
|
3551
|
+
|
3552
|
+
def initialize(tempcertificate=nil)
|
3553
|
+
@TempCertificate = tempcertificate
|
3554
|
+
end
|
3555
|
+
|
3556
|
+
def deserialize(params)
|
3557
|
+
unless params['TempCertificate'].nil?
|
3558
|
+
@TempCertificate = CertificateInfo.new
|
3559
|
+
@TempCertificate.deserialize(params['TempCertificate'])
|
3560
|
+
end
|
3561
|
+
end
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
# RenewUploadTest请求参数结构体
|
3565
|
+
class RenewUploadTestRequest < TencentCloud::Common::AbstractModel
|
3566
|
+
# @param PkgId: package ID
|
3567
|
+
# @type PkgId: String
|
3568
|
+
# @param Tid: 设备TID
|
3569
|
+
# @type Tid: String
|
3570
|
+
# @param SessionKey: SessionKeys
|
3571
|
+
# @type SessionKey: String
|
3572
|
+
|
3573
|
+
attr_accessor :PkgId, :Tid, :SessionKey
|
3574
|
+
|
3575
|
+
def initialize(pkgid=nil, tid=nil, sessionkey=nil)
|
3576
|
+
@PkgId = pkgid
|
3577
|
+
@Tid = tid
|
3578
|
+
@SessionKey = sessionkey
|
3579
|
+
end
|
3580
|
+
|
3581
|
+
def deserialize(params)
|
3582
|
+
@PkgId = params['PkgId']
|
3583
|
+
@Tid = params['Tid']
|
3584
|
+
@SessionKey = params['SessionKey']
|
3585
|
+
end
|
3586
|
+
end
|
3587
|
+
|
3588
|
+
# RenewUploadTest返回参数结构体
|
3589
|
+
class RenewUploadTestResponse < TencentCloud::Common::AbstractModel
|
3590
|
+
# @param Data: 刷新证书返回的信息
|
3591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3592
|
+
# @type Data: :class:`Tencentcloud::Iotvideo.v20191126.models.RenewCertificate`
|
3593
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3594
|
+
# @type RequestId: String
|
3595
|
+
|
3596
|
+
attr_accessor :Data, :RequestId
|
3597
|
+
|
3598
|
+
def initialize(data=nil, requestid=nil)
|
3599
|
+
@Data = data
|
3600
|
+
@RequestId = requestid
|
3601
|
+
end
|
3602
|
+
|
3603
|
+
def deserialize(params)
|
3604
|
+
unless params['Data'].nil?
|
3605
|
+
@Data = RenewCertificate.new
|
3606
|
+
@Data.deserialize(params['Data'])
|
3607
|
+
end
|
3608
|
+
@RequestId = params['RequestId']
|
3609
|
+
end
|
3610
|
+
end
|
3611
|
+
|
3428
3612
|
# RunDevice请求参数结构体
|
3429
3613
|
class RunDeviceRequest < TencentCloud::Common::AbstractModel
|
3430
3614
|
# @param Tids: TID列表 ≤100
|
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.935
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|