tencentcloud-sdk-dasb 3.0.547 → 3.0.548

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.
@@ -274,6 +274,62 @@ module TencentCloud
274
274
  end
275
275
  end
276
276
 
277
+ # 审计日志
278
+ class AuditLogResult < TencentCloud::Common::AbstractModel
279
+ # @param Sid: 被审计会话的Sid
280
+ # @type Sid: String
281
+ # @param Uin: 审计者的编号
282
+ # @type Uin: String
283
+ # @param Time: 审计动作发生的时间
284
+ # @type Time: String
285
+ # @param ClientIp: 审计者的Ip
286
+ # @type ClientIp: String
287
+ # @param Operation: 审计动作类型,1--回放、2--中断、3--监控
288
+ # @type Operation: Integer
289
+ # @param InstanceId: 被审计主机的Id
290
+ # @type InstanceId: String
291
+ # @param DeviceName: 被审计主机的主机名
292
+ # @type DeviceName: String
293
+ # @param Protocol: 被审计会话所属的类型,如字符会话
294
+ # @type Protocol: String
295
+ # @param PrivateIp: 被审计主机的内部Ip
296
+ # @type PrivateIp: String
297
+ # @param PublicIp: 被审计主机的外部Ip
298
+ # @type PublicIp: String
299
+ # @param SubAccountUin: 审计者的子账号
300
+ # @type SubAccountUin: String
301
+
302
+ attr_accessor :Sid, :Uin, :Time, :ClientIp, :Operation, :InstanceId, :DeviceName, :Protocol, :PrivateIp, :PublicIp, :SubAccountUin
303
+
304
+ def initialize(sid=nil, uin=nil, time=nil, clientip=nil, operation=nil, instanceid=nil, devicename=nil, protocol=nil, privateip=nil, publicip=nil, subaccountuin=nil)
305
+ @Sid = sid
306
+ @Uin = uin
307
+ @Time = time
308
+ @ClientIp = clientip
309
+ @Operation = operation
310
+ @InstanceId = instanceid
311
+ @DeviceName = devicename
312
+ @Protocol = protocol
313
+ @PrivateIp = privateip
314
+ @PublicIp = publicip
315
+ @SubAccountUin = subaccountuin
316
+ end
317
+
318
+ def deserialize(params)
319
+ @Sid = params['Sid']
320
+ @Uin = params['Uin']
321
+ @Time = params['Time']
322
+ @ClientIp = params['ClientIp']
323
+ @Operation = params['Operation']
324
+ @InstanceId = params['InstanceId']
325
+ @DeviceName = params['DeviceName']
326
+ @Protocol = params['Protocol']
327
+ @PrivateIp = params['PrivateIp']
328
+ @PublicIp = params['PublicIp']
329
+ @SubAccountUin = params['SubAccountUin']
330
+ end
331
+ end
332
+
277
333
  # BindDeviceAccountPassword请求参数结构体
278
334
  class BindDeviceAccountPasswordRequest < TencentCloud::Common::AbstractModel
279
335
  # @param Id: 主机账号ID
@@ -410,6 +466,34 @@ module TencentCloud
410
466
  end
411
467
  end
412
468
 
469
+ # 命令集合
470
+ class Command < TencentCloud::Common::AbstractModel
471
+ # @param Cmd: 命令
472
+ # @type Cmd: String
473
+ # @param Time: 命令输入的时间
474
+ # @type Time: String
475
+ # @param TimeOffset: 命令执行时间相对于所属会话开始时间的偏移量,单位ms
476
+ # @type TimeOffset: Integer
477
+ # @param Action: 命令执行情况,1--允许,2--拒绝,3--确认
478
+ # @type Action: Integer
479
+
480
+ attr_accessor :Cmd, :Time, :TimeOffset, :Action
481
+
482
+ def initialize(cmd=nil, time=nil, timeoffset=nil, action=nil)
483
+ @Cmd = cmd
484
+ @Time = time
485
+ @TimeOffset = timeoffset
486
+ @Action = action
487
+ end
488
+
489
+ def deserialize(params)
490
+ @Cmd = params['Cmd']
491
+ @Time = params['Time']
492
+ @TimeOffset = params['TimeOffset']
493
+ @Action = params['Action']
494
+ end
495
+ end
496
+
413
497
  # CreateAcl请求参数结构体
414
498
  class CreateAclRequest < TencentCloud::Common::AbstractModel
415
499
  # @param Name: 权限名称,最大32字符,不能包含空白字符
@@ -1725,6 +1809,164 @@ module TencentCloud
1725
1809
  end
1726
1810
  end
1727
1811
 
