tencentcloud-sdk-trro 3.0.544
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-trro.rb +11 -0
- data/lib/v20220325/client.rb +444 -0
- data/lib/v20220325/models.rb +1164 -0
- metadata +66 -0
@@ -0,0 +1,1164 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Trro
|
19
|
+
module V20220325
|
20
|
+
# BatchDeleteDevices请求参数结构体
|
21
|
+
class BatchDeleteDevicesRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ProjectId: 目标删除设备所属项目ID
|
23
|
+
# @type ProjectId: String
|
24
|
+
# @param DeviceIds: 目标删除设备的设备ID数组
|
25
|
+
# @type DeviceIds: Array
|
26
|
+
|
27
|
+
attr_accessor :ProjectId, :DeviceIds
|
28
|
+
|
29
|
+
def initialize(projectid=nil, deviceids=nil)
|
30
|
+
@ProjectId = projectid
|
31
|
+
@DeviceIds = deviceids
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@ProjectId = params['ProjectId']
|
36
|
+
@DeviceIds = params['DeviceIds']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# BatchDeleteDevices返回参数结构体
|
41
|
+
class BatchDeleteDevicesResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param FailedDeviceIds: 删除失败的设备ID列表
|
43
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
44
|
+
# @type FailedDeviceIds: Array
|
45
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
46
|
+
# @type RequestId: String
|
47
|
+
|
48
|
+
attr_accessor :FailedDeviceIds, :RequestId
|
49
|
+
|
50
|
+
def initialize(faileddeviceids=nil, requestid=nil)
|
51
|
+
@FailedDeviceIds = faileddeviceids
|
52
|
+
@RequestId = requestid
|
53
|
+
end
|
54
|
+
|
55
|
+
def deserialize(params)
|
56
|
+
@FailedDeviceIds = params['FailedDeviceIds']
|
57
|
+
@RequestId = params['RequestId']
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# BatchDeletePolicy请求参数结构体
|
62
|
+
class BatchDeletePolicyRequest < TencentCloud::Common::AbstractModel
|
63
|
+
# @param ProjectId: 删除权限配置的项目ID
|
64
|
+
# @type ProjectId: String
|
65
|
+
# @param RemoteDeviceIds: 删除权限配置的远端设备ID列表
|
66
|
+
# @type RemoteDeviceIds: Array
|
67
|
+
# @param PolicyMode: 删除权限配置的权限模式, black为黑名单,white为白名单
|
68
|
+
# @type PolicyMode: String
|
69
|
+
|
70
|
+
attr_accessor :ProjectId, :RemoteDeviceIds, :PolicyMode
|
71
|
+
|
72
|
+
def initialize(projectid=nil, remotedeviceids=nil, policymode=nil)
|
73
|
+
@ProjectId = projectid
|
74
|
+
@RemoteDeviceIds = remotedeviceids
|
75
|
+
@PolicyMode = policymode
|
76
|
+
end
|
77
|
+
|
78
|
+
def deserialize(params)
|
79
|
+
@ProjectId = params['ProjectId']
|
80
|
+
@RemoteDeviceIds = params['RemoteDeviceIds']
|
81
|
+
@PolicyMode = params['PolicyMode']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# BatchDeletePolicy返回参数结构体
|
86
|
+
class BatchDeletePolicyResponse < TencentCloud::Common::AbstractModel
|
87
|
+
# @param FailedRemoteDeviceIds: 删除权限配置失败的远端设备ID列表
|
88
|
+
# @type FailedRemoteDeviceIds: Array
|
89
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
90
|
+
# @type RequestId: String
|
91
|
+
|
92
|
+
attr_accessor :FailedRemoteDeviceIds, :RequestId
|
93
|
+
|
94
|
+
def initialize(failedremotedeviceids=nil, requestid=nil)
|
95
|
+
@FailedRemoteDeviceIds = failedremotedeviceids
|
96
|
+
@RequestId = requestid
|
97
|
+
end
|
98
|
+
|
99
|
+
def deserialize(params)
|
100
|
+
@FailedRemoteDeviceIds = params['FailedRemoteDeviceIds']
|
101
|
+
@RequestId = params['RequestId']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# CreateDevice请求参数结构体
|
106
|
+
class CreateDeviceRequest < TencentCloud::Common::AbstractModel
|
107
|
+
# @param ProjectId: 创建设备所归属的项目ID
|
108
|
+
# @type ProjectId: String
|
109
|
+
# @param DeviceId: 创建设备ID,项目内需要唯一,由小写英文字母、数字和下划线构成,长度不超过18
|
110
|
+
# @type DeviceId: String
|
111
|
+
# @param DeviceName: 创建设备名称,长度小于24, 可包含中文、数字、英文字母和下划线
|
112
|
+
# @type DeviceName: String
|
113
|
+
# @param DeviceType: 设备类型,field为现场设备(受控设备),remote为远端设备(操控设备),不填默认为field
|
114
|
+
# @type DeviceType: String
|
115
|
+
# @param DeviceToken: 设备认证口令,由大小写英文字母和数字构成,须为16位
|
116
|
+
# @type DeviceToken: String
|
117
|
+
|
118
|
+
attr_accessor :ProjectId, :DeviceId, :DeviceName, :DeviceType, :DeviceToken
|
119
|
+
|
120
|
+
def initialize(projectid=nil, deviceid=nil, devicename=nil, devicetype=nil, devicetoken=nil)
|
121
|
+
@ProjectId = projectid
|
122
|
+
@DeviceId = deviceid
|
123
|
+
@DeviceName = devicename
|
124
|
+
@DeviceType = devicetype
|
125
|
+
@DeviceToken = devicetoken
|
126
|
+
end
|
127
|
+
|
128
|
+
def deserialize(params)
|
129
|
+
@ProjectId = params['ProjectId']
|
130
|
+
@DeviceId = params['DeviceId']
|
131
|
+
@DeviceName = params['DeviceName']
|
132
|
+
@DeviceType = params['DeviceType']
|
133
|
+
@DeviceToken = params['DeviceToken']
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# CreateDevice返回参数结构体
|
138
|
+
class CreateDeviceResponse < TencentCloud::Common::AbstractModel
|
139
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
140
|
+
# @type RequestId: String
|
141
|
+
|
142
|
+
attr_accessor :RequestId
|
143
|
+
|
144
|
+
def initialize(requestid=nil)
|
145
|
+
@RequestId = requestid
|
146
|
+
end
|
147
|
+
|
148
|
+
def deserialize(params)
|
149
|
+
@RequestId = params['RequestId']
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# CreateProject请求参数结构体
|
154
|
+
class CreateProjectRequest < TencentCloud::Common::AbstractModel
|
155
|
+
# @param ProjectName: 项目名称,长度不超过24个字符
|
156
|
+
# @type ProjectName: String
|
157
|
+
# @param ProjectDescription: 项目描述,长度不超过120个字符,不填默认为空
|
158
|
+
# @type ProjectDescription: String
|
159
|
+
# @param PolicyMode: 权限模式,black为黑名单,white为白名单,不填默认为black
|
160
|
+
# @type PolicyMode: String
|
161
|
+
|
162
|
+
attr_accessor :ProjectName, :ProjectDescription, :PolicyMode
|
163
|
+
|
164
|
+
def initialize(projectname=nil, projectdescription=nil, policymode=nil)
|
165
|
+
@ProjectName = projectname
|
166
|
+
@ProjectDescription = projectdescription
|
167
|
+
@PolicyMode = policymode
|
168
|
+
end
|
169
|
+
|
170
|
+
def deserialize(params)
|
171
|
+
@ProjectName = params['ProjectName']
|
172
|
+
@ProjectDescription = params['ProjectDescription']
|
173
|
+
@PolicyMode = params['PolicyMode']
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
# CreateProject返回参数结构体
|
178
|
+
class CreateProjectResponse < TencentCloud::Common::AbstractModel
|
179
|
+
# @param ProjectId: 项目ID,长度为16位
|
180
|
+
# @type ProjectId: String
|
181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
182
|
+
# @type RequestId: String
|
183
|
+
|
184
|
+
attr_accessor :ProjectId, :RequestId
|
185
|
+
|
186
|
+
def initialize(projectid=nil, requestid=nil)
|
187
|
+
@ProjectId = projectid
|
188
|
+
@RequestId = requestid
|
189
|
+
end
|
190
|
+
|
191
|
+
def deserialize(params)
|
192
|
+
@ProjectId = params['ProjectId']
|
193
|
+
@RequestId = params['RequestId']
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# DeleteProject请求参数结构体
|
198
|
+
class DeleteProjectRequest < TencentCloud::Common::AbstractModel
|
199
|
+
# @param ProjectId: 项目ID
|
200
|
+
# @type ProjectId: String
|
201
|
+
|
202
|
+
attr_accessor :ProjectId
|
203
|
+
|
204
|
+
def initialize(projectid=nil)
|
205
|
+
@ProjectId = projectid
|
206
|
+
end
|
207
|
+
|
208
|
+
def deserialize(params)
|
209
|
+
@ProjectId = params['ProjectId']
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# DeleteProject返回参数结构体
|
214
|
+
class DeleteProjectResponse < TencentCloud::Common::AbstractModel
|
215
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
216
|
+
# @type RequestId: String
|
217
|
+
|
218
|
+
attr_accessor :RequestId
|
219
|
+
|
220
|
+
def initialize(requestid=nil)
|
221
|
+
@RequestId = requestid
|
222
|
+
end
|
223
|
+
|
224
|
+
def deserialize(params)
|
225
|
+
@RequestId = params['RequestId']
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# DescribeDeviceInfo请求参数结构体
|
230
|
+
class DescribeDeviceInfoRequest < TencentCloud::Common::AbstractModel
|
231
|
+
# @param ProjectId: 目标设备所属项目ID
|
232
|
+
# @type ProjectId: String
|
233
|
+
# @param DeviceId: 目标设备ID
|
234
|
+
# @type DeviceId: String
|
235
|
+
|
236
|
+
attr_accessor :ProjectId, :DeviceId
|
237
|
+
|
238
|
+
def initialize(projectid=nil, deviceid=nil)
|
239
|
+
@ProjectId = projectid
|
240
|
+
@DeviceId = deviceid
|
241
|
+
end
|
242
|
+
|
243
|
+
def deserialize(params)
|
244
|
+
@ProjectId = params['ProjectId']
|
245
|
+
@DeviceId = params['DeviceId']
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# DescribeDeviceInfo返回参数结构体
|
250
|
+
class DescribeDeviceInfoResponse < TencentCloud::Common::AbstractModel
|
251
|
+
# @param DeviceName: 设备名称
|
252
|
+
# @type DeviceName: String
|
253
|
+
# @param DeviceType: 设备类型,field为现场设备(被控方),remote为远端设备(操控方)
|
254
|
+
# @type DeviceType: String
|
255
|
+
# @param DeviceStatus: 设备状态,offline为离线,ready为在线准备,connected为会话中
|
256
|
+
# @type DeviceStatus: String
|
257
|
+
# @param LastReportTime: 设备状态最后更新时间
|
258
|
+
# @type LastReportTime: String
|
259
|
+
# @param ModifyTime: 设备信息最后修改时间
|
260
|
+
# @type ModifyTime: String
|
261
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
262
|
+
# @type RequestId: String
|
263
|
+
|
264
|
+
attr_accessor :DeviceName, :DeviceType, :DeviceStatus, :LastReportTime, :ModifyTime, :RequestId
|
265
|
+
|
266
|
+
def initialize(devicename=nil, devicetype=nil, devicestatus=nil, lastreporttime=nil, modifytime=nil, requestid=nil)
|
267
|
+
@DeviceName = devicename
|
268
|
+
@DeviceType = devicetype
|
269
|
+
@DeviceStatus = devicestatus
|
270
|
+
@LastReportTime = lastreporttime
|
271
|
+
@ModifyTime = modifytime
|
272
|
+
@RequestId = requestid
|
273
|
+
end
|
274
|
+
|
275
|
+
def deserialize(params)
|
276
|
+
@DeviceName = params['DeviceName']
|
277
|
+
@DeviceType = params['DeviceType']
|
278
|
+
@DeviceStatus = params['DeviceStatus']
|
279
|
+
@LastReportTime = params['LastReportTime']
|
280
|
+
@ModifyTime = params['ModifyTime']
|
281
|
+
@RequestId = params['RequestId']
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# DescribeDeviceList请求参数结构体
|
286
|
+
class DescribeDeviceListRequest < TencentCloud::Common::AbstractModel
|
287
|
+
# @param ProjectId: 设备所属项目ID
|
288
|
+
# @type ProjectId: String
|
289
|
+
# @param DeviceType: 设备类型筛选,不填默认为全部设备类型
|
290
|
+
# @type DeviceType: String
|
291
|
+
# @param SearchWords: 对设备ID或Name按关键字进行模糊匹配,不填则不进行模糊匹配
|
292
|
+
# @type SearchWords: String
|
293
|
+
# @param PageSize: 每页返回的最大设备数,不填默认为10
|
294
|
+
# @type PageSize: Integer
|
295
|
+
# @param PageNumber: 当前页码,不填默认为1(首页)
|
296
|
+
# @type PageNumber: Integer
|
297
|
+
|
298
|
+
attr_accessor :ProjectId, :DeviceType, :SearchWords, :PageSize, :PageNumber
|
299
|
+
|
300
|
+
def initialize(projectid=nil, devicetype=nil, searchwords=nil, pagesize=nil, pagenumber=nil)
|
301
|
+
@ProjectId = projectid
|
302
|
+
@DeviceType = devicetype
|
303
|
+
@SearchWords = searchwords
|
304
|
+
@PageSize = pagesize
|
305
|
+
@PageNumber = pagenumber
|
306
|
+
end
|
307
|
+
|
308
|
+
def deserialize(params)
|
309
|
+
@ProjectId = params['ProjectId']
|
310
|
+
@DeviceType = params['DeviceType']
|
311
|
+
@SearchWords = params['SearchWords']
|
312
|
+
@PageSize = params['PageSize']
|
313
|
+
@PageNumber = params['PageNumber']
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# DescribeDeviceList返回参数结构体
|
318
|
+
class DescribeDeviceListResponse < TencentCloud::Common::AbstractModel
|
319
|
+
# @param Devices: 设备信息列表
|
320
|
+
# @type Devices: Array
|
321
|
+
# @param Total: 设备总数
|
322
|
+
# @type Total: Integer
|
323
|
+
# @param Num: 本次返回的设备数
|
324
|
+
# @type Num: Integer
|
325
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
326
|
+
# @type RequestId: String
|
327
|
+
|
328
|
+
attr_accessor :Devices, :Total, :Num, :RequestId
|
329
|
+
|
330
|
+
def initialize(devices=nil, total=nil, num=nil, requestid=nil)
|
331
|
+
@Devices = devices
|
332
|
+
@Total = total
|
333
|
+
@Num = num
|
334
|
+
@RequestId = requestid
|
335
|
+
end
|
336
|
+
|
337
|
+
def deserialize(params)
|
338
|
+
unless params['Devices'].nil?
|
339
|
+
@Devices = []
|
340
|
+
params['Devices'].each do |i|
|
341
|
+
deviceinfo_tmp = DeviceInfo.new
|
342
|
+
deviceinfo_tmp.deserialize(i)
|
343
|
+
@Devices << deviceinfo_tmp
|
344
|
+
end
|
345
|
+
end
|
346
|
+
@Total = params['Total']
|
347
|
+
@Num = params['Num']
|
348
|
+
@RequestId = params['RequestId']
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# DescribeDeviceSessionDetails请求参数结构体
|
353
|
+
class DescribeDeviceSessionDetailsRequest < TencentCloud::Common::AbstractModel
|
354
|
+
# @param SessionId: 会话ID
|
355
|
+
# @type SessionId: String
|
356
|
+
|
357
|
+
attr_accessor :SessionId
|
358
|
+
|
359
|
+
def initialize(sessionid=nil)
|
360
|
+
@SessionId = sessionid
|
361
|
+
end
|
362
|
+
|
363
|
+
def deserialize(params)
|
364
|
+
@SessionId = params['SessionId']
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
# DescribeDeviceSessionDetails返回参数结构体
|
369
|
+
class DescribeDeviceSessionDetailsResponse < TencentCloud::Common::AbstractModel
|
370
|
+
# @param Details: 按设备区分的会话详细数据
|
371
|
+
# @type Details: Array
|
372
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
373
|
+
# @type RequestId: String
|
374
|
+
|
375
|
+
attr_accessor :Details, :RequestId
|
376
|
+
|
377
|
+
def initialize(details=nil, requestid=nil)
|
378
|
+
@Details = details
|
379
|
+
@RequestId = requestid
|
380
|
+
end
|
381
|
+
|
382
|
+
def deserialize(params)
|
383
|
+
unless params['Details'].nil?
|
384
|
+
@Details = []
|
385
|
+
params['Details'].each do |i|
|
386
|
+
sessiondevicedetail_tmp = SessionDeviceDetail.new
|
387
|
+
sessiondevicedetail_tmp.deserialize(i)
|
388
|
+
@Details << sessiondevicedetail_tmp
|
389
|
+
end
|
390
|
+
end
|
391
|
+
@RequestId = params['RequestId']
|
392
|
+
end
|
393
|
+
end
|
394
|
+
|
395
|
+
# DescribeDeviceSessionList请求参数结构体
|
396
|
+
class DescribeDeviceSessionListRequest < TencentCloud::Common::AbstractModel
|
397
|
+
# @param ProjectId: 项目ID
|
398
|
+
# @type ProjectId: String
|
399
|
+
# @param PageNumber: 页码,从1开始
|
400
|
+
# @type PageNumber: Integer
|
401
|
+
# @param PageSize: 每页个数
|
402
|
+
# @type PageSize: Integer
|
403
|
+
# @param DeviceId: 设备ID
|
404
|
+
# @type DeviceId: String
|
405
|
+
# @param StartTime: 开始时间
|
406
|
+
# @type StartTime: Integer
|
407
|
+
# @param EndTime: 结束时间
|
408
|
+
# @type EndTime: Integer
|
409
|
+
|
410
|
+
attr_accessor :ProjectId, :PageNumber, :PageSize, :DeviceId, :StartTime, :EndTime
|
411
|
+
|
412
|
+
def initialize(projectid=nil, pagenumber=nil, pagesize=nil, deviceid=nil, starttime=nil, endtime=nil)
|
413
|
+
@ProjectId = projectid
|
414
|
+
@PageNumber = pagenumber
|
415
|
+
@PageSize = pagesize
|
416
|
+
@DeviceId = deviceid
|
417
|
+
@StartTime = starttime
|
418
|
+
@EndTime = endtime
|
419
|
+
end
|
420
|
+
|
421
|
+
def deserialize(params)
|
422
|
+
@ProjectId = params['ProjectId']
|
423
|
+
@PageNumber = params['PageNumber']
|
424
|
+
@PageSize = params['PageSize']
|
425
|
+
@DeviceId = params['DeviceId']
|
426
|
+
@StartTime = params['StartTime']
|
427
|
+
@EndTime = params['EndTime']
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
431
|
+
# DescribeDeviceSessionList返回参数结构体
|
432
|
+
class DescribeDeviceSessionListResponse < TencentCloud::Common::AbstractModel
|
433
|
+
# @param Total: 总个数
|
434
|
+
# @type Total: Integer
|
435
|
+
# @param DeviceSessionList: 会话列表
|
436
|
+
# @type DeviceSessionList: Array
|
437
|
+
# @param Num: 本页数量
|
438
|
+
# @type Num: Integer
|
439
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
440
|
+
# @type RequestId: String
|
441
|
+
|
442
|
+
attr_accessor :Total, :DeviceSessionList, :Num, :RequestId
|
443
|
+
|
444
|
+
def initialize(total=nil, devicesessionlist=nil, num=nil, requestid=nil)
|
445
|
+
@Total = total
|
446
|
+
@DeviceSessionList = devicesessionlist
|
447
|
+
@Num = num
|
448
|
+
@RequestId = requestid
|
449
|
+
end
|
450
|
+
|
451
|
+
def deserialize(params)
|
452
|
+
@Total = params['Total']
|
453
|
+
unless params['DeviceSessionList'].nil?
|
454
|
+
@DeviceSessionList = []
|
455
|
+
params['DeviceSessionList'].each do |i|
|
456
|
+
sessioninfo_tmp = SessionInfo.new
|
457
|
+
sessioninfo_tmp.deserialize(i)
|
458
|
+
@DeviceSessionList << sessioninfo_tmp
|
459
|
+
end
|
460
|
+
end
|
461
|
+
@Num = params['Num']
|
462
|
+
@RequestId = params['RequestId']
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
# DescribePolicy请求参数结构体
|
467
|
+
class DescribePolicyRequest < TencentCloud::Common::AbstractModel
|
468
|
+
# @param ProjectId: 查看权限的项目ID
|
469
|
+
# @type ProjectId: String
|
470
|
+
# @param PolicyMode: 查看的权限模式,black为黑名单,white为白名单,不填默认为当前项目生效的权限模式
|
471
|
+
# @type PolicyMode: String
|
472
|
+
# @param SearchMode: 模糊匹配模式,remoteMatch为远端设备ID匹配,fieldMatch为现场ID匹配,不填默认为remoteMatch
|
473
|
+
# @type SearchMode: String
|
474
|
+
# @param SearchWords: 模糊匹配关键字,不填默认不进行模糊匹配
|
475
|
+
# @type SearchWords: String
|
476
|
+
# @param PageSize: 每页返回的最大数量,不填默认为10
|
477
|
+
# @type PageSize: Integer
|
478
|
+
# @param PageNumber: 当前页码,不填默认为1(首页)
|
479
|
+
# @type PageNumber: Integer
|
480
|
+
|
481
|
+
attr_accessor :ProjectId, :PolicyMode, :SearchMode, :SearchWords, :PageSize, :PageNumber
|
482
|
+
|
483
|
+
def initialize(projectid=nil, policymode=nil, searchmode=nil, searchwords=nil, pagesize=nil, pagenumber=nil)
|
484
|
+
@ProjectId = projectid
|
485
|
+
@PolicyMode = policymode
|
486
|
+
@SearchMode = searchmode
|
487
|
+
@SearchWords = searchwords
|
488
|
+
@PageSize = pagesize
|
489
|
+
@PageNumber = pagenumber
|
490
|
+
end
|
491
|
+
|
492
|
+
def deserialize(params)
|
493
|
+
@ProjectId = params['ProjectId']
|
494
|
+
@PolicyMode = params['PolicyMode']
|
495
|
+
@SearchMode = params['SearchMode']
|
496
|
+
@SearchWords = params['SearchWords']
|
497
|
+
@PageSize = params['PageSize']
|
498
|
+
@PageNumber = params['PageNumber']
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
502
|
+
# DescribePolicy返回参数结构体
|
503
|
+
class DescribePolicyResponse < TencentCloud::Common::AbstractModel
|
504
|
+
# @param PolicyMode: 权限模式
|
505
|
+
# @type PolicyMode: String
|
506
|
+
# @param PolicyEnabled: 返回的权限模式是否为当前生效的权限模式
|
507
|
+
# @type PolicyEnabled: Boolean
|
508
|
+
# @param PolicyInfo: 权限信息列表
|
509
|
+
# @type PolicyInfo: Array
|
510
|
+
# @param Num: 本次返回的权限信息数量
|
511
|
+
# @type Num: Integer
|
512
|
+
# @param Total: 权限信息总数
|
513
|
+
# @type Total: Integer
|
514
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
515
|
+
# @type RequestId: String
|
516
|
+
|
517
|
+
attr_accessor :PolicyMode, :PolicyEnabled, :PolicyInfo, :Num, :Total, :RequestId
|
518
|
+
|
519
|
+
def initialize(policymode=nil, policyenabled=nil, policyinfo=nil, num=nil, total=nil, requestid=nil)
|
520
|
+
@PolicyMode = policymode
|
521
|
+
@PolicyEnabled = policyenabled
|
522
|
+
@PolicyInfo = policyinfo
|
523
|
+
@Num = num
|
524
|
+
@Total = total
|
525
|
+
@RequestId = requestid
|
526
|
+
end
|
527
|
+
|
528
|
+
def deserialize(params)
|
529
|
+
@PolicyMode = params['PolicyMode']
|
530
|
+
@PolicyEnabled = params['PolicyEnabled']
|
531
|
+
unless params['PolicyInfo'].nil?
|
532
|
+
@PolicyInfo = []
|
533
|
+
params['PolicyInfo'].each do |i|
|
534
|
+
policyinfo_tmp = PolicyInfo.new
|
535
|
+
policyinfo_tmp.deserialize(i)
|
536
|
+
@PolicyInfo << policyinfo_tmp
|
537
|
+
end
|
538
|
+
end
|
539
|
+
@Num = params['Num']
|
540
|
+
@Total = params['Total']
|
541
|
+
@RequestId = params['RequestId']
|
542
|
+
end
|
543
|
+
end
|
544
|
+
|
545
|
+
# DescribeProjectInfo请求参数结构体
|
546
|
+
class DescribeProjectInfoRequest < TencentCloud::Common::AbstractModel
|
547
|
+
# @param ProjectId: 目标项目ID
|
548
|
+
# @type ProjectId: String
|
549
|
+
|
550
|
+
attr_accessor :ProjectId
|
551
|
+
|
552
|
+
def initialize(projectid=nil)
|
553
|
+
@ProjectId = projectid
|
554
|
+
end
|
555
|
+
|
556
|
+
def deserialize(params)
|
557
|
+
@ProjectId = params['ProjectId']
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
561
|
+
# DescribeProjectInfo返回参数结构体
|
562
|
+
class DescribeProjectInfoResponse < TencentCloud::Common::AbstractModel
|
563
|
+
# @param ProjectName: 项目名称
|
564
|
+
# @type ProjectName: String
|
565
|
+
# @param ProjectDescription: 项目描述
|
566
|
+
# @type ProjectDescription: String
|
567
|
+
# @param PolicyMode: 项目权限模式,black为黑名单,white为白名单
|
568
|
+
# @type PolicyMode: String
|
569
|
+
# @param ModifyTime: 项目信息修改时间
|
570
|
+
# @type ModifyTime: String
|
571
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
572
|
+
# @type RequestId: String
|
573
|
+
|
574
|
+
attr_accessor :ProjectName, :ProjectDescription, :PolicyMode, :ModifyTime, :RequestId
|
575
|
+
|
576
|
+
def initialize(projectname=nil, projectdescription=nil, policymode=nil, modifytime=nil, requestid=nil)
|
577
|
+
@ProjectName = projectname
|
578
|
+
@ProjectDescription = projectdescription
|
579
|
+
@PolicyMode = policymode
|
580
|
+
@ModifyTime = modifytime
|
581
|
+
@RequestId = requestid
|
582
|
+
end
|
583
|
+
|
584
|
+
def deserialize(params)
|
585
|
+
@ProjectName = params['ProjectName']
|
586
|
+
@ProjectDescription = params['ProjectDescription']
|
587
|
+
@PolicyMode = params['PolicyMode']
|
588
|
+
@ModifyTime = params['ModifyTime']
|
589
|
+
@RequestId = params['RequestId']
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
593
|
+
# DescribeProjectList请求参数结构体
|
594
|
+
class DescribeProjectListRequest < TencentCloud::Common::AbstractModel
|
595
|
+
# @param PageSize: 每页返回的最大项目数量,不填默认为10
|
596
|
+
# @type PageSize: Integer
|
597
|
+
# @param PageNumber: 当前页码,不填默认为1(首页)
|
598
|
+
# @type PageNumber: Integer
|
599
|
+
|
600
|
+
attr_accessor :PageSize, :PageNumber
|
601
|
+
|
602
|
+
def initialize(pagesize=nil, pagenumber=nil)
|
603
|
+
@PageSize = pagesize
|
604
|
+
@PageNumber = pagenumber
|
605
|
+
end
|
606
|
+
|
607
|
+
def deserialize(params)
|
608
|
+
@PageSize = params['PageSize']
|
609
|
+
@PageNumber = params['PageNumber']
|
610
|
+
end
|
611
|
+
end
|
612
|
+
|
613
|
+
# DescribeProjectList返回参数结构体
|
614
|
+
class DescribeProjectListResponse < TencentCloud::Common::AbstractModel
|
615
|
+
# @param Projects: 项目信息数组
|
616
|
+
# @type Projects: Array
|
617
|
+
# @param Total: 项目总数
|
618
|
+
# @type Total: Integer
|
619
|
+
# @param Num: 本次返回的项目数
|
620
|
+
# @type Num: Integer
|
621
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
622
|
+
# @type RequestId: String
|
623
|
+
|
624
|
+
attr_accessor :Projects, :Total, :Num, :RequestId
|
625
|
+
|
626
|
+
def initialize(projects=nil, total=nil, num=nil, requestid=nil)
|
627
|
+
@Projects = projects
|
628
|
+
@Total = total
|
629
|
+
@Num = num
|
630
|
+
@RequestId = requestid
|
631
|
+
end
|
632
|
+
|
633
|
+
def deserialize(params)
|
634
|
+
unless params['Projects'].nil?
|
635
|
+
@Projects = []
|
636
|
+
params['Projects'].each do |i|
|
637
|
+
projectinfo_tmp = ProjectInfo.new
|
638
|
+
projectinfo_tmp.deserialize(i)
|
639
|
+
@Projects << projectinfo_tmp
|
640
|
+
end
|
641
|
+
end
|
642
|
+
@Total = params['Total']
|
643
|
+
@Num = params['Num']
|
644
|
+
@RequestId = params['RequestId']
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
# DescribeSessionStatisticsByInterval请求参数结构体
|
649
|
+
class DescribeSessionStatisticsByIntervalRequest < TencentCloud::Common::AbstractModel
|
650
|
+
# @param ProjectId: 项目ID
|
651
|
+
# @type ProjectId: String
|
652
|
+
# @param StatisticInterval: 统计时间间隔:hour|day|month
|
653
|
+
# @type StatisticInterval: String
|
654
|
+
# @param DeviceId: 设备ID
|
655
|
+
# @type DeviceId: String
|
656
|
+
# @param StartTime: 起始时间,单位:秒
|
657
|
+
# @type StartTime: Integer
|
658
|
+
# @param EndTime: 结束时间,单位:秒
|
659
|
+
# @type EndTime: Integer
|
660
|
+
|
661
|
+
attr_accessor :ProjectId, :StatisticInterval, :DeviceId, :StartTime, :EndTime
|
662
|
+
|
663
|
+
def initialize(projectid=nil, statisticinterval=nil, deviceid=nil, starttime=nil, endtime=nil)
|
664
|
+
@ProjectId = projectid
|
665
|
+
@StatisticInterval = statisticinterval
|
666
|
+
@DeviceId = deviceid
|
667
|
+
@StartTime = starttime
|
668
|
+
@EndTime = endtime
|
669
|
+
end
|
670
|
+
|
671
|
+
def deserialize(params)
|
672
|
+
@ProjectId = params['ProjectId']
|
673
|
+
@StatisticInterval = params['StatisticInterval']
|
674
|
+
@DeviceId = params['DeviceId']
|
675
|
+
@StartTime = params['StartTime']
|
676
|
+
@EndTime = params['EndTime']
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
680
|
+
# DescribeSessionStatisticsByInterval返回参数结构体
|
681
|
+
class DescribeSessionStatisticsByIntervalResponse < TencentCloud::Common::AbstractModel
|
682
|
+
# @param SessionStatistics: 各时间段的会话统计数据
|
683
|
+
# @type SessionStatistics: Array
|
684
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
685
|
+
# @type RequestId: String
|
686
|
+
|
687
|
+
attr_accessor :SessionStatistics, :RequestId
|
688
|
+
|
689
|
+
def initialize(sessionstatistics=nil, requestid=nil)
|
690
|
+
@SessionStatistics = sessionstatistics
|
691
|
+
@RequestId = requestid
|
692
|
+
end
|
693
|
+
|
694
|
+
def deserialize(params)
|
695
|
+
unless params['SessionStatistics'].nil?
|
696
|
+
@SessionStatistics = []
|
697
|
+
params['SessionStatistics'].each do |i|
|
698
|
+
sessionintervalstatistic_tmp = SessionIntervalStatistic.new
|
699
|
+
sessionintervalstatistic_tmp.deserialize(i)
|
700
|
+
@SessionStatistics << sessionintervalstatistic_tmp
|
701
|
+
end
|
702
|
+
end
|
703
|
+
@RequestId = params['RequestId']
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
707
|
+
# DescribeSessionStatistics请求参数结构体
|
708
|
+
class DescribeSessionStatisticsRequest < TencentCloud::Common::AbstractModel
|
709
|
+
# @param ProjectId: 项目ID
|
710
|
+
# @type ProjectId: String
|
711
|
+
# @param DeviceId: 设备ID
|
712
|
+
# @type DeviceId: String
|
713
|
+
# @param StartTime: 起始时间,单位:秒
|
714
|
+
# @type StartTime: Integer
|
715
|
+
# @param EndTime: 结束时间,单位:秒
|
716
|
+
# @type EndTime: Integer
|
717
|
+
|
718
|
+
attr_accessor :ProjectId, :DeviceId, :StartTime, :EndTime
|
719
|
+
|
720
|
+
def initialize(projectid=nil, deviceid=nil, starttime=nil, endtime=nil)
|
721
|
+
@ProjectId = projectid
|
722
|
+
@DeviceId = deviceid
|
723
|
+
@StartTime = starttime
|
724
|
+
@EndTime = endtime
|
725
|
+
end
|
726
|
+
|
727
|
+
def deserialize(params)
|
728
|
+
@ProjectId = params['ProjectId']
|
729
|
+
@DeviceId = params['DeviceId']
|
730
|
+
@StartTime = params['StartTime']
|
731
|
+
@EndTime = params['EndTime']
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
735
|
+
# DescribeSessionStatistics返回参数结构体
|
736
|
+
class DescribeSessionStatisticsResponse < TencentCloud::Common::AbstractModel
|
737
|
+
# @param SessionNum: 会话数量
|
738
|
+
# @type SessionNum: Integer
|
739
|
+
# @param TotalDuration: 通话时长,单位:分钟
|
740
|
+
# @type TotalDuration: Integer
|
741
|
+
# @param ActiveFieldDeviceNum: 活跃现场设备数
|
742
|
+
# @type ActiveFieldDeviceNum: Integer
|
743
|
+
# @param ActiveRemoteDeviceNum: 活跃远端设备数
|
744
|
+
# @type ActiveRemoteDeviceNum: Integer
|
745
|
+
# @param NotBadSessionRatio: 优良会话占比,单位:%
|
746
|
+
# @type NotBadSessionRatio: Integer
|
747
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
748
|
+
# @type RequestId: String
|
749
|
+
|
750
|
+
attr_accessor :SessionNum, :TotalDuration, :ActiveFieldDeviceNum, :ActiveRemoteDeviceNum, :NotBadSessionRatio, :RequestId
|
751
|
+
|
752
|
+
def initialize(sessionnum=nil, totalduration=nil, activefielddevicenum=nil, activeremotedevicenum=nil, notbadsessionratio=nil, requestid=nil)
|
753
|
+
@SessionNum = sessionnum
|
754
|
+
@TotalDuration = totalduration
|
755
|
+
@ActiveFieldDeviceNum = activefielddevicenum
|
756
|
+
@ActiveRemoteDeviceNum = activeremotedevicenum
|
757
|
+
@NotBadSessionRatio = notbadsessionratio
|
758
|
+
@RequestId = requestid
|
759
|
+
end
|
760
|
+
|
761
|
+
def deserialize(params)
|
762
|
+
@SessionNum = params['SessionNum']
|
763
|
+
@TotalDuration = params['TotalDuration']
|
764
|
+
@ActiveFieldDeviceNum = params['ActiveFieldDeviceNum']
|
765
|
+
@ActiveRemoteDeviceNum = params['ActiveRemoteDeviceNum']
|
766
|
+
@NotBadSessionRatio = params['NotBadSessionRatio']
|
767
|
+
@RequestId = params['RequestId']
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
771
|
+
# 设备信息
|
772
|
+
class DeviceInfo < TencentCloud::Common::AbstractModel
|
773
|
+
# @param DeviceId: 设备ID
|
774
|
+
# @type DeviceId: String
|
775
|
+
# @param DeviceName: 设备名称
|
776
|
+
# @type DeviceName: String
|
777
|
+
# @param DeviceStatus: 设备状态,offline为离线,ready为在线准备,connected为会话中
|
778
|
+
# @type DeviceStatus: String
|
779
|
+
# @param DeviceType: 设备类型,field为现场设备(受控方),remote为远端设备(操控方)
|
780
|
+
# @type DeviceType: String
|
781
|
+
# @param ModifyTime: 设备信息最近修改时间
|
782
|
+
# @type ModifyTime: String
|
783
|
+
# @param LastReportTime: 设备状态最近更新时间
|
784
|
+
# @type LastReportTime: String
|
785
|
+
# @param ProjectId: 设备所属项目Id
|
786
|
+
# @type ProjectId: String
|
787
|
+
|
788
|
+
attr_accessor :DeviceId, :DeviceName, :DeviceStatus, :DeviceType, :ModifyTime, :LastReportTime, :ProjectId
|
789
|
+
|
790
|
+
def initialize(deviceid=nil, devicename=nil, devicestatus=nil, devicetype=nil, modifytime=nil, lastreporttime=nil, projectid=nil)
|
791
|
+
@DeviceId = deviceid
|
792
|
+
@DeviceName = devicename
|
793
|
+
@DeviceStatus = devicestatus
|
794
|
+
@DeviceType = devicetype
|
795
|
+
@ModifyTime = modifytime
|
796
|
+
@LastReportTime = lastreporttime
|
797
|
+
@ProjectId = projectid
|
798
|
+
end
|
799
|
+
|
800
|
+
def deserialize(params)
|
801
|
+
@DeviceId = params['DeviceId']
|
802
|
+
@DeviceName = params['DeviceName']
|
803
|
+
@DeviceStatus = params['DeviceStatus']
|
804
|
+
@DeviceType = params['DeviceType']
|
805
|
+
@ModifyTime = params['ModifyTime']
|
806
|
+
@LastReportTime = params['LastReportTime']
|
807
|
+
@ProjectId = params['ProjectId']
|
808
|
+
end
|
809
|
+
end
|
810
|
+
|
811
|
+
# ModifyDevice请求参数结构体
|
812
|
+
class ModifyDeviceRequest < TencentCloud::Common::AbstractModel
|
813
|
+
# @param ProjectId: 要修改设备归属项目的项目ID
|
814
|
+
# @type ProjectId: String
|
815
|
+
# @param DeviceId: 要修改设备的设备ID
|
816
|
+
# @type DeviceId: String
|
817
|
+
# @param DeviceName: 修改后的设备名称,不填则不修改
|
818
|
+
# @type DeviceName: String
|
819
|
+
# @param DeviceToken: 修改后的设备认证口令,不填则不修改
|
820
|
+
# @type DeviceToken: String
|
821
|
+
|
822
|
+
attr_accessor :ProjectId, :DeviceId, :DeviceName, :DeviceToken
|
823
|
+
|
824
|
+
def initialize(projectid=nil, deviceid=nil, devicename=nil, devicetoken=nil)
|
825
|
+
@ProjectId = projectid
|
826
|
+
@DeviceId = deviceid
|
827
|
+
@DeviceName = devicename
|
828
|
+
@DeviceToken = devicetoken
|
829
|
+
end
|
830
|
+
|
831
|
+
def deserialize(params)
|
832
|
+
@ProjectId = params['ProjectId']
|
833
|
+
@DeviceId = params['DeviceId']
|
834
|
+
@DeviceName = params['DeviceName']
|
835
|
+
@DeviceToken = params['DeviceToken']
|
836
|
+
end
|
837
|
+
end
|
838
|
+
|
839
|
+
# ModifyDevice返回参数结构体
|
840
|
+
class ModifyDeviceResponse < TencentCloud::Common::AbstractModel
|
841
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
842
|
+
# @type RequestId: String
|
843
|
+
|
844
|
+
attr_accessor :RequestId
|
845
|
+
|
846
|
+
def initialize(requestid=nil)
|
847
|
+
@RequestId = requestid
|
848
|
+
end
|
849
|
+
|
850
|
+
def deserialize(params)
|
851
|
+
@RequestId = params['RequestId']
|
852
|
+
end
|
853
|
+
end
|
854
|
+
|
855
|
+
# ModifyPolicy请求参数结构体
|
856
|
+
class ModifyPolicyRequest < TencentCloud::Common::AbstractModel
|
857
|
+
# @param ProjectId: 修改权限配置的项目ID
|
858
|
+
# @type ProjectId: String
|
859
|
+
# @param RemoteDeviceId: 修改权限配置的远端设备ID
|
860
|
+
# @type RemoteDeviceId: String
|
861
|
+
# @param FieldDeviceIds: 权限修改涉及的现场设备ID数组
|
862
|
+
# @type FieldDeviceIds: Array
|
863
|
+
# @param PolicyMode: 修改的目标权限模式,black为黑名单,white为白名单
|
864
|
+
# @type PolicyMode: String
|
865
|
+
# @param ModifyMode: 修改模式,add为新增(添加现场设备I关联),remove为删除(解除现场设备关联),set为设置(更新现场设备关联)
|
866
|
+
# @type ModifyMode: String
|
867
|
+
|
868
|
+
attr_accessor :ProjectId, :RemoteDeviceId, :FieldDeviceIds, :PolicyMode, :ModifyMode
|
869
|
+
|
870
|
+
def initialize(projectid=nil, remotedeviceid=nil, fielddeviceids=nil, policymode=nil, modifymode=nil)
|
871
|
+
@ProjectId = projectid
|
872
|
+
@RemoteDeviceId = remotedeviceid
|
873
|
+
@FieldDeviceIds = fielddeviceids
|
874
|
+
@PolicyMode = policymode
|
875
|
+
@ModifyMode = modifymode
|
876
|
+
end
|
877
|
+
|
878
|
+
def deserialize(params)
|
879
|
+
@ProjectId = params['ProjectId']
|
880
|
+
@RemoteDeviceId = params['RemoteDeviceId']
|
881
|
+
@FieldDeviceIds = params['FieldDeviceIds']
|
882
|
+
@PolicyMode = params['PolicyMode']
|
883
|
+
@ModifyMode = params['ModifyMode']
|
884
|
+
end
|
885
|
+
end
|
886
|
+
|
887
|
+
# ModifyPolicy返回参数结构体
|
888
|
+
class ModifyPolicyResponse < TencentCloud::Common::AbstractModel
|
889
|
+
# @param FailedInsertIds: 添加关联失败的现场设备ID列表
|
890
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
891
|
+
# @type FailedInsertIds: Array
|
892
|
+
# @param FailedDeleteIds: 解除关联失败的现场设备ID列表
|
893
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
894
|
+
# @type FailedDeleteIds: Array
|
895
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
896
|
+
# @type RequestId: String
|
897
|
+
|
898
|
+
attr_accessor :FailedInsertIds, :FailedDeleteIds, :RequestId
|
899
|
+
|
900
|
+
def initialize(failedinsertids=nil, faileddeleteids=nil, requestid=nil)
|
901
|
+
@FailedInsertIds = failedinsertids
|
902
|
+
@FailedDeleteIds = faileddeleteids
|
903
|
+
@RequestId = requestid
|
904
|
+
end
|
905
|
+
|
906
|
+
def deserialize(params)
|
907
|
+
@FailedInsertIds = params['FailedInsertIds']
|
908
|
+
@FailedDeleteIds = params['FailedDeleteIds']
|
909
|
+
@RequestId = params['RequestId']
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
913
|
+
# ModifyProject请求参数结构体
|
914
|
+
class ModifyProjectRequest < TencentCloud::Common::AbstractModel
|
915
|
+
# @param ProjectId: 目标修改项目的项目ID
|
916
|
+
# @type ProjectId: String
|
917
|
+
# @param ProjectName: 修改后的项目名称,不填则不修改
|
918
|
+
# @type ProjectName: String
|
919
|
+
# @param ProjectDescription: 修改后的项目描述,不填则不修改
|
920
|
+
# @type ProjectDescription: String
|
921
|
+
# @param PolicyMode: 修改后的权限模式,black为黑名单,white为白名单,不填则不修改
|
922
|
+
# @type PolicyMode: String
|
923
|
+
|
924
|
+
attr_accessor :ProjectId, :ProjectName, :ProjectDescription, :PolicyMode
|
925
|
+
|
926
|
+
def initialize(projectid=nil, projectname=nil, projectdescription=nil, policymode=nil)
|
927
|
+
@ProjectId = projectid
|
928
|
+
@ProjectName = projectname
|
929
|
+
@ProjectDescription = projectdescription
|
930
|
+
@PolicyMode = policymode
|
931
|
+
end
|
932
|
+
|
933
|
+
def deserialize(params)
|
934
|
+
@ProjectId = params['ProjectId']
|
935
|
+
@ProjectName = params['ProjectName']
|
936
|
+
@ProjectDescription = params['ProjectDescription']
|
937
|
+
@PolicyMode = params['PolicyMode']
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
941
|
+
# ModifyProject返回参数结构体
|
942
|
+
class ModifyProjectResponse < TencentCloud::Common::AbstractModel
|
943
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
944
|
+
# @type RequestId: String
|
945
|
+
|
946
|
+
attr_accessor :RequestId
|
947
|
+
|
948
|
+
def initialize(requestid=nil)
|
949
|
+
@RequestId = requestid
|
950
|
+
end
|
951
|
+
|
952
|
+
def deserialize(params)
|
953
|
+
@RequestId = params['RequestId']
|
954
|
+
end
|
955
|
+
end
|
956
|
+
|
957
|
+
# 权限信息
|
958
|
+
class PolicyInfo < TencentCloud::Common::AbstractModel
|
959
|
+
# @param RemoteDeviceId: 远端设备ID
|
960
|
+
# @type RemoteDeviceId: String
|
961
|
+
# @param FieldDeviceIds: 关联的现场设备ID
|
962
|
+
# @type FieldDeviceIds: Array
|
963
|
+
# @param ModifyTime: 最近添加时间
|
964
|
+
# @type ModifyTime: String
|
965
|
+
|
966
|
+
attr_accessor :RemoteDeviceId, :FieldDeviceIds, :ModifyTime
|
967
|
+
|
968
|
+
def initialize(remotedeviceid=nil, fielddeviceids=nil, modifytime=nil)
|
969
|
+
@RemoteDeviceId = remotedeviceid
|
970
|
+
@FieldDeviceIds = fielddeviceids
|
971
|
+
@ModifyTime = modifytime
|
972
|
+
end
|
973
|
+
|
974
|
+
def deserialize(params)
|
975
|
+
@RemoteDeviceId = params['RemoteDeviceId']
|
976
|
+
@FieldDeviceIds = params['FieldDeviceIds']
|
977
|
+
@ModifyTime = params['ModifyTime']
|
978
|
+
end
|
979
|
+
end
|
980
|
+
|
981
|
+
# 项目信息
|
982
|
+
class ProjectInfo < TencentCloud::Common::AbstractModel
|
983
|
+
# @param ProjectId: 项目ID
|
984
|
+
# @type ProjectId: String
|
985
|
+
# @param ProjectName: 项目名称
|
986
|
+
# @type ProjectName: String
|
987
|
+
# @param ProjectDescription: 项目描述
|
988
|
+
# @type ProjectDescription: String
|
989
|
+
# @param PolicyMode: 项目权限模式,black为黑名单,white为白名单
|
990
|
+
# @type PolicyMode: String
|
991
|
+
# @param ModifyTime: 项目信息修改时间
|
992
|
+
# @type ModifyTime: String
|
993
|
+
|
994
|
+
attr_accessor :ProjectId, :ProjectName, :ProjectDescription, :PolicyMode, :ModifyTime
|
995
|
+
|
996
|
+
def initialize(projectid=nil, projectname=nil, projectdescription=nil, policymode=nil, modifytime=nil)
|
997
|
+
@ProjectId = projectid
|
998
|
+
@ProjectName = projectname
|
999
|
+
@ProjectDescription = projectdescription
|
1000
|
+
@PolicyMode = policymode
|
1001
|
+
@ModifyTime = modifytime
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
def deserialize(params)
|
1005
|
+
@ProjectId = params['ProjectId']
|
1006
|
+
@ProjectName = params['ProjectName']
|
1007
|
+
@ProjectDescription = params['ProjectDescription']
|
1008
|
+
@PolicyMode = params['PolicyMode']
|
1009
|
+
@ModifyTime = params['ModifyTime']
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# 会话数据详单(按设备区分)
|
1014
|
+
class SessionDeviceDetail < TencentCloud::Common::AbstractModel
|
1015
|
+
# @param DeviceType: 设备类型:field或remote
|
1016
|
+
# @type DeviceType: String
|
1017
|
+
# @param StartTime: 起始点位时间,单位:秒
|
1018
|
+
# @type StartTime: Integer
|
1019
|
+
# @param EndTime: 结束点位时间,单位:秒
|
1020
|
+
# @type EndTime: Integer
|
1021
|
+
# @param SessionId: 会话ID
|
1022
|
+
# @type SessionId: String
|
1023
|
+
# @param Rate: 码率,单位:kbps
|
1024
|
+
# @type Rate: Array
|
1025
|
+
# @param Fps: 帧率
|
1026
|
+
# @type Fps: Array
|
1027
|
+
# @param Lost: 丢包率,单位:%
|
1028
|
+
# @type Lost: Array
|
1029
|
+
# @param NetworkLatency: 网络时延,单位:ms
|
1030
|
+
# @type NetworkLatency: Array
|
1031
|
+
# @param VideoLatency: 视频时延,单位:ms
|
1032
|
+
# @type VideoLatency: Array
|
1033
|
+
# @param CpuUsed: CPU使用率,单位:%
|
1034
|
+
# @type CpuUsed: Array
|
1035
|
+
# @param MemUsed: 内存使用率,单位:%
|
1036
|
+
# @type MemUsed: Array
|
1037
|
+
# @param TimeOffset: 时间偏移量,单位:秒
|
1038
|
+
# @type TimeOffset: Array
|
1039
|
+
# @param ProjectId: 项目ID
|
1040
|
+
# @type ProjectId: String
|
1041
|
+
# @param DeviceId: 设备ID
|
1042
|
+
# @type DeviceId: String
|
1043
|
+
|
1044
|
+
attr_accessor :DeviceType, :StartTime, :EndTime, :SessionId, :Rate, :Fps, :Lost, :NetworkLatency, :VideoLatency, :CpuUsed, :MemUsed, :TimeOffset, :ProjectId, :DeviceId
|
1045
|
+
|
1046
|
+
def initialize(devicetype=nil, starttime=nil, endtime=nil, sessionid=nil, rate=nil, fps=nil, lost=nil, networklatency=nil, videolatency=nil, cpuused=nil, memused=nil, timeoffset=nil, projectid=nil, deviceid=nil)
|
1047
|
+
@DeviceType = devicetype
|
1048
|
+
@StartTime = starttime
|
1049
|
+
@EndTime = endtime
|
1050
|
+
@SessionId = sessionid
|
1051
|
+
@Rate = rate
|
1052
|
+
@Fps = fps
|
1053
|
+
@Lost = lost
|
1054
|
+
@NetworkLatency = networklatency
|
1055
|
+
@VideoLatency = videolatency
|
1056
|
+
@CpuUsed = cpuused
|
1057
|
+
@MemUsed = memused
|
1058
|
+
@TimeOffset = timeoffset
|
1059
|
+
@ProjectId = projectid
|
1060
|
+
@DeviceId = deviceid
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
def deserialize(params)
|
1064
|
+
@DeviceType = params['DeviceType']
|
1065
|
+
@StartTime = params['StartTime']
|
1066
|
+
@EndTime = params['EndTime']
|
1067
|
+
@SessionId = params['SessionId']
|
1068
|
+
@Rate = params['Rate']
|
1069
|
+
@Fps = params['Fps']
|
1070
|
+
@Lost = params['Lost']
|
1071
|
+
@NetworkLatency = params['NetworkLatency']
|
1072
|
+
@VideoLatency = params['VideoLatency']
|
1073
|
+
@CpuUsed = params['CpuUsed']
|
1074
|
+
@MemUsed = params['MemUsed']
|
1075
|
+
@TimeOffset = params['TimeOffset']
|
1076
|
+
@ProjectId = params['ProjectId']
|
1077
|
+
@DeviceId = params['DeviceId']
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# 会话信息
|
1082
|
+
class SessionInfo < TencentCloud::Common::AbstractModel
|
1083
|
+
# @param SessionId: 会话ID
|
1084
|
+
# @type SessionId: String
|
1085
|
+
# @param RemoteDeviceId: 远端设备ID
|
1086
|
+
# @type RemoteDeviceId: String
|
1087
|
+
# @param FieldDeviceId: 现场设备ID
|
1088
|
+
# @type FieldDeviceId: String
|
1089
|
+
# @param Resolution: 分辨率
|
1090
|
+
# @type Resolution: String
|
1091
|
+
# @param StartTime: 会话开始时间
|
1092
|
+
# @type StartTime: Integer
|
1093
|
+
# @param EndTime: 会话结束时间
|
1094
|
+
# @type EndTime: Integer
|
1095
|
+
# @param Quality: 通话质量:good|normal|bad,对应优良差
|
1096
|
+
# @type Quality: String
|
1097
|
+
|
1098
|
+
attr_accessor :SessionId, :RemoteDeviceId, :FieldDeviceId, :Resolution, :StartTime, :EndTime, :Quality
|
1099
|
+
|
1100
|
+
def initialize(sessionid=nil, remotedeviceid=nil, fielddeviceid=nil, resolution=nil, starttime=nil, endtime=nil, quality=nil)
|
1101
|
+
@SessionId = sessionid
|
1102
|
+
@RemoteDeviceId = remotedeviceid
|
1103
|
+
@FieldDeviceId = fielddeviceid
|
1104
|
+
@Resolution = resolution
|
1105
|
+
@StartTime = starttime
|
1106
|
+
@EndTime = endtime
|
1107
|
+
@Quality = quality
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
def deserialize(params)
|
1111
|
+
@SessionId = params['SessionId']
|
1112
|
+
@RemoteDeviceId = params['RemoteDeviceId']
|
1113
|
+
@FieldDeviceId = params['FieldDeviceId']
|
1114
|
+
@Resolution = params['Resolution']
|
1115
|
+
@StartTime = params['StartTime']
|
1116
|
+
@EndTime = params['EndTime']
|
1117
|
+
@Quality = params['Quality']
|
1118
|
+
end
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
# 单位时间间隔的会话统计数据
|
1122
|
+
class SessionIntervalStatistic < TencentCloud::Common::AbstractModel
|
1123
|
+
# @param ActiveFieldDeviceNum: 活跃现场设备数
|
1124
|
+
# @type ActiveFieldDeviceNum: Integer
|
1125
|
+
# @param ActiveRemoteDeviceNum: 活跃远端设备数
|
1126
|
+
# @type ActiveRemoteDeviceNum: Integer
|
1127
|
+
# @param SessionNum: 会话数量
|
1128
|
+
# @type SessionNum: Integer
|
1129
|
+
# @param TotalDuration: 会话时长,单位:分钟
|
1130
|
+
# @type TotalDuration: Integer
|
1131
|
+
# @param StartTime: 时间戳,单位:秒
|
1132
|
+
# @type StartTime: Integer
|
1133
|
+
# @param EndTime: 时间戳,单位:秒
|
1134
|
+
# @type EndTime: Integer
|
1135
|
+
# @param NotBadSessionRatio: 优良会话占比,单位:%
|
1136
|
+
# @type NotBadSessionRatio: Integer
|
1137
|
+
|
1138
|
+
attr_accessor :ActiveFieldDeviceNum, :ActiveRemoteDeviceNum, :SessionNum, :TotalDuration, :StartTime, :EndTime, :NotBadSessionRatio
|
1139
|
+
|
1140
|
+
def initialize(activefielddevicenum=nil, activeremotedevicenum=nil, sessionnum=nil, totalduration=nil, starttime=nil, endtime=nil, notbadsessionratio=nil)
|
1141
|
+
@ActiveFieldDeviceNum = activefielddevicenum
|
1142
|
+
@ActiveRemoteDeviceNum = activeremotedevicenum
|
1143
|
+
@SessionNum = sessionnum
|
1144
|
+
@TotalDuration = totalduration
|
1145
|
+
@StartTime = starttime
|
1146
|
+
@EndTime = endtime
|
1147
|
+
@NotBadSessionRatio = notbadsessionratio
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
def deserialize(params)
|
1151
|
+
@ActiveFieldDeviceNum = params['ActiveFieldDeviceNum']
|
1152
|
+
@ActiveRemoteDeviceNum = params['ActiveRemoteDeviceNum']
|
1153
|
+
@SessionNum = params['SessionNum']
|
1154
|
+
@TotalDuration = params['TotalDuration']
|
1155
|
+
@StartTime = params['StartTime']
|
1156
|
+
@EndTime = params['EndTime']
|
1157
|
+
@NotBadSessionRatio = params['NotBadSessionRatio']
|
1158
|
+
end
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
end
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
|