tencentcloud-sdk-ssa 3.0.510 → 3.0.511

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fb5254ed6a16424c1f7b37592536955bde0f9b1
4
- data.tar.gz: 3ca84369f8ca9b3b3399a2940a0c0236198e1762
3
+ metadata.gz: a976a9034160bb7cd20d64ff75c412edff94c13c
4
+ data.tar.gz: cf34278e8f130ff0649a45ad362521bfb074d84b
5
5
  SHA512:
6
- metadata.gz: f97f13320ed103ae145b6df8d9025689c87f1f79ee0b1a4c4b7a517bf8cf63d558409c83dcafa71d4e6ef99760ed39d57abb7a5e5b79b5877c9546e3dce2f54a
7
- data.tar.gz: aaa4ab2bc91db46de3e802a325612e5a712b738b733b0a6392345c573162916aac904a6780762276f98ee2614d35fca8ff2314fc78cb3c1c4507e01ca1ebadf8
6
+ metadata.gz: 1b50d5ca54d867a40031dd8ebae90292617632fcd11dfc5e0ef5e5500779b2de61747db6a2b051b7cdba56934da0f0a89c66e114be3db0416c028a6b71a1c479
7
+ data.tar.gz: 905412621292b490c0da151118d6a6e939820b528f80f17c6690110e274bf09485f8a1a3bec09224a6ee83d512ab3442c46b98738afeaf9adb2a5b7555bebc84
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.510
1
+ 3.0.511
@@ -557,6 +557,30 @@ module TencentCloud
557
557
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
558
  end
559
559
 