1812
+ # DescribeLoginEvent请求参数结构体
1813
+ class DescribeLoginEventRequest < TencentCloud::Common::AbstractModel
1814
+ # @param UserName: 用户名,如果不包含其他条件时对user_name or real_name两个字段模糊查询
1815
+ # @type UserName: String
1816
+ # @param RealName: 姓名,模糊查询
1817
+ # @type RealName: String
1818
+ # @param StartTime: 查询时间范围,起始时间
1819
+ # @type StartTime: String
1820
+ # @param EndTime: 查询时间范围,结束时间
1821
+ # @type EndTime: String
1822
+ # @param SourceIp: 来源IP,模糊查询
1823
+ # @type SourceIp: String
1824
+ # @param Entry: 登录入口:1-字符界面,2-图形界面,3-web页面, 4-API
1825
+ # @type Entry: Integer
1826
+ # @param Result: 操作结果,1-成功,2-失败
1827
+ # @type Result: Integer
1828
+ # @param Offset: 分页偏移位置,默认值为0
1829
+ # @type Offset: Integer
1830
+ # @param Limit: 分页每页记录数,默认20
1831
+ # @type Limit: Integer
1832
+
1833
+ attr_accessor :UserName, :RealName, :StartTime, :EndTime, :SourceIp, :Entry, :Result, :Offset, :Limit
1834
+
1835
+ def initialize(username=nil, realname=nil, starttime=nil, endtime=nil, sourceip=nil, entry=nil, result=nil, offset=nil, limit=nil)
1836
+ @UserName = username
1837
+ @RealName = realname
1838
+ @StartTime = starttime
1839
+ @EndTime = endtime
1840
+ @SourceIp = sourceip
1841
+ @Entry = entry
1842
+ @Result = result
1843
+ @Offset = offset
1844
+ @Limit = limit
1845
+ end
1846
+
1847
+ def deserialize(params)
1848
+ @UserName = params['UserName']
1849
+ @RealName = params['RealName']
1850
+ @StartTime = params['StartTime']
1851
+ @EndTime = params['EndTime']
1852
+ @SourceIp = params['SourceIp']
1853
+ @Entry = params['Entry']
1854
+ @Result = params['Result']
1855
+ @Offset = params['Offset']
1856
+ @Limit = params['Limit']
1857
+ end
1858
+ end
1859
+
1860
+ # DescribeLoginEvent返回参数结构体
1861
+ class DescribeLoginEventResponse < TencentCloud::Common::AbstractModel
1862
+ # @param LoginEventSet: 登录日志列表
1863
+ # @type LoginEventSet: Array
1864
+ # @param TotalCount: 总记录数
1865
+ # @type TotalCount: Integer
1866
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1867
+ # @type RequestId: String
1868
+
1869
+ attr_accessor :LoginEventSet, :TotalCount, :RequestId
1870
+
1871
+ def initialize(logineventset=nil, totalcount=nil, requestid=nil)
1872
+ @LoginEventSet = logineventset
1873
+ @TotalCount = totalcount
1874
+ @RequestId = requestid
1875
+ end
1876
+
1877
+ def deserialize(params)
1878
+ unless params['LoginEventSet'].nil?
1879
+ @LoginEventSet = []
1880
+ params['LoginEventSet'].each do |i|
1881
+ loginevent_tmp = LoginEvent.new
1882
+ loginevent_tmp.deserialize(i)
1883
+ @LoginEventSet << loginevent_tmp
1884
+ end
1885
+ end
1886
+ @TotalCount = params['TotalCount']
1887
+ @RequestId = params['RequestId']
1888
+ end
1889
+ end
1890
+
1891
+ # DescribeOperationEvent请求参数结构体
1892
+ class DescribeOperationEventRequest < TencentCloud::Common::AbstractModel
1893
+ # @param UserName: 用户名,如果不包含其他条件时对user_name or real_name两个字段模糊查询
1894
+ # @type UserName: String
1895
+ # @param RealName: 姓名,模糊查询
1896
+ # @type RealName: String
1897
+ # @param StartTime: 查询时间范围,起始时间
1898
+ # @type StartTime: String
1899
+ # @param EndTime: 查询时间范围,结束时间
1900
+ # @type EndTime: String
1901
+ # @param SourceIp: 来源IP,模糊查询
1902
+ # @type SourceIp: String
1903
+ # @param Kind: 操作类型,参考DescribeOperationType返回结果
1904
+ # @type Kind: Integer
1905
+ # @param Result: 操作结果,1-成功,2-失败
1906
+ # @type Result: Integer
1907
+ # @param Offset: 分页偏移位置,默认值为0
1908
+ # @type Offset: Integer
1909
+ # @param Limit: 分页每页记录数,默认20
1910
+ # @type Limit: Integer
1911
+
1912
+ attr_accessor :UserName, :RealName, :StartTime, :EndTime, :SourceIp, :Kind, :Result, :Offset, :Limit
1913
+
1914
+ def initialize(username=nil, realname=nil, starttime=nil, endtime=nil, sourceip=nil, kind=nil, result=nil, offset=nil, limit=nil)
1915
+ @UserName = username
1916
+ @RealName = realname
1917
+ @StartTime = starttime
1918
+ @EndTime = endtime
1919
+ @SourceIp = sourceip
1920
+ @Kind = kind
1921
+ @Result = result
1922
+ @Offset = offset
1923
+ @Limit = limit
1924
+ end
1925
+
1926
+ def deserialize(params)
1927
+ @UserName = params['UserName']
1928
+ @RealName = params['RealName']
1929
+ @StartTime = params['StartTime']
1930
+ @EndTime = params['EndTime']
1931
+ @SourceIp = params['SourceIp']
1932
+ @Kind = params['Kind']
1933
+ @Result = params['Result']
1934
+ @Offset = params['Offset']
1935
+ @Limit = params['Limit']
1936
+ end
1937
+ end
1938
+
1939
+ # DescribeOperationEvent返回参数结构体
1940
+ class DescribeOperationEventResponse < TencentCloud::Common::AbstractModel
1941
+ # @param OperationEventSet: 操作日志列表
1942
+ # @type OperationEventSet: Array
1943
+ # @param TotalCount: 总记录数
1944
+ # @type TotalCount: Integer
1945
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1946
+ # @type RequestId: String
1947
+
1948
+ attr_accessor :OperationEventSet, :TotalCount, :RequestId
1949
+
1950
+ def initialize(operationeventset=nil, totalcount=nil, requestid=nil)
1951
+ @OperationEventSet = operationeventset
1952
+ @TotalCount = totalcount
1953
+ @RequestId = requestid
1954
+ end
1955
+
1956
+ def deserialize(params)
1957
+ unless params['OperationEventSet'].nil?
1958
+ @OperationEventSet = []
1959
+ params['OperationEventSet'].each do |i|
1960
+ operationevent_tmp = OperationEvent.new
1961
+ operationevent_tmp.deserialize(i)
1962
+ @OperationEventSet << operationevent_tmp
1963
+ end
1964
+ end
1965
+ @TotalCount = params['TotalCount']
1966
+ @RequestId = params['RequestId']
1967
+ end
1968
+ end
1969
+
1728
1970
  # DescribeResources请求参数结构体
1729
1971
  class DescribeResourcesRequest < TencentCloud::Common::AbstractModel
1730
1972
  # @param ApCode: 地域码, 如: ap-guangzhou
@@ -2231,6 +2473,42 @@ module TencentCloud
2231
2473
  end
2232
2474
  end
2233
2475
 
2476
+ # 登录日志
2477
+ class LoginEvent < TencentCloud::Common::AbstractModel
2478
+ # @param UserName: 用户名
2479
+ # @type UserName: String
2480
+ # @param RealName: 姓名
2481
+ # @type RealName: String
2482
+ # @param Time: 操作时间
2483
+ # @type Time: String
2484
+ # @param SourceIp: 来源IP
2485
+ # @type SourceIp: String
2486
+ # @param Entry: 登录入口:1-字符界面,2-图形界面,3-web页面, 4-API
2487
+ # @type Entry: Integer
2488
+ # @param Result: 操作结果,1-成功,2-失败
2489
+ # @type Result: Integer
2490
+
2491
+ attr_accessor :UserName, :RealName, :Time, :SourceIp, :Entry, :Result
2492
+
2493
+ def initialize(username=nil, realname=nil, time=nil, sourceip=nil, entry=nil, result=nil)
2494
+ @UserName = username
2495
+ @RealName = realname
2496
+ @Time = time
2497
+ @SourceIp = sourceip
2498
+ @Entry = entry
2499
+ @Result = result
2500
+ end
2501
+
2502
+ def deserialize(params)
2503
+ @UserName = params['UserName']
2504
+ @RealName = params['RealName']
2505
+ @Time = params['Time']
2506
+ @SourceIp = params['SourceIp']
2507
+ @Entry = params['Entry']
2508
+ @Result = params['Result']
2509
+ end
2510
+ end
2511
+
2234
2512
  # ModifyAcl请求参数结构体
2235
2513
  class ModifyAclRequest < TencentCloud::Common::AbstractModel
2236
2514
  # @param Name: 访问权限名称,最大32字符,不能包含空白字符
@@ -2519,6 +2797,46 @@ module TencentCloud
2519
2797
  end
2520
2798
  end
2521
2799
 
2800
+ # 操作日志
2801
+ class OperationEvent < TencentCloud::Common::AbstractModel
2802
+ # @param UserName: 用户名
2803
+ # @type UserName: String
2804
+ # @param RealName: 姓名
2805
+ # @type RealName: String
2806
+ # @param Time: 操作时间
2807
+ # @type Time: String
2808
+ # @param SourceIp: 来源IP
2809
+ # @type SourceIp: String
2810
+ # @param Kind: 操作类型
2811
+ # @type Kind: Integer
2812
+ # @param Operation: 具体操作内容
2813
+ # @type Operation: String
2814
+ # @param Result: 操作结果,1-成功,2-失败
2815
+ # @type Result: Integer
2816
+
2817
+ attr_accessor :UserName, :RealName, :Time, :SourceIp, :Kind, :Operation, :Result
2818
+
2819
+ def initialize(username=nil, realname=nil, time=nil, sourceip=nil, kind=nil, operation=nil, result=nil)
2820
+ @UserName = username
2821
+ @RealName = realname
2822
+ @Time = time
2823
+ @SourceIp = sourceip
2824
+ @Kind = kind
2825
+ @Operation = operation
2826
+ @Result = result
2827
+ end
2828
+
2829
+ def deserialize(params)
2830
+ @UserName = params['UserName']
2831
+ @RealName = params['RealName']
2832
+ @Time = params['Time']
2833
+ @SourceIp = params['SourceIp']
2834
+ @Kind = params['Kind']
2835
+ @Operation = params['Operation']
2836
+ @Result = params['Result']
2837
+ end
2838
+ end
2839
+
2522
2840
  # ResetDeviceAccountPassword请求参数结构体
2523
2841
  class ResetDeviceAccountPasswordRequest < TencentCloud::Common::AbstractModel
2524
2842
  # @param IdSet: ID集合
@@ -2744,6 +3062,881 @@ module TencentCloud
2744
3062
  end
2745
3063
  end
2746
3064
 
