tencentcloud-sdk-cwp 3.0.908 → 3.0.910

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180228/models.rb +125 -17
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b60b75b6069f350c9caeb262fb78f306db629575
4
- data.tar.gz: 755781416107ffcc7ff6ee2ea7b97f8d1fc7e71c
3
+ metadata.gz: 28e2df54d9bfe9cc3bc3b9f91dfa08f843497cde
4
+ data.tar.gz: 1f5a5203a190ec7dc923d90a85066efec2399e1e
5
5
  SHA512:
6
- metadata.gz: 4ae14097e41323db9e0a5c7b15f348ae7e0348bfa6eea0f444e22169ff50fcfc35b3f3528bbffa6da949068ac38bc5500f5835d4b785e2dbaca1cd42ccaf1404
7
- data.tar.gz: f1ef245c4e5c97a0e50d9f6d7a7e3972185640611bb0687664a738558ef09f5bf83db89fa314fa4d03de385cfc8b174d73c72d85056acc8cbfa28170836b924c
6
+ metadata.gz: a7819c4684ce1c363f9d789c2613912a4ea8901c1c132bcb9337f7f12a9e5e527d92992ba40830aa24ca8bd6a9e03dbca35d6d620f0c5a7bdac171b5de7caeaf
7
+ data.tar.gz: 6ea726b83da08e8fda8659eccdd0d99e06aa3bf06f09ccecc6abea2919a0b44f3ec2171107873c08a2bf87d40b98a67960cb950fb1241736d4bc096326a3b8d1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.908
1
+ 3.0.910
@@ -4645,7 +4645,7 @@ module TencentCloud
4645
4645
  end
4646
4646
  end
4647
4647
 
4648
- # 高位命令策略
4648
+ # 高危命令策略
4649
4649
  class BashPolicy < TencentCloud::Common::AbstractModel
4650
4650
  # @param Name: 策略名称
4651
4651
  # @type Name: String
@@ -4655,7 +4655,7 @@ module TencentCloud
4655
4655
  # @type White: Integer
4656
4656
  # @param BashAction: 0:告警 1:白名单 2:拦截
4657
4657
  # @type BashAction: Integer
4658
- # @param Rule: 正则表达式
4658
+ # @param Rule: 正则表达式 base64 加密,该字段废弃,如果写入则自动替换为Rules.Process.CmdLine
4659
4659
  # @type Rule: String
4660
4660
  # @param Level: 危险等级(0:无,1: 高危 2:中危 3: 低危)
4661
4661
  # @type Level: Integer
@@ -4683,10 +4683,13 @@ module TencentCloud
4683
4683
  # @type ModifyTime: String
4684
4684
  # @param Uuids: 老版本兼容可能会用到
4685
4685
  # @type Uuids: Array
4686
+ # @param Rules: 规则表达式
4687
+ # 注意:此字段可能返回 null,表示取不到有效值。
4688
+ # @type Rules: :class:`Tencentcloud::Cwp.v20180228.models.PolicyRules`
4686
4689
 
4687
- attr_accessor :Name, :Enable, :White, :BashAction, :Rule, :Level, :Scope, :Id, :Descript, :EventId, :DealOldEvents, :Quuids, :Category, :CreateTime, :ModifyTime, :Uuids
4690
+ attr_accessor :Name, :Enable, :White, :BashAction, :Rule, :Level, :Scope, :Id, :Descript, :EventId, :DealOldEvents, :Quuids, :Category, :CreateTime, :ModifyTime, :Uuids, :Rules
4688
4691
 
4689
- def initialize(name=nil, enable=nil, white=nil, bashaction=nil, rule=nil, level=nil, scope=nil, id=nil, descript=nil, eventid=nil, dealoldevents=nil, quuids=nil, category=nil, createtime=nil, modifytime=nil, uuids=nil)
4692
+ def initialize(name=nil, enable=nil, white=nil, bashaction=nil, rule=nil, level=nil, scope=nil, id=nil, descript=nil, eventid=nil, dealoldevents=nil, quuids=nil, category=nil, createtime=nil, modifytime=nil, uuids=nil, rules=nil)
4690
4693
  @Name = name
4691
4694
  @Enable = enable
4692
4695
  @White = white
@@ -4703,6 +4706,7 @@ module TencentCloud
4703
4706
  @CreateTime = createtime
4704
4707
  @ModifyTime = modifytime
4705
4708
  @Uuids = uuids
4709
+ @Rules = rules
4706
4710
  end
4707
4711
 
4708
4712
  def deserialize(params)
@@ -4722,6 +4726,10 @@ module TencentCloud
4722
4726
  @CreateTime = params['CreateTime']
4723
4727
  @ModifyTime = params['ModifyTime']
4724
4728
  @Uuids = params['Uuids']
4729
+ unless params['Rules'].nil?
4730
+ @Rules = PolicyRules.new
4731
+ @Rules.deserialize(params['Rules'])
4732
+ end
4725
4733
  end
4726
4734
  end
4727
4735
 
@@ -5420,25 +5428,32 @@ module TencentCloud
5420
5428
 
5421
5429
  # CheckBashPolicyParams请求参数结构体
5422
5430
  class CheckBashPolicyParamsRequest < TencentCloud::Common::AbstractModel
5423
- # @param CheckField: 校验内容 Name或Rule ,两个都要校验时逗号分割
5431
+ # @param CheckField: 校验内容字段,如果需要检测多个字段时,用逗号分割
5432
+ # <li>Name 策略名称</li>
5433
+ # <li>Process 进程</li>
5434
+ # <li>Name PProcess 父进程</li>
5435
+ # <li>Name AProcess 祖先进程</li>
5424
5436
  # @type CheckField: String
5425
5437
  # @param EventId: 在事件列表中新增白名时需要提交事件ID
5426
5438
  # @type EventId: Integer
5427
5439
  # @param Name: 填入的规则名称
5428
5440
  # @type Name: String
5429
- # @param Rule: 用户填入的正则表达式:"正则表达式" 需与 "提交EventId对应的命令内容" 相匹配
5441
+ # @param Rule: 该字段不在维护,如果填入该参数,自动替换到Rules.Process
5430
5442
  # @type Rule: String
5431
5443
  # @param Id: 编辑时传的规则id
5432
5444
  # @type Id: Integer
5445
+ # @param Rules: 规则表达式
5446
+ # @type Rules: :class:`Tencentcloud::Cwp.v20180228.models.PolicyRules`
5433
5447
 
5434
- attr_accessor :CheckField, :EventId, :Name, :Rule, :Id
5448
+ attr_accessor :CheckField, :EventId, :Name, :Rule, :Id, :Rules
5435
5449
 
5436
- def initialize(checkfield=nil, eventid=nil, name=nil, rule=nil, id=nil)
5450
+ def initialize(checkfield=nil, eventid=nil, name=nil, rule=nil, id=nil, rules=nil)
5437
5451
  @CheckField = checkfield
5438
5452
  @EventId = eventid
5439
5453
  @Name = name
5440
5454
  @Rule = rule
5441
5455
  @Id = id
5456
+ @Rules = rules
5442
5457
  end
5443
5458
 
5444
5459
  def deserialize(params)
@@ -5447,6 +5462,10 @@ module TencentCloud
5447
5462
  @Name = params['Name']
5448
5463
  @Rule = params['Rule']
5449
5464
  @Id = params['Id']
5465
+ unless params['Rules'].nil?
5466
+ @Rules = PolicyRules.new
5467
+ @Rules.deserialize(params['Rules'])
5468
+ end
5450
5469
  end
5451
5470
  end
5452
5471
 
@@ -5724,6 +5743,28 @@ module TencentCloud
5724
5743
  end
5725
5744
  end
5726
5745
 
5746
+ # 命令行内容
5747
+ class CommandLine < TencentCloud::Common::AbstractModel
5748
+ # @param Exe: 路径,需要base64加密
5749
+ # 注意:此字段可能返回 null,表示取不到有效值。
5750
+ # @type Exe: String
5751
+ # @param Cmdline: 命令行,需要base64加密
5752
+ # 注意:此字段可能返回 null,表示取不到有效值。
5753
+ # @type Cmdline: String
5754
+
5755
+ attr_accessor :Exe, :Cmdline
5756
+
5757
+ def initialize(exe=nil, cmdline=nil)
5758
+ @Exe = exe
5759
+ @Cmdline = cmdline
5760
+ end
5761
+
5762
+ def deserialize(params)
5763
+ @Exe = params['Exe']
5764
+ @Cmdline = params['Cmdline']
5765
+ end
5766
+ end
5767
+
5727
5768
  # 组件统计数据。
