tencentcloud-sdk-teo 1.0.331 → 1.0.332

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90727e2b051e64b8797e6083a5f2531ab5b1127e
4
- data.tar.gz: 200317ccffdf19e0dcd72f3a93d35e6e6ba3b1a5
3
+ metadata.gz: 5c95f0e823b28e95b9ef2b6d214e86cbdec4cc12
4
+ data.tar.gz: 732d4b9141e193a6731369bf779d7b71d23ba480
5
5
  SHA512:
6
- metadata.gz: 1a0722fd8b952480bbab354a616a6e03b3788a48bbcd9339dca7316e933f978f907a21e2be971230bc933e84551641c7820bbb0c50ed6890b2f0b24d921029a1
7
- data.tar.gz: f565865aec1b360a81caded126192556deb39afbecb8d7d863deabefe8ce6ed405ce46615cc0fb988acd4c0238688061d6c512749f49ce2ebda13e84fe683677
6
+ metadata.gz: 27f71c4c31c035adcbfa212c17cb97aae0b36bddbbd463c9c2d59a72ba182ba7e57cfd0f63052b22fe6443321ac3be8693659702e959e9cb9bb25dd1a949039e
7
+ data.tar.gz: 9f72ee5c1f9e6c63c39084c02aad32c8852e9d7e4442ce17f4bcb2837d9732206aa7154ef464871ea25c3b8641d75b74ee6d4c2c7b932aa27c2ae788e1126eeb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.331
1
+ 1.0.332
@@ -989,6 +989,30 @@ module TencentCloud
989
989
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
990
  end
991
991
 
992
+ # 查询Bot用户画像规则
993
+
994
+ # @param request: Request instance for DescribeSecurityPortraitRules.
995
+ # @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPortraitRulesRequest`
996
+ # @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPortraitRulesResponse`
997
+ def DescribeSecurityPortraitRules(request)
998
+ body = send_request('DescribeSecurityPortraitRules', request.serialize)
999
+ response = JSON.parse(body)
1000
+ if response['Response'].key?('Error') == false
1001
+ model = DescribeSecurityPortraitRulesResponse.new
1002
+ model.deserialize(response['Response'])
1003
+ model
1004
+ else
1005
+ code = response['Response']['Error']['Code']
1006
+ message = response['Response']['Error']['Message']
1007
+ reqid = response['Response']['RequestId']
1008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1009
+ end
1010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1011
+ raise e
1012
+ rescue StandardError => e
1013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
+ end
1015
+
992
1016
  # 查询所有DDoS防护分区
993
1017
 
994
1018
  # @param request: Request instance for DescribeZoneDDoSPolicy.
@@ -506,15 +506,19 @@ module TencentCloud
506
506
  # @param DropManagedIds: 拦截的规则ID
507
507
  # 注意:此字段可能返回 null,表示取不到有效值。
508
508
  # @type DropManagedIds: Array
509
+ # @param Switch: 本功能的开关
510
+ # 注意:此字段可能返回 null,表示取不到有效值。
511
+ # @type Switch: String
509
512
 
510
- attr_accessor :RuleID, :AlgManagedIds, :CapManagedIds, :MonManagedIds, :DropManagedIds
513
+ attr_accessor :RuleID, :AlgManagedIds, :CapManagedIds, :MonManagedIds, :DropManagedIds, :Switch
511
514
 
512
- def initialize(ruleid=nil, algmanagedids=nil, capmanagedids=nil, monmanagedids=nil, dropmanagedids=nil)
515
+ def initialize(ruleid=nil, algmanagedids=nil, capmanagedids=nil, monmanagedids=nil, dropmanagedids=nil, switch=nil)
513
516
  @RuleID = ruleid
514
517
  @AlgManagedIds = algmanagedids
515
518
  @CapManagedIds = capmanagedids
516
519
  @MonManagedIds = monmanagedids
517
520
  @DropManagedIds = dropmanagedids
521
+ @Switch = switch
518
522
  end
519
523
 
520
524
  def deserialize(params)
@@ -523,6 +527,7 @@ module TencentCloud
523
527
  @CapManagedIds = params['CapManagedIds']
524
528
  @MonManagedIds = params['MonManagedIds']
525
529
  @DropManagedIds = params['DropManagedIds']
530
+ @Switch = params['Switch']
526
531
  end
527
532
  end
528
533
 
@@ -3843,6 +3848,61 @@ module TencentCloud
3843
3848
  end
3844
3849
  end
3845
3850
 
3851
+ # DescribeSecurityPortraitRules请求参数结构体
3852
+ class DescribeSecurityPortraitRulesRequest < TencentCloud::Common::AbstractModel
3853
+ # @param ZoneId: 一级域名
3854
+ # @type ZoneId: String
3855
+ # @param Entity: 子域名/应用名
3856
+ # @type Entity: String
3857
+
3858
+ attr_accessor :ZoneId, :Entity
3859
+
3860
+ def initialize(zoneid=nil, entity=nil)
3861
+ @ZoneId = zoneid
3862
+ @Entity = entity
3863
+ end
3864
+
3865
+ def deserialize(params)
3866
+ @ZoneId = params['ZoneId']
3867
+ @Entity = params['Entity']
3868
+ end
3869
+ end
3870
+
3871
+ # DescribeSecurityPortraitRules返回参数结构体
3872
+ class DescribeSecurityPortraitRulesResponse < TencentCloud::Common::AbstractModel
3873
+ # @param Count: 本次返回的规则数
3874
+ # @type Count: Integer
3875
+ # @param Rules: Bot用户画像规则
3876
+ # @type Rules: Array
3877
+ # @param Total: 总规则数
3878
+ # @type Total: Integer
3879
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3880
+ # @type RequestId: String
3881
+
3882
+ attr_accessor :Count, :Rules, :Total, :RequestId
3883
+
3884
+ def initialize(count=nil, rules=nil, total=nil, requestid=nil)
3885
+ @Count = count
3886
+ @Rules = rules
3887
+ @Total = total
3888
+ @RequestId = requestid
3889
+ end
3890
+
3891
+ def deserialize(params)
3892
+ @Count = params['Count']
3893
+ unless params['Rules'].nil?
3894
+ @Rules = []
3895
+ params['Rules'].each do |i|
3896
+ portraitmanagedruledetail_tmp = PortraitManagedRuleDetail.new
3897
+ portraitmanagedruledetail_tmp.deserialize(i)
3898
+ @Rules << portraitmanagedruledetail_tmp
3899
+ end
3900
+ end
3901
+ @Total = params['Total']
3902
+ @RequestId = params['RequestId']
3903
+ end
3904
+ end
3905
+
3846
3906
  # DescribeZoneDDoSPolicy请求参数结构体
3847
3907
  class DescribeZoneDDoSPolicyRequest < TencentCloud::Common::AbstractModel
3848
3908
  # @param ZoneId: 一级域名id
@@ -6359,6 +6419,43 @@ module TencentCloud
6359
6419
  end
6360
6420
  end
6361
6421
 
6422
+ # 用户画像规则详情
6423
+ class PortraitManagedRuleDetail < TencentCloud::Common::AbstractModel
6424
+ # @param RuleId: 规则唯一id
6425
+ # 注意:此字段可能返回 null,表示取不到有效值。
6426
+ # @type RuleId: Integer
6427
+ # @param Description: 规则的描述
6428
+ # 注意:此字段可能返回 null,表示取不到有效值。
6429
+ # @type Description: String
6430
+ # @param RuleTypeName: 规则所属类型的名字, botdb(用户画像)
6431
+ # 注意:此字段可能返回 null,表示取不到有效值。
6432
+ # @type RuleTypeName: String
6433
+ # @param ClassificationId: 规则内的功能分类Id(扫描器,Bot行为等)
6434
+ # 注意:此字段可能返回 null,表示取不到有效值。
6435
+ # @type ClassificationId: Integer
6436
+ # @param Status: 规则当前所属动作状态(block, alg, ...)
6437
+ # 注意:此字段可能返回 null,表示取不到有效值。
6438
+ # @type Status: String
6439
+
6440
+ attr_accessor :RuleId, :Description, :RuleTypeName, :ClassificationId, :Status
6441
+
6442
+ def initialize(ruleid=nil, description=nil, ruletypename=nil, classificationid=nil, status=nil)
6443
+ @RuleId = ruleid
6444
+ @Description = description
6445
+ @RuleTypeName = ruletypename
6446
+ @ClassificationId = classificationid
6447
+ @Status = status
6448
+ end
6449
+
6450
+ def deserialize(params)
6451
+ @RuleId = params['RuleId']
6452
+ @Description = params['Description']
6453
+ @RuleTypeName = params['RuleTypeName']
6454
+ @ClassificationId = params['ClassificationId']
6455
+ @Status = params['Status']
6456
+ end
6457
+ end
6458
+
6362
6459
  # POST请求上传文件流式传输最大限制
6363
6460
  class PostMaxSize < TencentCloud::Common::AbstractModel
6364
6461
  # @param Switch: 是调整POST请求限制,平台默认为32MB。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.331
4
+ version: 1.0.332
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common