tencentcloud-sdk-cfw 3.0.1195 → 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 +101 -3
- 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
|
|
|
@@ -5943,12 +5985,13 @@ module TencentCloud
|
|
|
5943
5985
|
# @param IsSerialRegion: 0: 该地域暂未支持串行
|
|
5944
5986
|
# 1: 该用户未在该地域配置串行带宽
|
|
5945
5987
|
# 2: 该用户已在该地域配置串行带宽,可以开启串行开关
|
|
5988
|
+
# 3. 该地域可以支持串行,但是未部署公共集群
|
|
5946
5989
|
# @type IsSerialRegion: Integer
|
|
5947
5990
|
# @param IsPublicClb: 0: 不是公网CLB 可以开启串行开关
|
|
5948
5991
|
# 1: 是公网CLB 不可以开启串行开关
|
|
5949
5992
|
# @type IsPublicClb: Integer
|
|
5950
5993
|
# @param EndpointBindEipNum: 0: 开启开关时提示要创建私有连接。
|
|
5951
|
-
# 1:
|
|
5994
|
+
# 1: 关闭该开关时提示删除私有连接。
|
|
5952
5995
|
# 如果大于 1: 关闭开关 、开启开关不需提示创建删除私有连接。
|
|
5953
5996
|
# @type EndpointBindEipNum: Integer
|
|
5954
5997
|
# @param ScanMode: 扫描深度
|
|
@@ -5976,10 +6019,15 @@ module TencentCloud
|
|
|
5976
6019
|
# @type Domain: String
|
|
5977
6020
|
# @param OverUsedStatus: IP超量状态
|
|
5978
6021
|
# @type OverUsedStatus: Integer
|
|
6022
|
+
# @param SwitchSupportType: 0 都不支持
|
|
6023
|
+
# 1 支持旁路
|
|
6024
|
+
# 2 支持串行
|
|
6025
|
+
# 3 旁路串行都支持
|
|
6026
|
+
# @type SwitchSupportType: Integer
|
|
5979
6027
|
|
|
5980
|
-
attr_accessor :PublicIp, :PublicIpType, :InstanceId, :InstanceName, :IntranetIp, :AssetType, :Region, :PortRiskCount, :LastScanTime, :IsRegionEip, :VpcId, :IsSerialRegion, :IsPublicClb, :EndpointBindEipNum, :ScanMode, :ScanStatus, :Status, :EndpointId, :EndpointIp, :SwitchMode, :SwitchWeight, :Domain, :OverUsedStatus
|
|
6028
|
+
attr_accessor :PublicIp, :PublicIpType, :InstanceId, :InstanceName, :IntranetIp, :AssetType, :Region, :PortRiskCount, :LastScanTime, :IsRegionEip, :VpcId, :IsSerialRegion, :IsPublicClb, :EndpointBindEipNum, :ScanMode, :ScanStatus, :Status, :EndpointId, :EndpointIp, :SwitchMode, :SwitchWeight, :Domain, :OverUsedStatus, :SwitchSupportType
|
|
5981
6029
|
|
|
5982
|
-
def initialize(publicip=nil, publiciptype=nil, instanceid=nil, instancename=nil, intranetip=nil, assettype=nil, region=nil, portriskcount=nil, lastscantime=nil, isregioneip=nil, vpcid=nil, isserialregion=nil, ispublicclb=nil, endpointbindeipnum=nil, scanmode=nil, scanstatus=nil, status=nil, endpointid=nil, endpointip=nil, switchmode=nil, switchweight=nil, domain=nil, overusedstatus=nil)
|
|
6030
|
+
def initialize(publicip=nil, publiciptype=nil, instanceid=nil, instancename=nil, intranetip=nil, assettype=nil, region=nil, portriskcount=nil, lastscantime=nil, isregioneip=nil, vpcid=nil, isserialregion=nil, ispublicclb=nil, endpointbindeipnum=nil, scanmode=nil, scanstatus=nil, status=nil, endpointid=nil, endpointip=nil, switchmode=nil, switchweight=nil, domain=nil, overusedstatus=nil, switchsupporttype=nil)
|
|
5983
6031
|
@PublicIp = publicip
|
|
5984
6032
|
@PublicIpType = publiciptype
|
|
5985
6033
|
@InstanceId = instanceid
|
|
@@ -6003,6 +6051,7 @@ module TencentCloud
|
|
|
6003
6051
|
@SwitchWeight = switchweight
|
|
6004
6052
|
@Domain = domain
|
|
6005
6053
|
@OverUsedStatus = overusedstatus
|
|
6054
|
+
@SwitchSupportType = switchsupporttype
|
|
6006
6055
|
end
|
|
6007
6056
|
|
|
6008
6057
|
def deserialize(params)
|
|
@@ -6029,6 +6078,7 @@ module TencentCloud
|
|
|
6029
6078
|
@SwitchWeight = params['SwitchWeight']
|
|
6030
6079
|
@Domain = params['Domain']
|
|
6031
6080
|
@OverUsedStatus = params['OverUsedStatus']
|
|
6081
|
+
@SwitchSupportType = params['SwitchSupportType']
|
|
6032
6082
|
end
|
|
6033
6083
|
end
|
|
6034
6084
|
|
|
@@ -6944,6 +6994,22 @@ module TencentCloud
|
|
|
6944
6994
|
end
|
|
6945
6995
|
end
|
|
6946
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
|
+
|
|
6947
7013
|
# ModifyAcRule请求参数结构体
|
|
6948
7014
|
class ModifyAcRuleRequest < TencentCloud::Common::AbstractModel
|
|
6949
7015
|
# @param Data: 规则数组
|
|
@@ -7791,6 +7857,38 @@ module TencentCloud
|
|
|
7791
7857
|
end
|
|
7792
7858
|
end
|
|
7793
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
|
+
|
|
7794
7892
|
# ModifyNatAcRule请求参数结构体
|
|
7795
7893
|
class ModifyNatAcRuleRequest < TencentCloud::Common::AbstractModel
|
|
7796
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:
|