3065
+ # SearchAuditLog请求参数结构体
3066
+ class SearchAuditLogRequest < TencentCloud::Common::AbstractModel
3067
+ # @param StartTime: 开始时间,不得早于当前时间的180天前
3068
+ # @type StartTime: String
3069
+ # @param EndTime: 结束时间
3070
+ # @type EndTime: String
3071
+ # @param Offset: 偏移量
3072
+ # @type Offset: Integer
3073
+ # @param Limit: 每页容量,默认为20,最大200
3074
+ # @type Limit: Integer
3075
+
3076
+ attr_accessor :StartTime, :EndTime, :Offset, :Limit
3077
+
3078
+ def initialize(starttime=nil, endtime=nil, offset=nil, limit=nil)
3079
+ @StartTime = starttime
3080
+ @EndTime = endtime
3081
+ @Offset = offset
3082
+ @Limit = limit
3083
+ end
3084
+
3085
+ def deserialize(params)
3086
+ @StartTime = params['StartTime']
3087
+ @EndTime = params['EndTime']
3088
+ @Offset = params['Offset']
3089
+ @Limit = params['Limit']
3090
+ end
3091
+ end
3092
+
3093
+ # SearchAuditLog返回参数结构体
3094
+ class SearchAuditLogResponse < TencentCloud::Common::AbstractModel
3095
+ # @param AuditLogSet: 审计日志
3096
+ # @type AuditLogSet: Array
3097
+ # @param TotalCount: 日志总数量
3098
+ # @type TotalCount: Integer
3099
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3100
+ # @type RequestId: String
3101
+
3102
+ attr_accessor :AuditLogSet, :TotalCount, :RequestId
3103
+
3104
+ def initialize(auditlogset=nil, totalcount=nil, requestid=nil)
3105
+ @AuditLogSet = auditlogset
3106
+ @TotalCount = totalcount
3107
+ @RequestId = requestid
3108
+ end
3109
+
3110
+ def deserialize(params)
3111
+ unless params['AuditLogSet'].nil?
3112
+ @AuditLogSet = []
3113
+ params['AuditLogSet'].each do |i|
3114
+ auditlogresult_tmp = AuditLogResult.new
3115
+ auditlogresult_tmp.deserialize(i)
3116
+ @AuditLogSet << auditlogresult_tmp
3117
+ end
3118
+ end
3119
+ @TotalCount = params['TotalCount']
3120
+ @RequestId = params['RequestId']
3121
+ end
3122
+ end
3123
+
3124
+ # SearchCommandBySid请求参数结构体
3125
+ class SearchCommandBySidRequest < TencentCloud::Common::AbstractModel
3126
+ # @param Sid: 会话Id
3127
+ # @type Sid: String
3128
+ # @param Cmd: 命令,可模糊搜索
3129
+ # @type Cmd: String
3130
+ # @param Offset: 偏移量
3131
+ # @type Offset: Integer
3132
+ # @param Limit: 每页容量,默认20,最大200
3133
+ # @type Limit: Integer
3134
+ # @param AuditAction: 根据拦截状态进行过滤
3135
+ # @type AuditAction: Array
3136
+
3137
+ attr_accessor :Sid, :Cmd, :Offset, :Limit, :AuditAction
3138
+
3139
+ def initialize(sid=nil, cmd=nil, offset=nil, limit=nil, auditaction=nil)
3140
+ @Sid = sid
3141
+ @Cmd = cmd
3142
+ @Offset = offset
3143
+ @Limit = limit
3144
+ @AuditAction = auditaction
3145
+ end
3146
+
3147
+ def deserialize(params)
3148
+ @Sid = params['Sid']
3149
+ @Cmd = params['Cmd']
3150
+ @Offset = params['Offset']
3151
+ @Limit = params['Limit']
3152
+ @AuditAction = params['AuditAction']
3153
+ end
3154
+ end
3155
+
3156
+ # SearchCommandBySid返回参数结构体
3157
+ class SearchCommandBySidResponse < TencentCloud::Common::AbstractModel
3158
+ # @param TotalCount: 总记录数
3159
+ # @type TotalCount: Integer
3160
+ # @param CommandSet: 命令列表
3161
+ # @type CommandSet: Array
3162
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3163
+ # @type RequestId: String
3164
+
3165
+ attr_accessor :TotalCount, :CommandSet, :RequestId
3166
+
3167
+ def initialize(totalcount=nil, commandset=nil, requestid=nil)
3168
+ @TotalCount = totalcount
3169
+ @CommandSet = commandset
3170
+ @RequestId = requestid
3171
+ end
3172
+
3173
+ def deserialize(params)
3174
+ @TotalCount = params['TotalCount']
3175
+ unless params['CommandSet'].nil?
3176
+ @CommandSet = []
3177
+ params['CommandSet'].each do |i|
3178
+ command_tmp = Command.new
3179
+ command_tmp.deserialize(i)
3180
+ @CommandSet << command_tmp
3181
+ end
3182
+ end
3183
+ @RequestId = params['RequestId']
3184
+ end
3185
+ end
3186
+
3187
+ # SearchCommand请求参数结构体
3188
+ class SearchCommandRequest < TencentCloud::Common::AbstractModel
3189
+ # @param StartTime: 搜索区间的开始时间
3190
+ # @type StartTime: String
3191
+ # @param EndTime: 搜索区间的结束时间,不填默认为开始时间到现在为止
3192
+ # @type EndTime: String
3193
+ # @param UserName: 用户名
3194
+ # @type UserName: String
3195
+ # @param RealName: 姓名
3196
+ # @type RealName: String
3197
+ # @param InstanceId: 资产实例ID
3198
+ # @type InstanceId: String
3199
+ # @param DeviceName: 资产名称
3200
+ # @type DeviceName: String
3201
+ # @param PublicIp: 资产的公网IP
3202
+ # @type PublicIp: String
3203
+ # @param PrivateIp: 资产的内网IP
3204
+ # @type PrivateIp: String
3205
+ # @param Cmd: 执行的命令
3206
+ # @type Cmd: String
3207
+ # @param AuditAction: 根据拦截状态进行过滤:1 - 已执行,2 - 被阻断
3208
+ # @type AuditAction: Array
3209
+ # @param Limit: 每页容量,默认20,最大200
3210
+ # @type Limit: Integer
3211
+ # @param Offset: 分页偏移位置,默认值为0
3212
+ # @type Offset: Integer
3213
+
3214
+ attr_accessor :StartTime, :EndTime, :UserName, :RealName, :InstanceId, :DeviceName, :PublicIp, :PrivateIp, :Cmd, :AuditAction, :Limit, :Offset
3215
+
3216
+ def initialize(starttime=nil, endtime=nil, username=nil, realname=nil, instanceid=nil, devicename=nil, publicip=nil, privateip=nil, cmd=nil, auditaction=nil, limit=nil, offset=nil)
3217
+ @StartTime = starttime
3218
+ @EndTime = endtime
3219
+ @UserName = username
3220
+ @RealName = realname
3221
+ @InstanceId = instanceid
3222
+ @DeviceName = devicename
3223
+ @PublicIp = publicip
3224
+ @PrivateIp = privateip
3225
+ @Cmd = cmd
3226
+ @AuditAction = auditaction
3227
+ @Limit = limit
3228
+ @Offset = offset
3229
+ end
3230
+
3231
+ def deserialize(params)
3232
+ @StartTime = params['StartTime']
3233
+ @EndTime = params['EndTime']
3234
+ @UserName = params['UserName']
3235
+ @RealName = params['RealName']
3236
+ @InstanceId = params['InstanceId']
3237
+ @DeviceName = params['DeviceName']
3238
+ @PublicIp = params['PublicIp']
3239
+ @PrivateIp = params['PrivateIp']
3240
+ @Cmd = params['Cmd']
3241
+ @AuditAction = params['AuditAction']
3242
+ @Limit = params['Limit']
3243
+ @Offset = params['Offset']
3244
+ end
3245
+ end
3246
+
3247
+ # SearchCommand返回参数结构体
3248
+ class SearchCommandResponse < TencentCloud::Common::AbstractModel
3249
+ # @param TotalCount: 总记录数
3250
+ # @type TotalCount: Integer
3251
+ # @param Commands: 命令列表
3252
+ # @type Commands: Array
3253
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3254
+ # @type RequestId: String
3255
+
3256
+ attr_accessor :TotalCount, :Commands, :RequestId
3257
+
3258
+ def initialize(totalcount=nil, commands=nil, requestid=nil)
3259
+ @TotalCount = totalcount
3260
+ @Commands = commands
3261
+ @RequestId = requestid
3262
+ end
3263
+
3264
+ def deserialize(params)
3265
+ @TotalCount = params['TotalCount']
3266
+ unless params['Commands'].nil?
3267
+ @Commands = []
3268
+ params['Commands'].each do |i|
3269
+ searchcommandresult_tmp = SearchCommandResult.new
3270
+ searchcommandresult_tmp.deserialize(i)
3271
+ @Commands << searchcommandresult_tmp
3272
+ end
3273
+ end
3274
+ @RequestId = params['RequestId']
3275
+ end
3276
+ end
3277
+
3278
+ # 命令执行检索结果
3279
+ class SearchCommandResult < TencentCloud::Common::AbstractModel
3280
+ # @param Time: 命令输入的时间
3281
+ # @type Time: String
3282
+ # @param UserName: 用户名
3283
+ # @type UserName: String
3284
+ # @param RealName: 姓名
3285
+ # @type RealName: String
3286
+ # @param InstanceId: 资产ID
3287
+ # @type InstanceId: String
3288
+ # @param DeviceName: 资产名称
3289
+ # @type DeviceName: String
3290
+ # @param PublicIp: 资产公网IP
3291
+ # @type PublicIp: String
3292
+ # @param PrivateIp: 资产内网IP
3293
+ # @type PrivateIp: String
3294
+ # @param Cmd: 命令
3295
+ # @type Cmd: String
3296
+ # @param Action: 命令执行情况,1--允许,2--拒绝
3297
+ # @type Action: Integer
3298
+ # @param Sid: 命令所属的会话ID
3299
+ # @type Sid: String
3300
+ # @param TimeOffset: 命令执行时间相对于所属会话开始时间的偏移量,单位ms
3301
+ # @type TimeOffset: Integer
3302
+
3303
+ attr_accessor :Time, :UserName, :RealName, :InstanceId, :DeviceName, :PublicIp, :PrivateIp, :Cmd, :Action, :Sid, :TimeOffset
3304
+
3305
+ def initialize(time=nil, username=nil, realname=nil, instanceid=nil, devicename=nil, publicip=nil, privateip=nil, cmd=nil, action=nil, sid=nil, timeoffset=nil)
3306
+ @Time = time
3307
+ @UserName = username
3308
+ @RealName = realname
3309
+ @InstanceId = instanceid
3310
+ @DeviceName = devicename
3311
+ @PublicIp = publicip
3312
+ @PrivateIp = privateip
3313
+ @Cmd = cmd
3314
+ @Action = action
3315
+ @Sid = sid
3316
+ @TimeOffset = timeoffset
3317
+ end
3318
+
3319
+ def deserialize(params)
3320
+ @Time = params['Time']
3321
+ @UserName = params['UserName']
3322
+ @RealName = params['RealName']
3323
+ @InstanceId = params['InstanceId']
3324
+ @DeviceName = params['DeviceName']
3325
+ @PublicIp = params['PublicIp']
3326
+ @PrivateIp = params['PrivateIp']
3327
+ @Cmd = params['Cmd']
3328
+ @Action = params['Action']
3329
+ @Sid = params['Sid']
3330
+ @TimeOffset = params['TimeOffset']
3331
+ end
3332
+ end
3333
+
3334
+ # SearchFileBySid请求参数结构体
3335
+ class SearchFileBySidRequest < TencentCloud::Common::AbstractModel
3336
+ # @param Sid: 若入参为Id,则其他入参字段不作为搜索依据,仅按照Id来搜索会话
3337
+ # @type Sid: String
3338
+ # @param AuditLog: 是否创建审计日志,通过查看按钮调用时为true,其他为false
3339
+ # @type AuditLog: Boolean
3340
+ # @param Limit: 分页的页内记录数,默认为20,最大200
3341
+ # @type Limit: Integer
3342
+ # @param FileName: 可填写路径名或文件名
3343
+ # @type FileName: String
3344
+ # @param Offset: 分页用偏移量
3345
+ # @type Offset: Integer
3346
+ # @param AuditAction: 1-已执行, 2-被阻断
3347
+ # @type AuditAction: Integer
3348
+ # @param TypeFilters: 以Protocol和Method为条件查询
3349
+ # @type TypeFilters: Array
3350
+
3351
+ attr_accessor :Sid, :AuditLog, :Limit, :FileName, :Offset, :AuditAction, :TypeFilters
3352
+
3353
+ def initialize(sid=nil, auditlog=nil, limit=nil, filename=nil, offset=nil, auditaction=nil, typefilters=nil)
3354
+ @Sid = sid
3355
+ @AuditLog = auditlog
3356
+ @Limit = limit
3357
+ @FileName = filename
3358
+ @Offset = offset
3359
+ @AuditAction = auditaction
3360
+ @TypeFilters = typefilters
3361
+ end
3362
+
3363
+ def deserialize(params)
3364
+ @Sid = params['Sid']
3365
+ @AuditLog = params['AuditLog']
3366
+ @Limit = params['Limit']
3367
+ @FileName = params['FileName']
3368
+ @Offset = params['Offset']
3369
+ @AuditAction = params['AuditAction']
3370
+ unless params['TypeFilters'].nil?
3371
+ @TypeFilters = []
3372
+ params['TypeFilters'].each do |i|
3373
+ searchfiletypefilter_tmp = SearchFileTypeFilter.new
3374
+ searchfiletypefilter_tmp.deserialize(i)
3375
+ @TypeFilters << searchfiletypefilter_tmp
3376
+ end
3377
+ end
3378
+ end
3379
+ end
3380
+
3381
+ # SearchFileBySid返回参数结构体
3382
+ class SearchFileBySidResponse < TencentCloud::Common::AbstractModel
3383
+ # @param TotalCount: 记录数
3384
+ # @type TotalCount: Integer
3385
+ # @param SearchFileBySidResult: 某会话的文件操作列表
3386
+ # 注意:此字段可能返回 null,表示取不到有效值。
3387
+ # @type SearchFileBySidResult: Array
3388
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3389
+ # @type RequestId: String
3390
+
3391
+ attr_accessor :TotalCount, :SearchFileBySidResult, :RequestId
3392
+
3393
+ def initialize(totalcount=nil, searchfilebysidresult=nil, requestid=nil)
3394
+ @TotalCount = totalcount
3395
+ @SearchFileBySidResult = searchfilebysidresult
3396
+ @RequestId = requestid
3397
+ end
3398
+
3399
+ def deserialize(params)
3400
+ @TotalCount = params['TotalCount']
3401
+ unless params['SearchFileBySidResult'].nil?
3402
+ @SearchFileBySidResult = []
3403
+ params['SearchFileBySidResult'].each do |i|
3404
+ searchfilebysidresult_tmp = SearchFileBySidResult.new
3405
+ searchfilebysidresult_tmp.deserialize(i)
3406
+ @SearchFileBySidResult << searchfilebysidresult_tmp
3407
+ end
3408
+ end
3409
+ @RequestId = params['RequestId']
3410
+ end
3411
+ end
3412
+
3413
+ # 文件操作搜索结果
3414
+ class SearchFileBySidResult < TencentCloud::Common::AbstractModel
3415
+ # @param Time: 文件操作时间
3416
+ # @type Time: String
3417
+ # @param Method: 1-上传文件 2-下载文件 3-删除文件 4-移动文件 5-重命名文件 6-新建文件夹 7-移动文件夹 8-重命名文件夹 9-删除文件夹
3418
+ # @type Method: Integer
3419
+ # @param Protocol: 文件传输协议
3420
+ # @type Protocol: String
3421
+ # @param FileCurr: method为上传、下载、删除时文件在服务器上的位置, 或重命名、移动文件前文件的位置
3422
+ # @type FileCurr: String
3423
+ # @param FileNew: method为重命名、移动文件时代表移动后的新位置.其他情况为null
3424
+ # 注意:此字段可能返回 null,表示取不到有效值。
3425
+ # @type FileNew: String
3426
+ # @param Size: method为上传文件、下载文件、删除文件时显示文件大小。其他情况为null
3427
+ # 注意:此字段可能返回 null,表示取不到有效值。
3428
+ # @type Size: Integer
3429
+ # @param Action: 堡垒机拦截情况, 1-已执行, 2-被阻断
3430
+ # @type Action: Integer
3431
+
3432
+ attr_accessor :Time, :Method, :Protocol, :FileCurr, :FileNew, :Size, :Action
3433
+
3434
+ def initialize(time=nil, method=nil, protocol=nil, filecurr=nil, filenew=nil, size=nil, action=nil)
3435
+ @Time = time
3436
+ @Method = method
3437
+ @Protocol = protocol
3438
+ @FileCurr = filecurr
3439
+ @FileNew = filenew
3440
+ @Size = size
3441
+ @Action = action
3442
+ end
3443
+
3444
+ def deserialize(params)
3445
+ @Time = params['Time']
3446
+ @Method = params['Method']
3447
+ @Protocol = params['Protocol']
3448
+ @FileCurr = params['FileCurr']
3449
+ @FileNew = params['FileNew']
3450
+ @Size = params['Size']
3451
+ @Action = params['Action']
3452
+ end
3453
+ end
3454
+
3455
+ # SearchFile请求参数结构体
3456
+ class SearchFileRequest < TencentCloud::Common::AbstractModel
3457
+ # @param StartTime: 查询开始时间
3458
+ # @type StartTime: String
3459
+ # @param EndTime: 查询结束时间
3460
+ # @type EndTime: String
3461
+ # @param UserName: 用户名
3462
+ # @type UserName: String
3463
+ # @param RealName: 姓名
3464
+ # @type RealName: String
3465
+ # @param InstanceId: 资产ID
3466
+ # @type InstanceId: String
3467
+ # @param DeviceName: 资产名称
3468
+ # @type DeviceName: String
3469
+ # @param PublicIp: 资产公网IP
3470
+ # @type PublicIp: String
3471
+ # @param PrivateIp: 资产内网IP
3472
+ # @type PrivateIp: String
3473
+ # @param Method: 操作类型:1 - 文件上传,2 - 文件下载,3 - 文件删除,4 - 文件(夹)移动,5 - 文件(夹)重命名,6 - 新建文件夹,9 - 删除文件夹
3474
+ # @type Method: Array
3475
+ # @param FileName: 可填写路径名或文件(夹)名
3476
+ # @type FileName: String
3477
+ # @param AuditAction: 1-已执行, 2-被阻断
3478
+ # @type AuditAction: Array
3479
+ # @param Limit: 分页的页内记录数,默认为20,最大200
3480
+ # @type Limit: Integer
3481
+ # @param Offset: 分页偏移位置,默认值为0
3482
+ # @type Offset: Integer
3483
+
3484
+ attr_accessor :StartTime, :EndTime, :UserName, :RealName, :InstanceId, :DeviceName, :PublicIp, :PrivateIp, :Method, :FileName, :AuditAction, :Limit, :Offset
3485
+
3486
+ def initialize(starttime=nil, endtime=nil, username=nil, realname=nil, instanceid=nil, devicename=nil, publicip=nil, privateip=nil, method=nil, filename=nil, auditaction=nil, limit=nil, offset=nil)
3487
+ @StartTime = starttime
3488
+ @EndTime = endtime
3489
+ @UserName = username
3490
+ @RealName = realname
3491
+ @InstanceId = instanceid
3492
+ @DeviceName = devicename
3493
+ @PublicIp = publicip
3494
+ @PrivateIp = privateip
3495
+ @Method = method
3496
+ @FileName = filename
3497
+ @AuditAction = auditaction
3498
+ @Limit = limit
3499
+ @Offset = offset
3500
+ end
3501
+
3502
+ def deserialize(params)
3503
+ @StartTime = params['StartTime']
3504
+ @EndTime = params['EndTime']
3505
+ @UserName = params['UserName']
3506
+ @RealName = params['RealName']
3507
+ @InstanceId = params['InstanceId']
3508
+ @DeviceName = params['DeviceName']
3509
+ @PublicIp = params['PublicIp']
3510
+ @PrivateIp = params['PrivateIp']
3511
+ @Method = params['Method']
3512
+ @FileName = params['FileName']
3513
+ @AuditAction = params['AuditAction']
3514
+ @Limit = params['Limit']
3515
+ @Offset = params['Offset']
3516
+ end
3517
+ end
3518
+
3519
+ # SearchFile返回参数结构体
3520
+ class SearchFileResponse < TencentCloud::Common::AbstractModel
3521
+ # @param TotalCount: 记录数
3522
+ # @type TotalCount: Integer
3523
+ # @param Files: 文件操作列表
3524
+ # 注意:此字段可能返回 null,表示取不到有效值。
3525
+ # @type Files: Array
3526
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3527
+ # @type RequestId: String
3528
+
3529
+ attr_accessor :TotalCount, :Files, :RequestId
3530
+
3531
+ def initialize(totalcount=nil, files=nil, requestid=nil)
3532
+ @TotalCount = totalcount
3533
+ @Files = files
3534
+ @RequestId = requestid
3535
+ end
3536
+
3537
+ def deserialize(params)
3538
+ @TotalCount = params['TotalCount']
3539
+ unless params['Files'].nil?
3540
+ @Files = []
3541
+ params['Files'].each do |i|
3542
+ searchfileresult_tmp = SearchFileResult.new
3543
+ searchfileresult_tmp.deserialize(i)
3544
+ @Files << searchfileresult_tmp
3545
+ end
3546
+ end
3547
+ @RequestId = params['RequestId']
3548
+ end
3549
+ end
3550
+
3551
+ # 文件传输检索结果
3552
+ class SearchFileResult < TencentCloud::Common::AbstractModel
3553
+ # @param Time: 文件传输的时间
3554
+ # @type Time: String
3555
+ # @param UserName: 用户名
3556
+ # @type UserName: String
3557
+ # @param RealName: 姓名
3558
+ # @type RealName: String
3559
+ # @param InstanceId: 资产ID
3560
+ # @type InstanceId: String
3561
+ # @param DeviceName: 资产名称
3562
+ # @type DeviceName: String
3563
+ # @param PublicIp: 资产公网IP
3564
+ # @type PublicIp: String
3565
+ # @param PrivateIp: 资产内网IP
3566
+ # @type PrivateIp: String
3567
+ # @param Action: 操作结果:1 - 已执行,2 - 已阻断
3568
+ # @type Action: Integer
3569
+ # @param Method: 操作类型:1 - 文件上传,2 - 文件下载,3 - 文件删除,4 - 文件(夹)移动,5 - 文件(夹)重命名,6 - 新建文件夹,9 - 删除文件夹
3570
+ # @type Method: Integer
3571
+ # @param FileCurr: 下载的文件(夹)路径及名称
3572
+ # @type FileCurr: String
3573
+ # @param FileNew: 上传或新建文件(夹)路径及名称
3574
+ # @type FileNew: String
3575
+
3576
+ attr_accessor :Time, :UserName, :RealName, :InstanceId, :DeviceName, :PublicIp, :PrivateIp, :Action, :Method, :FileCurr, :FileNew
3577
+
3578
+ def initialize(time=nil, username=nil, realname=nil, instanceid=nil, devicename=nil, publicip=nil, privateip=nil, action=nil, method=nil, filecurr=nil, filenew=nil)
3579
+ @Time = time
3580
+ @UserName = username
3581
+ @RealName = realname
3582
+ @InstanceId = instanceid
3583
+ @DeviceName = devicename
3584
+ @PublicIp = publicip
3585
+ @PrivateIp = privateip
3586
+ @Action = action
3587
+ @Method = method
3588
+ @FileCurr = filecurr
3589
+ @FileNew = filenew
3590
+ end
3591
+
3592
+ def deserialize(params)
3593
+ @Time = params['Time']
3594
+ @UserName = params['UserName']
3595
+ @RealName = params['RealName']
3596
+ @InstanceId = params['InstanceId']
3597
+ @DeviceName = params['DeviceName']
3598
+ @PublicIp = params['PublicIp']
3599
+ @PrivateIp = params['PrivateIp']
3600
+ @Action = params['Action']
3601
+ @Method = params['Method']
3602
+ @FileCurr = params['FileCurr']
3603
+ @FileNew = params['FileNew']
3604
+ end
3605
+ end
3606
+
3607
+ # 用于搜索文件传输记录等日志时按照protocol和method进行过滤
3608
+ class SearchFileTypeFilter < TencentCloud::Common::AbstractModel
3609
+ # @param Protocol: 需要查询的文件传输类型,如SFTP/CLIP/RDP/RZSZ
3610
+ # @type Protocol: String
3611
+ # @param Method: 在当前指定的protocol下进一步过滤具体操作类型,如剪贴板文件上传,剪贴板文件下载等
3612
+ # @type Method: Array
3613
+
3614
+ attr_accessor :Protocol, :Method
3615
+
3616
+ def initialize(protocol=nil, method=nil)
3617
+ @Protocol = protocol
3618
+ @Method = method
3619
+ end
3620
+
3621
+ def deserialize(params)
3622
+ @Protocol = params['Protocol']
3623
+ @Method = params['Method']
3624
+ end
3625
+ end
3626
+
3627
+ # SearchSessionCommand请求参数结构体
3628
+ class SearchSessionCommandRequest < TencentCloud::Common::AbstractModel
3629
+ # @param Cmd: 检索的目标命令,为模糊搜索
3630
+ # @type Cmd: String
3631
+ # @param StartTime: 开始时间,不得早于当前时间的180天前
3632
+ # @type StartTime: String
3633
+ # @param Offset: 分页偏移位置,默认值为0
3634
+ # @type Offset: Integer
3635
+ # @param Limit: 默认值为20,最大200
3636
+ # @type Limit: Integer
3637
+ # @param EndTime: 结束时间
3638
+ # @type EndTime: String
3639
+
3640
+ attr_accessor :Cmd, :StartTime, :Offset, :Limit, :EndTime
3641
+
3642
+ def initialize(cmd=nil, starttime=nil, offset=nil, limit=nil, endtime=nil)
3643
+ @Cmd = cmd
3644
+ @StartTime = starttime
3645
+ @Offset = offset
3646
+ @Limit = limit
3647
+ @EndTime = endtime
3648
+ end
3649
+
3650
+ def deserialize(params)
3651
+ @Cmd = params['Cmd']
3652
+ @StartTime = params['StartTime']
3653
+ @Offset = params['Offset']
3654
+ @Limit = params['Limit']
3655
+ @EndTime = params['EndTime']
3656
+ end
3657
+ end
3658
+
3659
+ # SearchSessionCommand返回参数结构体
3660
+ class SearchSessionCommandResponse < TencentCloud::Common::AbstractModel
3661
+ # @param TotalCount: 记录总数
3662
+ # @type TotalCount: Integer
3663
+ # @param CommandSessionSet: 命令和所属会话
3664
+ # @type CommandSessionSet: Array
3665
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3666
+ # @type RequestId: String
3667
+
3668
+ attr_accessor :TotalCount, :CommandSessionSet, :RequestId
3669
+
3670
+ def initialize(totalcount=nil, commandsessionset=nil, requestid=nil)
3671
+ @TotalCount = totalcount
3672
+ @CommandSessionSet = commandsessionset
3673
+ @RequestId = requestid
3674
+ end
3675
+
3676
+ def deserialize(params)
3677
+ @TotalCount = params['TotalCount']
3678
+ unless params['CommandSessionSet'].nil?
3679
+ @CommandSessionSet = []
3680
+ params['CommandSessionSet'].each do |i|
3681
+ sessioncommand_tmp = SessionCommand.new
3682
+ sessioncommand_tmp.deserialize(i)
3683
+ @CommandSessionSet << sessioncommand_tmp
3684
+ end
3685
+ end
3686
+ @RequestId = params['RequestId']
3687
+ end
3688
+ end
3689
+
3690
+ # SearchSession请求参数结构体
3691
+ class SearchSessionRequest < TencentCloud::Common::AbstractModel
3692
+ # @param PrivateIp: 内部Ip
3693
+ # @type PrivateIp: String
3694
+ # @param PublicIp: 外部Ip
3695
+ # @type PublicIp: String
3696
+ # @param UserName: 用户名,长度不超过20
3697
+ # @type UserName: String
3698
+ # @param Account: 账号,长度不超过64
3699
+ # @type Account: String
3700
+ # @param FromIp: 来源Ip
3701
+ # @type FromIp: String
3702
+ # @param StartTime: 搜索区间的开始时间。若入参是Id,则非必传,否则为必传。
3703
+ # @type StartTime: String
3704
+ # @param EndTime: 搜索区间的结束时间
3705
+ # @type EndTime: String
3706
+ # @param Kind: 会话协议类型,只能是1、2、3或4 对应关系为1-tui 2-gui 3-file 4-数据库。若入参是Id,则非必传,否则为必传。
3707
+ # @type Kind: Integer
3708
+ # @param Offset: 偏移量
3709
+ # @type Offset: Integer
3710
+ # @param Limit: 分页的页内记录数,默认为20,最大200
3711
+ # @type Limit: Integer
3712
+ # @param RealName: 姓名,长度不超过20
3713
+ # @type RealName: String
3714
+ # @param DeviceName: 主机名,长度不超过64
3715
+ # @type DeviceName: String
3716
+ # @param Status: 状态,1为活跃,2为结束,3为强制离线,4为其他错误
3717
+ # @type Status: Integer
3718
+ # @param Id: 若入参为Id,则其他入参字段不作为搜索依据,仅按照Id来搜索会话
3719
+ # @type Id: String
3720
+
3721
+ attr_accessor :PrivateIp, :PublicIp, :UserName, :Account, :FromIp, :StartTime, :EndTime, :Kind, :Offset, :Limit, :RealName, :DeviceName, :Status, :Id
3722
+
3723
+ def initialize(privateip=nil, publicip=nil, username=nil, account=nil, fromip=nil, starttime=nil, endtime=nil, kind=nil, offset=nil, limit=nil, realname=nil, devicename=nil, status=nil, id=nil)
3724
+ @PrivateIp = privateip
3725
+ @PublicIp = publicip
3726
+ @UserName = username
3727
+ @Account = account
3728
+ @FromIp = fromip
3729
+ @StartTime = starttime
3730
+ @EndTime = endtime
3731
+ @Kind = kind
3732
+ @Offset = offset
3733
+ @Limit = limit
3734
+ @RealName = realname
3735
+ @DeviceName = devicename
3736
+ @Status = status
3737
+ @Id = id
3738
+ end
3739
+
3740
+ def deserialize(params)
3741
+ @PrivateIp = params['PrivateIp']
3742
+ @PublicIp = params['PublicIp']
3743
+ @UserName = params['UserName']
3744
+ @Account = params['Account']
3745
+ @FromIp = params['FromIp']
3746
+ @StartTime = params['StartTime']
3747
+ @EndTime = params['EndTime']
3748
+ @Kind = params['Kind']
3749
+ @Offset = params['Offset']
3750
+ @Limit = params['Limit']
3751
+ @RealName = params['RealName']
3752
+ @DeviceName = params['DeviceName']
3753
+ @Status = params['Status']
3754
+ @Id = params['Id']
3755
+ end
3756
+ end
3757
+
3758
+ # SearchSession返回参数结构体
3759
+ class SearchSessionResponse < TencentCloud::Common::AbstractModel
3760
+ # @param TotalCount: 记录数
3761
+ # @type TotalCount: Integer
3762
+ # @param SessionSet: 会话信息列表
3763
+ # @type SessionSet: Array
3764
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3765
+ # @type RequestId: String
3766
+
3767
+ attr_accessor :TotalCount, :SessionSet, :RequestId
3768
+
3769
+ def initialize(totalcount=nil, sessionset=nil, requestid=nil)
3770
+ @TotalCount = totalcount
3771
+ @SessionSet = sessionset
3772
+ @RequestId = requestid
3773
+ end
3774
+
3775
+ def deserialize(params)
3776
+ @TotalCount = params['TotalCount']
3777
+ unless params['SessionSet'].nil?
3778
+ @SessionSet = []
3779
+ params['SessionSet'].each do |i|
3780
+ sessionresult_tmp = SessionResult.new
3781
+ sessionresult_tmp.deserialize(i)
3782
+ @SessionSet << sessionresult_tmp
3783
+ end
3784
+ end
3785
+ @RequestId = params['RequestId']
3786
+ end
3787
+ end
3788
+
3789
+ # 命令和所属会话
3790
+ class SessionCommand < TencentCloud::Common::AbstractModel
3791
+ # @param StartTime: 开始时间
3792
+ # @type StartTime: String
3793
+ # @param EndTime: 结束时间
3794
+ # @type EndTime: String
3795
+ # @param UserName: 用户名
3796
+ # @type UserName: String
3797
+ # @param RealName: 账号
3798
+ # @type RealName: String
3799
+ # @param DeviceName: 设备名
3800
+ # @type DeviceName: String
3801
+ # @param PrivateIp: 内部Ip
3802
+ # @type PrivateIp: String
3803
+ # @param PublicIp: 外部Ip
3804
+ # @type PublicIp: String
3805
+ # @param Commands: 命令列表
3806
+ # @type Commands: Array
3807
+ # @param Count: 记录数
3808
+ # @type Count: Integer
3809
+ # @param Id: 会话Id
3810
+ # @type Id: String
3811
+ # @param InstanceId: 设备id
3812
+ # @type InstanceId: String
3813
+ # @param ApCode: 设备所属的地域
3814
+ # @type ApCode: String
3815
+
3816
+ attr_accessor :StartTime, :EndTime, :UserName, :RealName, :DeviceName, :PrivateIp, :PublicIp, :Commands, :Count, :Id, :InstanceId, :ApCode
3817
+
3818
+ def initialize(starttime=nil, endtime=nil, username=nil, realname=nil, devicename=nil, privateip=nil, publicip=nil, commands=nil, count=nil, id=nil, instanceid=nil, apcode=nil)
3819
+ @StartTime = starttime
3820
+ @EndTime = endtime
3821
+ @UserName = username
3822
+ @RealName = realname
3823
+ @DeviceName = devicename
3824
+ @PrivateIp = privateip
3825
+ @PublicIp = publicip
3826
+ @Commands = commands
3827
+ @Count = count
3828
+ @Id = id
3829
+ @InstanceId = instanceid
3830
+ @ApCode = apcode
3831
+ end
3832
+
3833
+ def deserialize(params)
3834
+ @StartTime = params['StartTime']
3835
+ @EndTime = params['EndTime']
3836
+ @UserName = params['UserName']
3837
+ @RealName = params['RealName']
3838
+ @DeviceName = params['DeviceName']
3839
+ @PrivateIp = params['PrivateIp']
3840
+ @PublicIp = params['PublicIp']
3841
+ unless params['Commands'].nil?
3842
+ @Commands = []
3843
+ params['Commands'].each do |i|
3844
+ command_tmp = Command.new
3845
+ command_tmp.deserialize(i)
3846
+ @Commands << command_tmp
3847
+ end
3848
+ end
3849
+ @Count = params['Count']
3850
+ @Id = params['Id']
3851
+ @InstanceId = params['InstanceId']
3852
+ @ApCode = params['ApCode']
3853
+ end
3854
+ end
3855
+
3856
+ # 搜索字符或图形会话时返回的SessionResul结构体
3857
+ class SessionResult < TencentCloud::Common::AbstractModel
3858
+ # @param UserName: 用户名
3859
+ # @type UserName: String
3860
+ # @param RealName: 姓名
3861
+ # @type RealName: String
3862
+ # @param Account: 主机账号
3863
+ # @type Account: String
3864
+ # @param StartTime: 开始时间
3865
+ # @type StartTime: String
3866
+ # @param EndTime: 结束时间
3867
+ # @type EndTime: String
3868
+ # @param Size: 会话大小
3869
+ # @type Size: Integer
3870
+ # @param InstanceId: 设备ID
3871
+ # @type InstanceId: String
3872
+ # @param DeviceName: 设备名
3873
+ # @type DeviceName: String
3874
+ # @param PrivateIp: 内部Ip
3875
+ # @type PrivateIp: String
3876
+ # @param PublicIp: 外部Ip
3877
+ # @type PublicIp: String
3878
+ # @param FromIp: 来源Ip
3879
+ # @type FromIp: String
3880
+ # @param Duration: 会话持续时长
3881
+ # @type Duration: Float
3882
+ # @param Count: 该会话内命令数量 ,搜索图形会话时该字段无意义
3883
+ # @type Count: Integer
3884
+ # @param DangerCount: 该会话内高危命令数,搜索图形时该字段无意义
3885
+ # @type DangerCount: Integer
3886
+ # @param Status: 会话状态,如1会话活跃 2会话结束 3强制离线 4其他错误
3887
+ # @type Status: Integer
3888
+ # @param Id: 会话Id
3889
+ # @type Id: String
3890
+ # @param ApCode: 设备所属的地域
3891
+ # @type ApCode: String
3892
+ # @param Protocol: 会话协议
3893
+ # @type Protocol: String
3894
+
3895
+ attr_accessor :UserName, :RealName, :Account, :StartTime, :EndTime, :Size, :InstanceId, :DeviceName, :PrivateIp, :PublicIp, :FromIp, :Duration, :Count, :DangerCount, :Status, :Id, :ApCode, :Protocol
3896
+
3897
+ def initialize(username=nil, realname=nil, account=nil, starttime=nil, endtime=nil, size=nil, instanceid=nil, devicename=nil, privateip=nil, publicip=nil, fromip=nil, duration=nil, count=nil, dangercount=nil, status=nil, id=nil, apcode=nil, protocol=nil)
3898
+ @UserName = username
3899
+ @RealName = realname
3900
+ @Account = account
3901
+ @StartTime = starttime
3902
+ @EndTime = endtime
3903
+ @Size = size
3904
+ @InstanceId = instanceid
3905
+ @DeviceName = devicename
3906
+ @PrivateIp = privateip
3907
+ @PublicIp = publicip
3908
+ @FromIp = fromip
3909
+ @Duration = duration
3910
+ @Count = count
3911
+ @DangerCount = dangercount
3912
+ @Status = status
3913
+ @Id = id
3914
+ @ApCode = apcode
3915
+ @Protocol = protocol
3916
+ end
3917
+
3918
+ def deserialize(params)
3919
+ @UserName = params['UserName']
3920
+ @RealName = params['RealName']
3921
+ @Account = params['Account']
3922
+ @StartTime = params['StartTime']
3923
+ @EndTime = params['EndTime']
3924
+ @Size = params['Size']
3925
+ @InstanceId = params['InstanceId']
3926
+ @DeviceName = params['DeviceName']
3927
+ @PrivateIp = params['PrivateIp']
3928
+ @PublicIp = params['PublicIp']
3929
+ @FromIp = params['FromIp']
3930
+ @Duration = params['Duration']
3931
+ @Count = params['Count']
3932
+ @DangerCount = params['DangerCount']
3933
+ @Status = params['Status']
3934
+ @Id = params['Id']
3935
+ @ApCode = params['ApCode']
3936
+ @Protocol = params['Protocol']
3937
+ end
3938
+ end
3939
+
2747
3940
  # 资产标签
2748
3941
  class TagFilter < TencentCloud::Common::AbstractModel
2749
3942
  # @param TagKey: 标签键