tencentcloud-sdk-waf 3.0.1123 → 3.0.1130
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +24 -0
- data/lib/v20180125/models.rb +36 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b50333f69b408457bbe63bdff677b883a1a86b
|
4
|
+
data.tar.gz: c29ce9bac900fc2311a957404a6140fa794887fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1dd3f35850eea19071767c9a3bca9a631eb9ecbc66750261346687958fe5a8c02b3a8bf4937028a71d3927f985b0114cdb17a5bc15e536f3fcee4bc72ff6f77
|
7
|
+
data.tar.gz: 1d08b1787c20203acaf2fed7e8cc3fe55351949329c92980bc0969c1a8b8d3b74909a183180980ce14cd7e4b8695ee23a5c5ea68433dcd2a7b79f537e7cbc51f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1130
|
data/lib/v20180125/client.rb
CHANGED
@@ -3728,6 +3728,30 @@ module TencentCloud
|
|
3728
3728
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3729
3729
|
end
|
3730
3730
|
|
3731
|
+
# 更改防护等级
|
3732
|
+
|
3733
|
+
# @param request: Request instance for ModifyProtectionLevel.
|
3734
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyProtectionLevelRequest`
|
3735
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyProtectionLevelResponse`
|
3736
|
+
def ModifyProtectionLevel(request)
|
3737
|
+
body = send_request('ModifyProtectionLevel', request.serialize)
|
3738
|
+
response = JSON.parse(body)
|
3739
|
+
if response['Response'].key?('Error') == false
|
3740
|
+
model = ModifyProtectionLevelResponse.new
|
3741
|
+
model.deserialize(response['Response'])
|
3742
|
+
model
|
3743
|
+
else
|
3744
|
+
code = response['Response']['Error']['Code']
|
3745
|
+
message = response['Response']['Error']['Message']
|
3746
|
+
reqid = response['Response']['RequestId']
|
3747
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3748
|
+
end
|
3749
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3750
|
+
raise e
|
3751
|
+
rescue StandardError => e
|
3752
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3753
|
+
end
|
3754
|
+
|
3731
3755
|
# 开启、关闭WAF开关
|
3732
3756
|
|
3733
3757
|
# @param request: Request instance for ModifyProtectionStatus.
|
data/lib/v20180125/models.rb
CHANGED
@@ -13700,6 +13700,42 @@ module TencentCloud
|
|
13700
13700
|
end
|
13701
13701
|
end
|
13702
13702
|
|
13703
|
+
# ModifyProtectionLevel请求参数结构体
|
13704
|
+
class ModifyProtectionLevelRequest < TencentCloud::Common::AbstractModel
|
13705
|
+
# @param Domain: 客户域名
|
13706
|
+
# @type Domain: String
|
13707
|
+
# @param Level: 防护等级,100,200,300
|
13708
|
+
# @type Level: Integer
|
13709
|
+
|
13710
|
+
attr_accessor :Domain, :Level
|
13711
|
+
|
13712
|
+
def initialize(domain=nil, level=nil)
|
13713
|
+
@Domain = domain
|
13714
|
+
@Level = level
|
13715
|
+
end
|
13716
|
+
|
13717
|
+
def deserialize(params)
|
13718
|
+
@Domain = params['Domain']
|
13719
|
+
@Level = params['Level']
|
13720
|
+
end
|
13721
|
+
end
|
13722
|
+
|
13723
|
+
# ModifyProtectionLevel返回参数结构体
|
13724
|
+
class ModifyProtectionLevelResponse < TencentCloud::Common::AbstractModel
|
13725
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
13726
|
+
# @type RequestId: String
|
13727
|
+
|
13728
|
+
attr_accessor :RequestId
|
13729
|
+
|
13730
|
+
def initialize(requestid=nil)
|
13731
|
+
@RequestId = requestid
|
13732
|
+
end
|
13733
|
+
|
13734
|
+
def deserialize(params)
|
13735
|
+
@RequestId = params['RequestId']
|
13736
|
+
end
|
13737
|
+
end
|
13738
|
+
|
13703
13739
|
# ModifyProtectionStatus请求参数结构体
|
13704
13740
|
class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
|
13705
13741
|
# @param Domain: 域名
|
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.
|
4
|
+
version: 3.0.1130
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|