560
+ # 安全事件通用字段
561
+
562
+ # @param request: Request instance for SaEventPub.
563
+ # @type request: :class:`Tencentcloud::ssa::V20180608::SaEventPubRequest`
564
+ # @rtype: :class:`Tencentcloud::ssa::V20180608::SaEventPubResponse`
565
+ def SaEventPub(request)
566
+ body = send_request('SaEventPub', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = SaEventPubResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
560
584
 
561
585
  end
562
586
  end
@@ -2863,6 +2863,62 @@ module TencentCloud
2863
2863
  end
2864
2864
  end
2865
2865
 
2866
+ # DataSaEventPub
2867
+ class ListDataSaEventPub < TencentCloud::Common::AbstractModel
2868
+ # @param Time: 受影响资产
2869
+ # @type Time: String
2870
+ # @param EventType1: 安全事件名称
2871
+ # @type EventType1: Integer
2872
+ # @param EventType2: 安全事件1级分类
2873
+ # @type EventType2: Integer
2874
+ # @param EventName: 安全事件2级分类
2875
+ # @type EventName: String
2876
+ # @param Level: 风险等级
2877
+ # @type Level: Integer
2878
+ # @param Status: 安全事件状态
2879
+ # @type Status: Integer
2880
+ # @param SrcIp: 攻击源ip
2881
+ # @type SrcIp: String
2882
+ # @param DstIp: 攻击目标ip
2883
+ # @type DstIp: String
2884
+ # @param DstPort: 攻击目标端口
2885
+ # @type DstPort: Integer
2886
+ # @param Asset: 受影响资产
2887
+ # @type Asset: String
2888
+ # @param OldIdMd5: 私有字段和公有字段映射的原始采集数据唯一标识的MD5值
2889
+ # @type OldIdMd5: String
2890
+
2891
+ attr_accessor :Time, :EventType1, :EventType2, :EventName, :Level, :Status, :SrcIp, :DstIp, :DstPort, :Asset, :OldIdMd5
2892
+
2893
+ def initialize(time=nil, eventtype1=nil, eventtype2=nil, eventname=nil, level=nil, status=nil, srcip=nil, dstip=nil, dstport=nil, asset=nil, oldidmd5=nil)
2894
+ @Time = time
2895
+ @EventType1 = eventtype1
2896
+ @EventType2 = eventtype2
2897
+ @EventName = eventname
2898
+ @Level = level
2899
+ @Status = status
2900
+ @SrcIp = srcip
2901
+ @DstIp = dstip
2902
+ @DstPort = dstport
2903
+ @Asset = asset
2904
+ @OldIdMd5 = oldidmd5
2905
+ end
2906
+
2907
+ def deserialize(params)
2908
+ @Time = params['Time']
2909
+ @EventType1 = params['EventType1']
2910
+ @EventType2 = params['EventType2']
2911
+ @EventName = params['EventName']
2912
+ @Level = params['Level']
2913
+ @Status = params['Status']
2914
+ @SrcIp = params['SrcIp']
2915
+ @DstIp = params['DstIp']
2916
+ @DstPort = params['DstPort']
2917
+ @Asset = params['Asset']
2918
+ @OldIdMd5 = params['OldIdMd5']
2919
+ end
2920
+ end
2921
+
2866
2922
  # 测绘记录
2867
2923
  class MappingResult < TencentCloud::Common::AbstractModel
2868
2924
  # @param AssetName: 资产名称
@@ -2972,6 +3028,33 @@ module TencentCloud
2972
3028
  end
2973
3029
  end
2974
3030
 
3031
+ # DataSaEventPub
3032
+ class ObjDataSaEventPub < TencentCloud::Common::AbstractModel
3033
+ # @param Count: Count
3034
+ # @type Count: Integer
3035
+ # @param List: List
3036
+ # @type List: Array
3037
+
3038
+ attr_accessor :Count, :List
3039
+
3040
+ def initialize(count=nil, list=nil)
3041
+ @Count = count
3042
+ @List = list
3043
+ end
3044
+
3045
+ def deserialize(params)
3046
+ @Count = params['Count']
3047
+ unless params['List'].nil?
3048
+ @List = []
3049
+ params['List'].each do |i|
3050
+ listdatasaeventpub_tmp = ListDataSaEventPub.new
3051
+ listdatasaeventpub_tmp.deserialize(i)
3052
+ @List << listdatasaeventpub_tmp
3053
+ end
3054
+ end
3055
+ end
3056
+ end
3057
+
2975
3058
  # 过滤条件
2976
3059
  class QueryFilter < TencentCloud::Common::AbstractModel
2977
3060
  # @param FilterKey: 过滤key
@@ -3248,6 +3331,85 @@ module TencentCloud
3248
3331
  end
3249
3332
  end
3250
3333
 
3334
+ # SaEventPub请求参数结构体
3335
+ class SaEventPubRequest < TencentCloud::Common::AbstractModel
3336
+ # @param Asset: 受影响资产
3337
+ # @type Asset: String
3338
+ # @param EventName: 安全事件名称
3339
+ # @type EventName: String
3340
+ # @param EventType1: 安全事件1级分类,-1:未知 0:全部 1:攻击事件 2:侦查事件 3:僵木蠕毒 4:违规策略
3341
+ # @type EventType1: Integer
3342
+ # @param EventType2: 安全事件2级分类,-1:未知 0:全部 1:DDOS事件 2:Web攻击 3:木马 4:异地登录 5:密码破解
3343
+ # @type EventType2: Integer
3344
+ # @param Level: 风险等级,-1:未知 0:全部 1:低危 2:中危 3:高危 4:严重,可多选,如:1,2
3345
+ # @type Level: String
3346
+ # @param Status: 安全事件状态,-1:未知 0:全部 1:待处理 2:已处理 3:误报 4:已忽略 5:已知晓 6:已信任
3347
+ # @type Status: Integer
3348
+ # @param StartTime: 开始时间
3349
+ # @type StartTime: String
3350
+ # @param Offset: 查询起始地址
3351
+ # @type Offset: Integer
3352
+ # @param Limit: 查询个数
3353
+ # @type Limit: Integer
3354
+ # @param EndTime: 结束时间
3355
+ # @type EndTime: String
3356
+ # @param OldIdMd5: 私有字段和公有字段映射的原始采集数据唯一标识的MD5值
3357
+ # @type OldIdMd5: String
3358
+
3359
+ attr_accessor :Asset, :EventName, :EventType1, :EventType2, :Level, :Status, :StartTime, :Offset, :Limit, :EndTime, :OldIdMd5
3360
+
3361
+ def initialize(asset=nil, eventname=nil, eventtype1=nil, eventtype2=nil, level=nil, status=nil, starttime=nil, offset=nil, limit=nil, endtime=nil, oldidmd5=nil)
3362
+ @Asset = asset
3363
+ @EventName = eventname
3364
+ @EventType1 = eventtype1
3365
+ @EventType2 = eventtype2
3366
+ @Level = level
3367
+ @Status = status
3368
+ @StartTime = starttime
3369
+ @Offset = offset
3370
+ @Limit = limit
3371
+ @EndTime = endtime
3372
+ @OldIdMd5 = oldidmd5
3373
+ end
3374
+
3375
+ def deserialize(params)
3376
+ @Asset = params['Asset']
3377
+ @EventName = params['EventName']
3378
+ @EventType1 = params['EventType1']
3379
+ @EventType2 = params['EventType2']
3380
+ @Level = params['Level']
3381
+ @Status = params['Status']
3382
+ @StartTime = params['StartTime']
3383
+ @Offset = params['Offset']
3384
+ @Limit = params['Limit']
3385
+ @EndTime = params['EndTime']
3386
+ @OldIdMd5 = params['OldIdMd5']
3387
+ end
3388
+ end
3389
+
3390
+ # SaEventPub返回参数结构体
3391
+ class SaEventPubResponse < TencentCloud::Common::AbstractModel
3392
+ # @param DataSaEventPub: DataSaEventPub
3393
+ # @type DataSaEventPub: :class:`Tencentcloud::Ssa.v20180608.models.ObjDataSaEventPub`
3394
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3395
+ # @type RequestId: String
3396
+
3397
+ attr_accessor :DataSaEventPub, :RequestId
3398
+
3399
+ def initialize(datasaeventpub=nil, requestid=nil)
3400
+ @DataSaEventPub = datasaeventpub
3401
+ @RequestId = requestid
3402
+ end
3403
+
3404
+ def deserialize(params)
3405
+ unless params['DataSaEventPub'].nil?
3406
+ @DataSaEventPub = ObjDataSaEventPub.new
3407
+ @DataSaEventPub.deserialize(params['DataSaEventPub'])
3408
+ end
3409
+ @RequestId = params['RequestId']
3410
+ end
3411
+ end
3412
+
3251
3413
  # 安全放回状态
3252
3414
  class SecurityStatus < TencentCloud::Common::AbstractModel
3253
3415
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ssa
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.510
4
+ version: 3.0.511
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-16 00:00:00.000000000 Z
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common