tencentcloud-sdk-iotvideo 3.0.933 → 3.0.934

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: 89c0f0d1c098a68397b99200c34f148ddb1adfe6
4
- data.tar.gz: 0cdd04d1d1f8a54d18845d01c9c9ef61269183da
3
+ metadata.gz: bce27f951715d4c6c99663368812bb0bc485b11f
4
+ data.tar.gz: f5dfa4a660ce8955a2ff1caa3ba564083b75718d
5
5
  SHA512:
6
- metadata.gz: 74a4da22cad668833643fcdf27909c97f32feac260150f026ff6321aee82dedf088068e360dc048c3f0db8136daccd61a452c4e319ca47e1c8e6503d566eb42c
7
- data.tar.gz: 9e2a505eb5a565408f4b1a80a3347f5c9e65ff2225fb037ab5d4c4338b1a65f74f820dc90dca28ddc3889c17de594469d78b2c96b01422cfc55e7d1f58179ca5
6
+ metadata.gz: 9196873c24383e61cbaddb028d16791f3919bfc1c0975932ab63043376acf98c50f910c278632ac3de3bcd82856b595ae2e3d15f9cd2c0e7b2957baee0a2e596
7
+ data.tar.gz: 16f6bd2df64079eb24dbea3013fa081c0baeb69fed02d4bf7d6996bb58e62fc46d332d9baa3d5d8d7d453e328bdeb87d795b0c2748b7b2b1d9e47a5850a22582
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.933
1
+ 3.0.934
@@ -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.
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-iotvideo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.933
4
+ version: 3.0.934
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud