tencentcloud-sdk-cfw 3.0.1199 → 3.0.1202
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/v20190904/client.rb +48 -0
- data/lib/v20190904/models.rb +90 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c92cd0699d11a3d0dce4b475face633fcaebf62a
|
|
4
|
+
data.tar.gz: 2572a6646ef9590dc64733d9bdbe14f938c690b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9970f0148077a56efe117ed6c263432aff15c0cd88ce1d4a27f892c5790ef5d39692a3b896acabd2afbf0bf39997f1fdc9995c1062e461d6a46eb4ce6c2eb3fc
|
|
7
|
+
data.tar.gz: 01f7aa401335edd47807901ac6fa65f7cad533bca35744c2e3af482e57b29f097a6a0cf47d9d1c9304b016b2843338375cfb8cd1c10fbce9050c1bf453629720
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1202
|
data/lib/v20190904/client.rb
CHANGED
|
@@ -1231,6 +1231,30 @@ module TencentCloud
|
|
|
1231
1231
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1232
1232
|
end
|
|
1233
1233
|
|
|
1234
|
+
# 获取入侵防御防护模式
|
|
1235
|
+
|
|
1236
|
+
# @param request: Request instance for DescribeIpsModeSwitch.
|
|
1237
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeIpsModeSwitchRequest`
|
|
1238
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeIpsModeSwitchResponse`
|
|
1239
|
+
def DescribeIpsModeSwitch(request)
|
|
1240
|
+
body = send_request('DescribeIpsModeSwitch', request.serialize)
|
|
1241
|
+
response = JSON.parse(body)
|
|
1242
|
+
if response['Response'].key?('Error') == false
|
|
1243
|
+
model = DescribeIpsModeSwitchResponse.new
|
|
1244
|
+
model.deserialize(response['Response'])
|
|
1245
|
+
model
|
|
1246
|
+
else
|
|
1247
|
+
code = response['Response']['Error']['Code']
|
|
1248
|
+
message = response['Response']['Error']['Message']
|
|
1249
|
+
reqid = response['Response']['RequestId']
|
|
1250
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1251
|
+
end
|
|
1252
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1253
|
+
raise e
|
|
1254
|
+
rescue StandardError => e
|
|
1255
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1234
1258
|
# 租户日志存储统计
|
|
1235
1259
|
|
|
1236
1260
|
# @param request: Request instance for DescribeLogStorageStatistic.
|
|
@@ -2243,6 +2267,30 @@ module TencentCloud
|
|
|
2243
2267
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2244
2268
|
end
|
|
2245
2269
|
|
|
2270
|
+
# 修改入侵防御防护模式
|
|
2271
|
+
|
|
2272
|
+
# @param request: Request instance for ModifyIpsModeSwitch.
|
|
2273
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyIpsModeSwitchRequest`
|
|
2274
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyIpsModeSwitchResponse`
|
|
2275
|
+
def ModifyIpsModeSwitch(request)
|
|
2276
|
+
body = send_request('ModifyIpsModeSwitch', request.serialize)
|
|
2277
|
+
response = JSON.parse(body)
|
|
2278
|
+
if response['Response'].key?('Error') == false
|
|
2279
|
+
model = ModifyIpsModeSwitchResponse.new
|
|
2280
|
+
model.deserialize(response['Response'])
|
|
2281
|
+
model
|
|
2282
|
+
else
|
|
2283
|
+
code = response['Response']['Error']['Code']
|
|
2284
|
+
message = response['Response']['Error']['Message']
|
|
2285
|
+
reqid = response['Response']['RequestId']
|
|
2286
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2287
|
+
end
|
|
2288
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2289
|
+
raise e
|
|
2290
|
+
rescue StandardError => e
|
|
2291
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2292
|
+
end
|
|
2293
|
+
|
|
2246
2294
|
# 修改NAT访问控制规则
|
|
2247
2295
|
|
|
2248
2296
|
# @param request: Request instance for ModifyNatAcRule.
|
data/lib/v20190904/models.rb
CHANGED
|
@@ -4309,6 +4309,48 @@ module TencentCloud
|
|
|
4309
4309
|
end
|
|
4310
4310
|
end
|
|
4311
4311
|
|
|
4312
|
+
# DescribeIpsModeSwitch请求参数结构体
|
|
4313
|
+
class DescribeIpsModeSwitchRequest < TencentCloud::Common::AbstractModel
|
|
4314
|
+
|
|
4315
|
+
|
|
4316
|
+
def initialize()
|
|
4317
|
+
end
|
|
4318
|
+
|
|
4319
|
+
def deserialize(params)
|
|
4320
|
+
end
|
|
4321
|
+
end
|
|
4322
|
+
|
|
4323
|
+
# DescribeIpsModeSwitch返回参数结构体
|
|
4324
|
+
class DescribeIpsModeSwitchResponse < TencentCloud::Common::AbstractModel
|
|
4325
|
+
# @param Data: // Mode 取值校验:0-观察模式, 1-拦截模式, 2-严格模式
|
|
4326
|
+
# @type Data: :class:`Tencentcloud::Cfw.v20190904.models.ModeInfo`
|
|
4327
|
+
# @param ReturnCode: 0 成功 非0失败
|
|
4328
|
+
# @type ReturnCode: Integer
|
|
4329
|
+
# @param ReturnMsg: success 成功 其他失败
|
|
4330
|
+
# @type ReturnMsg: String
|
|
4331
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4332
|
+
# @type RequestId: String
|
|
4333
|
+
|
|
4334
|
+
attr_accessor :Data, :ReturnCode, :ReturnMsg, :RequestId
|
|
4335
|
+
|
|
4336
|
+
def initialize(data=nil, returncode=nil, returnmsg=nil, requestid=nil)
|
|
4337
|
+
@Data = data
|
|
4338
|
+
@ReturnCode = returncode
|
|
4339
|
+
@ReturnMsg = returnmsg
|
|
4340
|
+
@RequestId = requestid
|
|
4341
|
+
end
|
|
4342
|
+
|
|
4343
|
+
def deserialize(params)
|
|
4344
|
+
unless params['Data'].nil?
|
|
4345
|
+
@Data = ModeInfo.new
|
|
4346
|
+
@Data.deserialize(params['Data'])
|
|
4347
|
+
end
|
|
4348
|
+
@ReturnCode = params['ReturnCode']
|
|
4349
|
+
@ReturnMsg = params['ReturnMsg']
|
|
4350
|
+
@RequestId = params['RequestId']
|
|
4351
|
+
end
|
|
4352
|
+
end
|
|
4353
|
+
|
|
4312
4354
|
# DescribeLogStorageStatistic请求参数结构体
|
|
4313
4355
|
class DescribeLogStorageStatisticRequest < TencentCloud::Common::AbstractModel
|
|
4314
4356
|
|
|
@@ -6952,6 +6994,22 @@ module TencentCloud
|
|
|
6952
6994
|
end
|
|
6953
6995
|
end
|
|
6954
6996
|
|
|
6997
|
+
# 入侵防御防护模式相关
|
|
6998
|
+
class ModeInfo < TencentCloud::Common::AbstractModel
|
|
6999
|
+
# @param Mode: 0-观察模式, 1-拦截模式, 2-严格模式
|
|
7000
|
+
# @type Mode: Integer
|
|
7001
|
+
|
|
7002
|
+
attr_accessor :Mode
|
|
7003
|
+
|
|
7004
|
+
def initialize(mode=nil)
|
|
7005
|
+
@Mode = mode
|
|
7006
|
+
end
|
|
7007
|
+
|
|
7008
|
+
def deserialize(params)
|
|
7009
|
+
@Mode = params['Mode']
|
|
7010
|
+
end
|
|
7011
|
+
end
|
|
7012
|
+
|
|
6955
7013
|
# ModifyAcRule请求参数结构体
|
|
6956
7014
|
class ModifyAcRuleRequest < TencentCloud::Common::AbstractModel
|
|
6957
7015
|
# @param Data: 规则数组
|
|
@@ -7799,6 +7857,38 @@ module TencentCloud
|
|
|
7799
7857
|
end
|
|
7800
7858
|
end
|
|
7801
7859
|
|
|
7860
|
+
# ModifyIpsModeSwitch请求参数结构体
|
|
7861
|
+
class ModifyIpsModeSwitchRequest < TencentCloud::Common::AbstractModel
|
|
7862
|
+
# @param Mode: 防护模式:0-观察模式, 1-拦截模式, 2-严格模式
|
|
7863
|
+
# @type Mode: Integer
|
|
7864
|
+
|
|
7865
|
+
attr_accessor :Mode
|
|
7866
|
+
|
|
7867
|
+
def initialize(mode=nil)
|
|
7868
|
+
@Mode = mode
|
|
7869
|
+
end
|
|
7870
|
+
|
|
7871
|
+
def deserialize(params)
|
|
7872
|
+
@Mode = params['Mode']
|
|
7873
|
+
end
|
|
7874
|
+
end
|
|
7875
|
+
|
|
7876
|
+
# ModifyIpsModeSwitch返回参数结构体
|
|
7877
|
+
class ModifyIpsModeSwitchResponse < TencentCloud::Common::AbstractModel
|
|
7878
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7879
|
+
# @type RequestId: String
|
|
7880
|
+
|
|
7881
|
+
attr_accessor :RequestId
|
|
7882
|
+
|
|
7883
|
+
def initialize(requestid=nil)
|
|
7884
|
+
@RequestId = requestid
|
|
7885
|
+
end
|
|
7886
|
+
|
|
7887
|
+
def deserialize(params)
|
|
7888
|
+
@RequestId = params['RequestId']
|
|
7889
|
+
end
|
|
7890
|
+
end
|
|
7891
|
+
|
|
7802
7892
|
# ModifyNatAcRule请求参数结构体
|
|
7803
7893
|
class ModifyNatAcRuleRequest < TencentCloud::Common::AbstractModel
|
|
7804
7894
|
# @param Rules: 需要编辑的规则数组,基于Uuid唯一id来修改该规则
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-cfw
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1202
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
+
- lib/tencentcloud-sdk-cfw.rb
|
|
36
37
|
- lib/v20190904/client.rb
|
|
37
38
|
- lib/v20190904/models.rb
|
|
38
|
-
- lib/tencentcloud-sdk-cfw.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|