5728
5769
  class ComponentStatistics < TencentCloud::Common::AbstractModel
5729
5770
  # @param Id: 组件ID。
@@ -16611,7 +16652,9 @@ module TencentCloud
16611
16652
 
16612
16653
  # DescribeJavaMemShellList请求参数结构体
16613
16654
  class DescribeJavaMemShellListRequest < TencentCloud::Common::AbstractModel
16614
- # @param Filters: 过滤条件:Keywords: ip或者主机名模糊查询, Type,Status精确匹配,CreateBeginTime,CreateEndTime时间段
16655
+ # @param Filters: 过滤条件:InstanceID、IP、
16656
+
16657
+ # MachineName主机名模糊查询, Type,Status精确匹配,CreateBeginTime,CreateEndTime时间段
16615
16658
  # @type Filters: Array
16616
16659
  # @param Offset: 偏移量,默认为0。
16617
16660
  # @type Offset: Integer
@@ -31479,10 +31522,25 @@ module TencentCloud
31479
31522
  # @param Uuid: 服务器uuid
31480
31523
  # 注意:此字段可能返回 null,表示取不到有效值。
31481
31524
  # @type Uuid: String
31525
+ # @param ClassName: 类名
31526
+ # 注意:此字段可能返回 null,表示取不到有效值。
31527
+ # @type ClassName: String
31528
+ # @param SuperClassName: 父类名
31529
+ # 注意:此字段可能返回 null,表示取不到有效值。
31530
+ # @type SuperClassName: String
31531
+ # @param Interfaces: 继承的接口
31532
+ # 注意:此字段可能返回 null,表示取不到有效值。
31533
+ # @type Interfaces: String
31534
+ # @param Annotations: 注释
31535
+ # 注意:此字段可能返回 null,表示取不到有效值。
31536
+ # @type Annotations: String
31537
+ # @param LoaderClassName: 所属的类加载器
31538
+ # 注意:此字段可能返回 null,表示取不到有效值。
31539
+ # @type LoaderClassName: String
31482
31540
 
31483
- attr_accessor :Id, :Alias, :HostIp, :Type, :Description, :CreateTime, :RecentFoundTime, :Status, :Quuid, :MachineExtraInfo, :Uuid
31541
+ attr_accessor :Id, :Alias, :HostIp, :Type, :Description, :CreateTime, :RecentFoundTime, :Status, :Quuid, :MachineExtraInfo, :Uuid, :ClassName, :SuperClassName, :Interfaces, :Annotations, :LoaderClassName
31484
31542
 
31485
- def initialize(id=nil, _alias=nil, hostip=nil, type=nil, description=nil, createtime=nil, recentfoundtime=nil, status=nil, quuid=nil, machineextrainfo=nil, uuid=nil)
31543
+ def initialize(id=nil, _alias=nil, hostip=nil, type=nil, description=nil, createtime=nil, recentfoundtime=nil, status=nil, quuid=nil, machineextrainfo=nil, uuid=nil, classname=nil, superclassname=nil, interfaces=nil, annotations=nil, loaderclassname=nil)
31486
31544
  @Id = id
31487
31545
  @Alias = _alias
31488
31546
  @HostIp = hostip
@@ -31494,6 +31552,11 @@ module TencentCloud
31494
31552
  @Quuid = quuid
31495
31553
  @MachineExtraInfo = machineextrainfo
31496
31554
  @Uuid = uuid
31555
+ @ClassName = classname
31556
+ @SuperClassName = superclassname
31557
+ @Interfaces = interfaces
31558
+ @Annotations = annotations
31559
+ @LoaderClassName = loaderclassname
31497
31560
  end
31498
31561
 
31499
31562
  def deserialize(params)
