tencentcloud-sdk-trro 3.0.544 → 3.0.546

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: 1829899b4e884933c1decbd12a6c94b49d936409
4
- data.tar.gz: 8a8a53531c0664f877cae2487ba13f5b842bb653
3
+ metadata.gz: c0817afea5fbd498d05c6f205bf796ecc7266755
4
+ data.tar.gz: 9e589f056eea8cd662cb29b1058ed4e3355f9d1c
5
5
  SHA512:
6
- metadata.gz: ec24dee47168107e35e7d784440ff22af4f8f07368ac34fd01f6f4bf89997c99450ef5fde33ff7bf67832ff141de1b7e6eee33ba3475edc8db0ad333c1259721
7
- data.tar.gz: b2eaa51b8d04d084ff3215fd28ca8da72b910540cd514c58dc4573fc2b7073ef001c1d368ea62349653397bdf77caca1fa5206c7f2217b003dd46f132cc264d5
6
+ metadata.gz: 24f0ae51ad04ba6d627066a3fc269d695eb643318e34239d1bd157ca444c6ecbc97a48f370fb793c68fc2a2bc57ec3e9a5dd68eed96fd79812efd795dd784496
7
+ data.tar.gz: 82a542573175e916ed6c0f4df72f8f0c1d972dad3c1cf1de68526c5f45be6c3ea3c51eb411fabfd9b92037fc7de7000fc291db9651ef84bd985965d01a301bb0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.544
1
+ 3.0.546
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 为推流设备绑定license,优先绑定到期时间最近的,到期时间相同优先绑定月包
81
+
82
+ # @param request: Request instance for BoundLicenses.
83
+ # @type request: :class:`Tencentcloud::trro::V20220325::BoundLicensesRequest`
84
+ # @rtype: :class:`Tencentcloud::trro::V20220325::BoundLicensesResponse`
85
+ def BoundLicenses(request)
86
+ body = send_request('BoundLicenses', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = BoundLicensesResponse.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 CreateDevice.
@@ -317,6 +341,30 @@ module TencentCloud
317
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
342
  end
319
343
 
344
+ # 获取最新设备会话列表
345
+
346
+ # @param request: Request instance for DescribeRecentSessionList.
347
+ # @type request: :class:`Tencentcloud::trro::V20220325::DescribeRecentSessionListRequest`
348
+ # @rtype: :class:`Tencentcloud::trro::V20220325::DescribeRecentSessionListResponse`
349
+ def DescribeRecentSessionList(request)
350
+ body = send_request('DescribeRecentSessionList', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DescribeRecentSessionListResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
320
368
  # 获取会话统计值
321
369
 
322
370
  # @param request: Request instance for DescribeSessionStatistics.
@@ -365,6 +413,102 @@ module TencentCloud
365
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
414
  end
367
415
 
416
+ # 获取设备已经绑定的可用授权数量
417
+
418
+ # @param request: Request instance for GetDeviceLicense.
419
+ # @type request: :class:`Tencentcloud::trro::V20220325::GetDeviceLicenseRequest`
420
+ # @rtype: :class:`Tencentcloud::trro::V20220325::GetDeviceLicenseResponse`
421
+ def GetDeviceLicense(request)
422
+ body = send_request('GetDeviceLicense', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = GetDeviceLicenseResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
440
+ # 查询用户设备的授权绑定情况
441
+
442
+ # @param request: Request instance for GetDevices.
443
+ # @type request: :class:`Tencentcloud::trro::V20220325::GetDevicesRequest`
444
+ # @rtype: :class:`Tencentcloud::trro::V20220325::GetDevicesResponse`
445
+ def GetDevices(request)
446
+ body = send_request('GetDevices', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = GetDevicesResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
464
+ # 统计license类型数量
465
+
466
+ # @param request: Request instance for GetLicenseStat.
467
+ # @type request: :class:`Tencentcloud::trro::V20220325::GetLicenseStatRequest`
468
+ # @rtype: :class:`Tencentcloud::trro::V20220325::GetLicenseStatResponse`
469
+ def GetLicenseStat(request)
470
+ body = send_request('GetLicenseStat', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = GetLicenseStatResponse.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
+
488
+ # 按授权查看license列表
489
+
490
+ # @param request: Request instance for GetLicenses.
491
+ # @type request: :class:`Tencentcloud::trro::V20220325::GetLicensesRequest`
492
+ # @rtype: :class:`Tencentcloud::trro::V20220325::GetLicensesResponse`
493
+ def GetLicenses(request)
494
+ body = send_request('GetLicenses', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = GetLicensesResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
368
512
  # 用于修改设备信息
369
513
 
370
514
  # @param request: Request instance for ModifyDevice.
@@ -102,6 +102,46 @@ module TencentCloud
102
102
  end
103
103
  end
104
104
 
105
+ # BoundLicenses请求参数结构体
106
+ class BoundLicensesRequest < TencentCloud::Common::AbstractModel
107
+ # @param Count: license数量
108
+ # @type Count: Integer
109
+ # @param DeviceId: 设备id
110
+ # @type DeviceId: String
111
+ # @param ProjectId: 项目ID
112
+ # @type ProjectId: String
113
+
114
+ attr_accessor :Count, :DeviceId, :ProjectId
115
+
116
+ def initialize(count=nil, deviceid=nil, projectid=nil)
117
+ @Count = count
118
+ @DeviceId = deviceid
119
+ @ProjectId = projectid
120
+ end
121
+
122
+ def deserialize(params)
123
+ @Count = params['Count']
124
+ @DeviceId = params['DeviceId']
125
+ @ProjectId = params['ProjectId']
126
+ end
127
+ end
128
+
129
+ # BoundLicenses返回参数结构体
130
+ class BoundLicensesResponse < TencentCloud::Common::AbstractModel
131
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
132
+ # @type RequestId: String
133
+
134
+ attr_accessor :RequestId
135
+
136
+ def initialize(requestid=nil)
137
+ @RequestId = requestid
138
+ end
139
+
140
+ def deserialize(params)
141
+ @RequestId = params['RequestId']
142
+ end
143
+ end
144
+
105
145
  # CreateDevice请求参数结构体
106
146
  class CreateDeviceRequest < TencentCloud::Common::AbstractModel
107
147
  # @param ProjectId: 创建设备所归属的项目ID
@@ -645,6 +685,77 @@ module TencentCloud
645
685
  end
646
686
  end
647
687
 
688
+ # DescribeRecentSessionList请求参数结构体
689
+ class DescribeRecentSessionListRequest < TencentCloud::Common::AbstractModel
690
+ # @param ProjectId: 项目ID
691
+ # @type ProjectId: String
692
+ # @param PageNumber: 页码,从1开始
693
+ # @type PageNumber: Integer
694
+ # @param PageSize: 每页个数
695
+ # @type PageSize: Integer
696
+ # @param DeviceId: 设备ID,支持过滤远端设备或现场设备
697
+ # @type DeviceId: String
698
+ # @param StartTime: 时间范围的起始时间。时间范围最大为最近两小时,若不传或超出范围,则起始时间按两小时前计算
699
+ # @type StartTime: Integer
700
+ # @param EndTime: 时间范围的结束时间。时间范围最大为最近两小时,若不传或超出范围,则结束时间按当前时间计算
701
+ # @type EndTime: Integer
702
+
703
+ attr_accessor :ProjectId, :PageNumber, :PageSize, :DeviceId, :StartTime, :EndTime
704
+
705
+ def initialize(projectid=nil, pagenumber=nil, pagesize=nil, deviceid=nil, starttime=nil, endtime=nil)
706
+ @ProjectId = projectid
707
+ @PageNumber = pagenumber
708
+ @PageSize = pagesize
709
+ @DeviceId = deviceid
710
+ @StartTime = starttime
711
+ @EndTime = endtime
712
+ end
713
+
714
+ def deserialize(params)
715
+ @ProjectId = params['ProjectId']
716
+ @PageNumber = params['PageNumber']
717
+ @PageSize = params['PageSize']
718
+ @DeviceId = params['DeviceId']
719
+ @StartTime = params['StartTime']
720
+ @EndTime = params['EndTime']
721
+ end
722
+ end
723
+
724
+ # DescribeRecentSessionList返回参数结构体
725
+ class DescribeRecentSessionListResponse < TencentCloud::Common::AbstractModel
726
+ # @param Total: 总个数
727
+ # @type Total: Integer
728
+ # @param RecentSessionList: 会话列表
729
+ # @type RecentSessionList: Array
730
+ # @param Num: 本页数量
731
+ # @type Num: Integer
732
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
733
+ # @type RequestId: String
734
+
735
+ attr_accessor :Total, :RecentSessionList, :Num, :RequestId
736
+
737
+ def initialize(total=nil, recentsessionlist=nil, num=nil, requestid=nil)
738
+ @Total = total
739
+ @RecentSessionList = recentsessionlist
740
+ @Num = num
741
+ @RequestId = requestid
742
+ end
743
+
744
+ def deserialize(params)
745
+ @Total = params['Total']
746
+ unless params['RecentSessionList'].nil?
747
+ @RecentSessionList = []
748
+ params['RecentSessionList'].each do |i|
749
+ recentsessioninfo_tmp = RecentSessionInfo.new
750
+ recentsessioninfo_tmp.deserialize(i)
751
+ @RecentSessionList << recentsessioninfo_tmp
752
+ end
753
+ end
754
+ @Num = params['Num']
755
+ @RequestId = params['RequestId']
756
+ end
757
+ end
758
+
648
759
  # DescribeSessionStatisticsByInterval请求参数结构体
649
760
  class DescribeSessionStatisticsByIntervalRequest < TencentCloud::Common::AbstractModel
650
761
  # @param ProjectId: 项目ID
@@ -768,6 +879,53 @@ module TencentCloud
768
879
  end
769
880
  end
770
881
 
882
+ # 查询用户设备的授权绑定情况
883
+ class Device < TencentCloud::Common::AbstractModel
884
+ # @param DeviceId: 设备ID
885
+ # 注意:此字段可能返回 null,表示取不到有效值。
886
+ # @type DeviceId: String
887
+ # @param DeviceName: 设备名称
888
+ # 注意:此字段可能返回 null,表示取不到有效值。
889
+ # @type DeviceName: String
890
+ # @param LicenseCount: 已经绑定license数量
891
+ # 注意:此字段可能返回 null,表示取不到有效值。
892
+ # @type LicenseCount: Integer
893
+ # @param RemainDay: 剩余天数:天
894
+ # 注意:此字段可能返回 null,表示取不到有效值。
895
+ # @type RemainDay: Integer
896
+ # @param ExpireTime: 过期时间:s
897
+ # 注意:此字段可能返回 null,表示取不到有效值。
898
+ # @type ExpireTime: String
899
+ # @param Duration: 服务时长:s
900
+ # 注意:此字段可能返回 null,表示取不到有效值。
901
+ # @type Duration: String
902
+ # @param LicenseIds: 已经绑定licenseId列表
903
+ # 注意:此字段可能返回 null,表示取不到有效值。
904
+ # @type LicenseIds: Array
905
+
906
+ attr_accessor :DeviceId, :DeviceName, :LicenseCount, :RemainDay, :ExpireTime, :Duration, :LicenseIds
907
+
908
+ def initialize(deviceid=nil, devicename=nil, licensecount=nil, remainday=nil, expiretime=nil, duration=nil, licenseids=nil)
909
+ @DeviceId = deviceid
910
+ @DeviceName = devicename
911
+ @LicenseCount = licensecount
912
+ @RemainDay = remainday
913
+ @ExpireTime = expiretime
914
+ @Duration = duration
915
+ @LicenseIds = licenseids
916
+ end
917
+
918
+ def deserialize(params)
919
+ @DeviceId = params['DeviceId']
920
+ @DeviceName = params['DeviceName']
921
+ @LicenseCount = params['LicenseCount']
922
+ @RemainDay = params['RemainDay']
923
+ @ExpireTime = params['ExpireTime']
924
+ @Duration = params['Duration']
925
+ @LicenseIds = params['LicenseIds']
926
+ end
927
+ end
928
+
771
929
  # 设备信息
772
930
  class DeviceInfo < TencentCloud::Common::AbstractModel
773
931
  # @param DeviceId: 设备ID
@@ -808,6 +966,249 @@ module TencentCloud
808
966
  end
809
967
  end
810
968
 
969
+ # GetDeviceLicense请求参数结构体
970
+ class GetDeviceLicenseRequest < TencentCloud::Common::AbstractModel
971
+ # @param ProjectId: 目标设备所属项目ID
972
+ # @type ProjectId: String
973
+ # @param DeviceId: 目标设备ID
974
+ # @type DeviceId: String
975
+
976
+ attr_accessor :ProjectId, :DeviceId
977
+
978
+ def initialize(projectid=nil, deviceid=nil)
979
+ @ProjectId = projectid
980
+ @DeviceId = deviceid
981
+ end
982
+
983
+ def deserialize(params)
984
+ @ProjectId = params['ProjectId']
985
+ @DeviceId = params['DeviceId']
986
+ end
987
+ end
988
+
989
+ # GetDeviceLicense返回参数结构体
990
+ class GetDeviceLicenseResponse < TencentCloud::Common::AbstractModel
991
+ # @param AvailableCount: 指定设备已经绑定的可用license数量
992
+ # @type AvailableCount: Integer
993
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
994
+ # @type RequestId: String
995
+
996
+ attr_accessor :AvailableCount, :RequestId
997
+
998
+ def initialize(availablecount=nil, requestid=nil)
999
+ @AvailableCount = availablecount
1000
+ @RequestId = requestid
1001
+ end
1002
+
1003
+ def deserialize(params)
1004
+ @AvailableCount = params['AvailableCount']
1005
+ @RequestId = params['RequestId']
1006
+ end
1007
+ end
1008
+
1009
+ # GetDevices请求参数结构体
1010
+ class GetDevicesRequest < TencentCloud::Common::AbstractModel
1011
+ # @param PageNum: 页码
1012
+ # @type PageNum: Integer
1013
+ # @param PageSize: 页面数量
1014
+ # @type PageSize: Integer
1015
+ # @param ProjectId: 项目 ID
1016
+ # @type ProjectId: String
1017
+ # @param DeviceId: 设备ID
1018
+ # @type DeviceId: String
1019
+
1020
+ attr_accessor :PageNum, :PageSize, :ProjectId, :DeviceId
1021
+
1022
+ def initialize(pagenum=nil, pagesize=nil, projectid=nil, deviceid=nil)
1023
+ @PageNum = pagenum
1024
+ @PageSize = pagesize
1025
+ @ProjectId = projectid
1026
+ @DeviceId = deviceid
1027
+ end
1028
+
1029
+ def deserialize(params)
1030
+ @PageNum = params['PageNum']
1031
+ @PageSize = params['PageSize']
1032
+ @ProjectId = params['ProjectId']
1033
+ @DeviceId = params['DeviceId']
1034
+ end
1035
+ end
1036
+
1037
+ # GetDevices返回参数结构体
1038
+ class GetDevicesResponse < TencentCloud::Common::AbstractModel
1039
+ # @param Devices: 设备授权列表
1040
+ # @type Devices: Array
1041
+ # @param TotalCount: 列表数量
1042
+ # @type TotalCount: Integer
1043
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1044
+ # @type RequestId: String
1045
+
1046
+ attr_accessor :Devices, :TotalCount, :RequestId
1047
+
1048
+ def initialize(devices=nil, totalcount=nil, requestid=nil)
1049
+ @Devices = devices
1050
+ @TotalCount = totalcount
1051
+ @RequestId = requestid
1052
+ end
1053
+
1054
+ def deserialize(params)
1055
+ unless params['Devices'].nil?
1056
+ @Devices = []
1057
+ params['Devices'].each do |i|
1058
+ device_tmp = Device.new
1059
+ device_tmp.deserialize(i)
1060
+ @Devices << device_tmp
1061
+ end
1062
+ end
1063
+ @TotalCount = params['TotalCount']
1064
+ @RequestId = params['RequestId']
1065
+ end
1066
+ end
1067
+
1068
+ # GetLicenseStat请求参数结构体
1069
+ class GetLicenseStatRequest < TencentCloud::Common::AbstractModel
1070
+
1071
+
1072
+ def initialize()
1073
+ end
1074
+
1075
+ def deserialize(params)
1076
+ end
1077
+ end
1078
+
1079
+ # GetLicenseStat返回参数结构体
1080
+ class GetLicenseStatResponse < TencentCloud::Common::AbstractModel
1081
+ # @param Valid: 有效授权
1082
+ # @type Valid: Integer
1083
+ # @param Bound: 已绑定授权
1084
+ # @type Bound: Integer
1085
+ # @param UnBound: 未绑定授权
1086
+ # @type UnBound: Integer
1087
+ # @param Expire: 过期授权
1088
+ # @type Expire: Integer
1089
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1090
+ # @type RequestId: String
1091
+
1092
+ attr_accessor :Valid, :Bound, :UnBound, :Expire, :RequestId
1093
+
1094
+ def initialize(valid=nil, bound=nil, unbound=nil, expire=nil, requestid=nil)
1095
+ @Valid = valid
1096
+ @Bound = bound
1097
+ @UnBound = unbound
1098
+ @Expire = expire
1099
+ @RequestId = requestid
1100
+ end
1101
+
1102
+ def deserialize(params)
1103
+ @Valid = params['Valid']
1104
+ @Bound = params['Bound']
1105
+ @UnBound = params['UnBound']
1106
+ @Expire = params['Expire']
1107
+ @RequestId = params['RequestId']
1108
+ end
1109
+ end
1110
+
1111
+ # GetLicenses请求参数结构体
1112
+ class GetLicensesRequest < TencentCloud::Common::AbstractModel
1113
+ # @param PageNum: 页码
1114
+ # @type PageNum: Integer
1115
+ # @param PageSize: 页面数量
1116
+ # @type PageSize: Integer
1117
+ # @param ProjectId: projectId
1118
+ # @type ProjectId: String
1119
+ # @param DeviceId: DeviceId
1120
+ # @type DeviceId: String
1121
+
1122
+ attr_accessor :PageNum, :PageSize, :ProjectId, :DeviceId
1123
+
1124
+ def initialize(pagenum=nil, pagesize=nil, projectid=nil, deviceid=nil)
1125
+ @PageNum = pagenum
1126
+ @PageSize = pagesize
1127
+ @ProjectId = projectid
1128
+ @DeviceId = deviceid
1129
+ end
1130
+
1131
+ def deserialize(params)
1132
+ @PageNum = params['PageNum']
1133
+ @PageSize = params['PageSize']
1134
+ @ProjectId = params['ProjectId']
1135
+ @DeviceId = params['DeviceId']
1136
+ end
1137
+ end
1138
+
1139
+ # GetLicenses返回参数结构体
1140
+ class GetLicensesResponse < TencentCloud::Common::AbstractModel
1141
+ # @param Licenses: license列表
1142
+ # @type Licenses: Array
1143
+ # @param TotalCount: license列表项数量
1144
+ # @type TotalCount: Integer
1145
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1146
+ # @type RequestId: String
1147
+
1148
+ attr_accessor :Licenses, :TotalCount, :RequestId
1149
+
1150
+ def initialize(licenses=nil, totalcount=nil, requestid=nil)
1151
+ @Licenses = licenses
1152
+ @TotalCount = totalcount
1153
+ @RequestId = requestid
1154
+ end
1155
+
1156
+ def deserialize(params)
1157
+ unless params['Licenses'].nil?
1158
+ @Licenses = []
1159
+ params['Licenses'].each do |i|
1160
+ license_tmp = License.new
1161
+ license_tmp.deserialize(i)
1162
+ @Licenses << license_tmp
1163
+ end
1164
+ end
1165
+ @TotalCount = params['TotalCount']
1166
+ @RequestId = params['RequestId']
1167
+ end
1168
+ end
1169
+
1170
+ # 按授权查看的license列表
1171
+ class License < TencentCloud::Common::AbstractModel
1172
+ # @param Count: 该类型的license个数
1173
+ # 注意:此字段可能返回 null,表示取不到有效值。
1174
+ # @type Count: Integer
1175
+ # @param Status: license状态:0:未绑定;1:已绑定;2:已停服;3:已退费
1176
+ # 注意:此字段可能返回 null,表示取不到有效值。
1177
+ # @type Status: Integer
1178
+ # @param ExpireTime: 到期时间戳:s
1179
+ # 注意:此字段可能返回 null,表示取不到有效值。
1180
+ # @type ExpireTime: String
1181
+ # @param Duration: 服务时长:s
1182
+ # 注意:此字段可能返回 null,表示取不到有效值。
1183
+ # @type Duration: String
1184
+ # @param RemainDay: 剩余天数:天
1185
+ # 注意:此字段可能返回 null,表示取不到有效值。
1186
+ # @type RemainDay: Integer
1187
+ # @param LicenseIds: 该类型的licenseId列表
1188
+ # 注意:此字段可能返回 null,表示取不到有效值。
1189
+ # @type LicenseIds: Array
1190
+
1191
+ attr_accessor :Count, :Status, :ExpireTime, :Duration, :RemainDay, :LicenseIds
1192
+
1193
+ def initialize(count=nil, status=nil, expiretime=nil, duration=nil, remainday=nil, licenseids=nil)
1194
+ @Count = count
1195
+ @Status = status
1196
+ @ExpireTime = expiretime
1197
+ @Duration = duration
1198
+ @RemainDay = remainday
1199
+ @LicenseIds = licenseids
1200
+ end
1201
+
1202
+ def deserialize(params)
1203
+ @Count = params['Count']
1204
+ @Status = params['Status']
1205
+ @ExpireTime = params['ExpireTime']
1206
+ @Duration = params['Duration']
1207
+ @RemainDay = params['RemainDay']
1208
+ @LicenseIds = params['LicenseIds']
1209
+ end
1210
+ end
1211
+
811
1212
  # ModifyDevice请求参数结构体
812
1213
  class ModifyDeviceRequest < TencentCloud::Common::AbstractModel
813
1214
  # @param ProjectId: 要修改设备归属项目的项目ID
@@ -1010,6 +1411,42 @@ module TencentCloud
1010
1411
  end
1011
1412
  end
1012
1413
 
1414
+ # 最新会话信息
1415
+ class RecentSessionInfo < TencentCloud::Common::AbstractModel
1416
+ # @param SessionId: 会话ID
1417
+ # @type SessionId: String
1418
+ # @param RemoteDeviceId: 远端设备ID
1419
+ # @type RemoteDeviceId: String
1420
+ # @param FieldDeviceId: 现场设备ID
1421
+ # @type FieldDeviceId: String
1422
+ # @param Resolution: 分辨率
1423
+ # @type Resolution: String
1424
+ # @param StartTime: 会话开始时间
1425
+ # @type StartTime: Integer
1426
+ # @param LatestUpdateTime: 最后更新时间
1427
+ # @type LatestUpdateTime: Integer
1428
+
1429
+ attr_accessor :SessionId, :RemoteDeviceId, :FieldDeviceId, :Resolution, :StartTime, :LatestUpdateTime
1430
+
1431
+ def initialize(sessionid=nil, remotedeviceid=nil, fielddeviceid=nil, resolution=nil, starttime=nil, latestupdatetime=nil)
1432
+ @SessionId = sessionid
1433
+ @RemoteDeviceId = remotedeviceid
1434
+ @FieldDeviceId = fielddeviceid
1435
+ @Resolution = resolution
1436
+ @StartTime = starttime
1437
+ @LatestUpdateTime = latestupdatetime
1438
+ end
1439
+
1440
+ def deserialize(params)
1441
+ @SessionId = params['SessionId']
1442
+ @RemoteDeviceId = params['RemoteDeviceId']
1443
+ @FieldDeviceId = params['FieldDeviceId']
1444
+ @Resolution = params['Resolution']
1445
+ @StartTime = params['StartTime']
1446
+ @LatestUpdateTime = params['LatestUpdateTime']
1447
+ end
1448
+ end
1449
+
1013
1450
  # 会话数据详单(按设备区分)
1014
1451
  class SessionDeviceDetail < TencentCloud::Common::AbstractModel
1015
1452
  # @param DeviceType: 设备类型:field或remote
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trro
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.544
4
+ version: 3.0.546
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-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20220325/models.rb
37
- - lib/v20220325/client.rb
38
36
  - lib/tencentcloud-sdk-trro.rb
37
+ - lib/v20220325/client.rb
38
+ - lib/v20220325/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: