tencentcloud-sdk-waf 3.0.928 → 3.0.929

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: c516d631b81f31a5d17eadea0b4ee244890189fb
4
- data.tar.gz: 0a8ade0918f81496cc934e755d4bdb8d757f8b04
3
+ metadata.gz: 97e1458ded47c5544a8a58a95a47b2de9cdaa2bd
4
+ data.tar.gz: 184b6228ac426990c18b8bed796f67da445540de
5
5
  SHA512:
6
- metadata.gz: 68378819c73c693f590ab3a2e6035fb7dc67e79cba260553adb38b0824a774d4a2b58c8fc85fa460ee846f0941c0bdcc90dfb187c2de490bd297a4613786a339
7
- data.tar.gz: 181029944a3640a3dc9ca1dbab49068bdbc10ab626bfb5a1acb5871baffcacb95982fb35fcbdcd6e521e24000f613b7d0d601a8412e605fe065f7bfc8daab65d
6
+ metadata.gz: 332387b6a5418de5b23177f9292faa127aac7f7501ab00a238a22eb9cb4a376e7987fe7708ecf2833d84802b8f3c9be54d3f8bd34f357d35196de5632e88d673
7
+ data.tar.gz: 1ec9eb2e04fcb86b3a01c67a0fdc8de28738d7bead72452a6bd7501a8b690c5886db73b6f949fdcc9fd5c9b67475bc712543f9c95bf013dc06af55cfc3d7e4fc
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.928
1
+ 3.0.929
@@ -1787,6 +1787,30 @@ module TencentCloud
1787
1787
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1788
1788
  end
1789
1789
 
1790
+ # 查询Tiga引擎大类规则及其防护模式
1791
+
1792
+ # @param request: Request instance for DescribeProtectionModes.
1793
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeProtectionModesRequest`
1794
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeProtectionModesResponse`
1795
+ def DescribeProtectionModes(request)
1796
+ body = send_request('DescribeProtectionModes', request.serialize)
1797
+ response = JSON.parse(body)
1798
+ if response['Response'].key?('Error') == false
1799
+ model = DescribeProtectionModesResponse.new
1800
+ model.deserialize(response['Response'])
1801
+ model
1802
+ else
1803
+ code = response['Response']['Error']['Code']
1804
+ message = response['Response']['Error']['Message']
1805
+ reqid = response['Response']['RequestId']
1806
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1807
+ end
1808
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1809
+ raise e
1810
+ rescue StandardError => e
1811
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1812
+ end
1813
+
1790
1814
  # 获取各个模块具体的规格限制
1791
1815
 
1792
1816
  # @param request: Request instance for DescribeRuleLimit.
@@ -6584,6 +6584,53 @@ module TencentCloud
6584
6584
  end
6585
6585
  end
6586
6586
 
6587
+ # DescribeProtectionModes请求参数结构体
6588
+ class DescribeProtectionModesRequest < TencentCloud::Common::AbstractModel
6589
+ # @param Edition: sparta-waf或clb
6590
+ # @type Edition: String
6591
+ # @param Domain: 域名
6592
+ # @type Domain: String
6593
+
6594
+ attr_accessor :Edition, :Domain
6595
+
6596
+ def initialize(edition=nil, domain=nil)
6597
+ @Edition = edition
6598
+ @Domain = domain
6599
+ end
6600
+
6601
+ def deserialize(params)
6602
+ @Edition = params['Edition']
6603
+ @Domain = params['Domain']
6604
+ end
6605
+ end
6606
+
6607
+ # DescribeProtectionModes返回参数结构体
6608
+ class DescribeProtectionModesResponse < TencentCloud::Common::AbstractModel
6609
+ # @param Modes: 规则大类ID及防护模式
6610
+ # @type Modes: Array
6611
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6612
+ # @type RequestId: String
6613
+
6614
+ attr_accessor :Modes, :RequestId
6615
+
6616
+ def initialize(modes=nil, requestid=nil)
6617
+ @Modes = modes
6618
+ @RequestId = requestid
6619
+ end
6620
+
6621
+ def deserialize(params)
6622
+ unless params['Modes'].nil?
6623
+ @Modes = []
6624
+ params['Modes'].each do |i|
6625
+ tigamainclassmode_tmp = TigaMainClassMode.new
6626
+ tigamainclassmode_tmp.deserialize(i)
6627
+ @Modes << tigamainclassmode_tmp
6628
+ end
6629
+ end
6630
+ @RequestId = params['RequestId']
6631
+ end
6632
+ end
6633
+
6587
6634
  # DescribeRuleLimit请求参数结构体
6588
6635
  class DescribeRuleLimitRequest < TencentCloud::Common::AbstractModel
6589
6636
  # @param Domain: 域名
@@ -13285,6 +13332,28 @@ module TencentCloud
13285
13332
  end
13286
13333
  end
13287
13334
 
13335
+ # Tiga引擎中Mainclass的TypeID和防护模式
13336
+ class TigaMainClassMode < TencentCloud::Common::AbstractModel
13337
+ # @param TypeID: MainclassID
13338
+ # 注意:此字段可能返回 null,表示取不到有效值。
13339
+ # @type TypeID: String
13340
+ # @param Mode: 防护模式,0表示观察,1表示拦截
13341
+ # 注意:此字段可能返回 null,表示取不到有效值。
13342
+ # @type Mode: Integer
13343
+
13344
+ attr_accessor :TypeID, :Mode
13345
+
13346
+ def initialize(typeid=nil, mode=nil)
13347
+ @TypeID = typeid
13348
+ @Mode = mode
13349
+ end
13350
+
13351
+ def deserialize(params)
13352
+ @TypeID = params['TypeID']
13353
+ @Mode = params['Mode']
13354
+ end
13355
+ end
13356
+
13288
13357
  # 规则定时任务数据结构
13289
13358
  class TimedJob < TencentCloud::Common::AbstractModel
13290
13359
  # @param StartDateTime: 开始时间戳,单位为秒
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.928
4
+ version: 3.0.929
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-10-20 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common