@@ -31511,6 +31574,11 @@ module TencentCloud
31511
31574
  @MachineExtraInfo.deserialize(params['MachineExtraInfo'])
31512
31575
  end
31513
31576
  @Uuid = params['Uuid']
31577
+ @ClassName = params['ClassName']
31578
+ @SuperClassName = params['SuperClassName']
31579
+ @Interfaces = params['Interfaces']
31580
+ @Annotations = params['Annotations']
31581
+ @LoaderClassName = params['LoaderClassName']
31514
31582
  end
31515
31583
  end
31516
31584
 
@@ -33823,21 +33891,25 @@ module TencentCloud
33823
33891
 
33824
33892
  # ModifyJavaMemShellsStatus请求参数结构体
33825
33893
  class ModifyJavaMemShellsStatusRequest < TencentCloud::Common::AbstractModel
33826
- # @param Ids: 事件Id数组
33827
- # @type Ids: Array
33828
33894
  # @param Status: 目标处理状态: 0 - 待处理 1 - 已加白 2 - 已删除 3 - 已忽略 4 - 已手动处理
33829
33895
  # @type Status: Integer
33896
+ # @param Ids: 事件Id数组
33897
+ # @type Ids: Array
33898
+ # @param UpdateAll: 是否更新全部,只支持忽略、已处理、删除
33899
+ # @type UpdateAll: Boolean
33830
33900
 
33831
- attr_accessor :Ids, :Status
33901
+ attr_accessor :Status, :Ids, :UpdateAll
33832
33902
 
33833
- def initialize(ids=nil, status=nil)
33834
- @Ids = ids
33903
+ def initialize(status=nil, ids=nil, updateall=nil)
33835
33904
  @Status = status
33905
+ @Ids = ids
33906
+ @UpdateAll = updateall
33836
33907
  end
33837
33908
 
33838
33909
  def deserialize(params)
33839
- @Ids = params['Ids']
33840
33910
  @Status = params['Status']
33911
+ @Ids = params['Ids']
33912
+ @UpdateAll = params['UpdateAll']
33841
33913
  end
33842
33914
  end
33843
33915
 
@@ -36207,6 +36279,42 @@ module TencentCloud
36207
36279
  end
36208
36280
  end
36209
36281
 
36282
+ # 策略规则表达式
36283
+ class PolicyRules < TencentCloud::Common::AbstractModel
36284
+ # @param Process: 进程
36285
+ # 注意:此字段可能返回 null,表示取不到有效值。
36286
+ # @type Process: :class:`Tencentcloud::Cwp.v20180228.models.CommandLine`
36287
+ # @param PProcess: 父进程
36288
+ # 注意:此字段可能返回 null,表示取不到有效值。
36289
+ # @type PProcess: :class:`Tencentcloud::Cwp.v20180228.models.CommandLine`
36290
+ # @param AProcess: 祖先进程
36291
+ # 注意:此字段可能返回 null,表示取不到有效值。
36292
+ # @type AProcess: :class:`Tencentcloud::Cwp.v20180228.models.CommandLine`
36293
+
36294
+ attr_accessor :Process, :PProcess, :AProcess
36295
+
36296
+ def initialize(process=nil, pprocess=nil, aprocess=nil)
36297
+ @Process = process
36298
+ @PProcess = pprocess
36299
+ @AProcess = aprocess
36300
+ end
36301
+
36302
+ def deserialize(params)
36303
+ unless params['Process'].nil?
36304
+ @Process = CommandLine.new
36305
+ @Process.deserialize(params['Process'])
36306
+ end
36307
+ unless params['PProcess'].nil?
36308
+ @PProcess = CommandLine.new
36309
+ @PProcess.deserialize(params['PProcess'])
36310
+ end
36311
+ unless params['AProcess'].nil?
36312
+ @AProcess = CommandLine.new
36313
+ @AProcess.deserialize(params['AProcess'])
36314
+ end
36315
+ end
36316
+ end
36317
+
36210
36318
  # 本地提权数据
36211
36319
  class PrivilegeEscalationProcess < TencentCloud::Common::AbstractModel
36212
36320
  # @param Id: 数据ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cwp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.908
4
+ version: 3.0.910
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common