tencentcloud-sdk-waf 3.0.816 → 3.0.817
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 +96 -0
- data/lib/v20180125/models.rb +275 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c757624d02cc274cf4fd9a7ac53109a171a12f16
|
4
|
+
data.tar.gz: 0948f6e433561c665e8837742fbcccd455a2f6c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa588faff6b1b02584cc646343c07d1af69e3407bb5e794d06cc46be36341d5ca68e0ed482a6f97aaeafe7bcb7be1d09f079f3b9df9c55839ce1450257b40594
|
7
|
+
data.tar.gz: ebcd8ac66dcdfa316f608dfbb6ef245932043f79f03070d45799fab1297448f3720a79234a6f4992f220eaefdac3ff8ab0799022c03ef7d18684a033f370d4c3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.817
|
data/lib/v20180125/client.rb
CHANGED
@@ -269,6 +269,30 @@ module TencentCloud
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
270
|
end
|
271
271
|
|
272
|
+
# Waf IP黑白名单新增接口
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateIpAccessControl.
|
275
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::CreateIpAccessControlRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::CreateIpAccessControlResponse`
|
277
|
+
def CreateIpAccessControl(request)
|
278
|
+
body = send_request('CreateIpAccessControl', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateIpAccessControlResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
272
296
|
# 本接口用于删除访问日志导出
|
273
297
|
|
274
298
|
# @param request: Request instance for DeleteAccessExport.
|
@@ -559,6 +583,30 @@ module TencentCloud
|
|
559
583
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
584
|
end
|
561
585
|
|
586
|
+
# Waf IP黑白名单最新版本删除接口
|
587
|
+
|
588
|
+
# @param request: Request instance for DeleteIpAccessControlV2.
|
589
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteIpAccessControlV2Request`
|
590
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteIpAccessControlV2Response`
|
591
|
+
def DeleteIpAccessControlV2(request)
|
592
|
+
body = send_request('DeleteIpAccessControlV2', request.serialize)
|
593
|
+
response = JSON.parse(body)
|
594
|
+
if response['Response'].key?('Error') == false
|
595
|
+
model = DeleteIpAccessControlV2Response.new
|
596
|
+
model.deserialize(response['Response'])
|
597
|
+
model
|
598
|
+
else
|
599
|
+
code = response['Response']['Error']['Code']
|
600
|
+
message = response['Response']['Error']['Message']
|
601
|
+
reqid = response['Response']['RequestId']
|
602
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
603
|
+
end
|
604
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
605
|
+
raise e
|
606
|
+
rescue StandardError => e
|
607
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
608
|
+
end
|
609
|
+
|
562
610
|
# 删除CC攻击的session设置
|
563
611
|
|
564
612
|
# @param request: Request instance for DeleteSession.
|
@@ -2123,6 +2171,30 @@ module TencentCloud
|
|
2123
2171
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2124
2172
|
end
|
2125
2173
|
|
2174
|
+
# 导入IP黑白名单
|
2175
|
+
|
2176
|
+
# @param request: Request instance for ImportIpAccessControl.
|
2177
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ImportIpAccessControlRequest`
|
2178
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ImportIpAccessControlResponse`
|
2179
|
+
def ImportIpAccessControl(request)
|
2180
|
+
body = send_request('ImportIpAccessControl', request.serialize)
|
2181
|
+
response = JSON.parse(body)
|
2182
|
+
if response['Response'].key?('Error') == false
|
2183
|
+
model = ImportIpAccessControlResponse.new
|
2184
|
+
model.deserialize(response['Response'])
|
2185
|
+
model
|
2186
|
+
else
|
2187
|
+
code = response['Response']['Error']['Code']
|
2188
|
+
message = response['Response']['Error']['Message']
|
2189
|
+
reqid = response['Response']['RequestId']
|
2190
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2191
|
+
end
|
2192
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2193
|
+
raise e
|
2194
|
+
rescue StandardError => e
|
2195
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2196
|
+
end
|
2197
|
+
|
2126
2198
|
# 本接口用于修改访问日志保存期限等字段信息
|
2127
2199
|
|
2128
2200
|
# @param request: Request instance for ModifyAccessPeriod.
|
@@ -2748,6 +2820,30 @@ module TencentCloud
|
|
2748
2820
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2749
2821
|
end
|
2750
2822
|
|
2823
|
+
# Waf IP黑白名单编辑接口
|
2824
|
+
|
2825
|
+
# @param request: Request instance for ModifyIpAccessControl.
|
2826
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyIpAccessControlRequest`
|
2827
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyIpAccessControlResponse`
|
2828
|
+
def ModifyIpAccessControl(request)
|
2829
|
+
body = send_request('ModifyIpAccessControl', request.serialize)
|
2830
|
+
response = JSON.parse(body)
|
2831
|
+
if response['Response'].key?('Error') == false
|
2832
|
+
model = ModifyIpAccessControlResponse.new
|
2833
|
+
model.deserialize(response['Response'])
|
2834
|
+
model
|
2835
|
+
else
|
2836
|
+
code = response['Response']['Error']['Code']
|
2837
|
+
message = response['Response']['Error']['Message']
|
2838
|
+
reqid = response['Response']['RequestId']
|
2839
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2840
|
+
end
|
2841
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2842
|
+
raise e
|
2843
|
+
rescue StandardError => e
|
2844
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2845
|
+
end
|
2846
|
+
|
2751
2847
|
# 设置某个domain下基础安全模块的开关
|
2752
2848
|
|
2753
2849
|
# @param request: Request instance for ModifyModuleStatus.
|
data/lib/v20180125/models.rb
CHANGED
@@ -56,8 +56,8 @@ module TencentCloud
|
|
56
56
|
|
57
57
|
attr_accessor :BTime, :Count, :BeginTime
|
58
58
|
extend Gem::Deprecate
|
59
|
-
deprecate :BTime, :none, 2024,
|
60
|
-
deprecate :BTime=, :none, 2024,
|
59
|
+
deprecate :BTime, :none, 2024, 5
|
60
|
+
deprecate :BTime=, :none, 2024, 5
|
61
61
|
|
62
62
|
def initialize(btime=nil, count=nil, begintime=nil)
|
63
63
|
@BTime = btime
|
@@ -2102,6 +2102,72 @@ module TencentCloud
|
|
2102
2102
|
end
|
2103
2103
|
end
|
2104
2104
|
|
2105
|
+
# CreateIpAccessControl请求参数结构体
|
2106
|
+
class CreateIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
2107
|
+
# @param Domain: 具体域名如:test.qcloudwaf.com
|
2108
|
+
# 全局域名为:global
|
2109
|
+
# @type Domain: String
|
2110
|
+
# @param IpList: ip参数列表
|
2111
|
+
# @type IpList: Array
|
2112
|
+
# @param ActionType: 42为黑名单,40为白名单
|
2113
|
+
# @type ActionType: Integer
|
2114
|
+
# @param ValidTS: valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
2115
|
+
# @type ValidTS: Integer
|
2116
|
+
# @param InstanceId: 实例Id
|
2117
|
+
# @type InstanceId: String
|
2118
|
+
# @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
2119
|
+
# @type Edition: String
|
2120
|
+
# @param SourceType: 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
2121
|
+
# @type SourceType: String
|
2122
|
+
# @param Note: 备注
|
2123
|
+
# @type Note: String
|
2124
|
+
|
2125
|
+
attr_accessor :Domain, :IpList, :ActionType, :ValidTS, :InstanceId, :Edition, :SourceType, :Note
|
2126
|
+
|
2127
|
+
def initialize(domain=nil, iplist=nil, actiontype=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil)
|
2128
|
+
@Domain = domain
|
2129
|
+
@IpList = iplist
|
2130
|
+
@ActionType = actiontype
|
2131
|
+
@ValidTS = validts
|
2132
|
+
@InstanceId = instanceid
|
2133
|
+
@Edition = edition
|
2134
|
+
@SourceType = sourcetype
|
2135
|
+
@Note = note
|
2136
|
+
end
|
2137
|
+
|
2138
|
+
def deserialize(params)
|
2139
|
+
@Domain = params['Domain']
|
2140
|
+
@IpList = params['IpList']
|
2141
|
+
@ActionType = params['ActionType']
|
2142
|
+
@ValidTS = params['ValidTS']
|
2143
|
+
@InstanceId = params['InstanceId']
|
2144
|
+
@Edition = params['Edition']
|
2145
|
+
@SourceType = params['SourceType']
|
2146
|
+
@Note = params['Note']
|
2147
|
+
end
|
2148
|
+
end
|
2149
|
+
|
2150
|
+
# CreateIpAccessControl返回参数结构体
|
2151
|
+
class CreateIpAccessControlResponse < TencentCloud::Common::AbstractModel
|
2152
|
+
# @param RuleId: 新增的规则对应的ID
|
2153
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2154
|
+
# @type RuleId: Integer
|
2155
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2156
|
+
# @type RequestId: String
|
2157
|
+
|
2158
|
+
attr_accessor :RuleId, :RequestId
|
2159
|
+
|
2160
|
+
def initialize(ruleid=nil, requestid=nil)
|
2161
|
+
@RuleId = ruleid
|
2162
|
+
@RequestId = requestid
|
2163
|
+
end
|
2164
|
+
|
2165
|
+
def deserialize(params)
|
2166
|
+
@RuleId = params['RuleId']
|
2167
|
+
@RequestId = params['RequestId']
|
2168
|
+
end
|
2169
|
+
end
|
2170
|
+
|
2105
2171
|
# 计费下单响应实体
|
2106
2172
|
class DealData < TencentCloud::Common::AbstractModel
|
2107
2173
|
# @param DealNames: 订单号列表,元素个数与请求包的goods数组的元素个数一致,商品详情与订单按顺序对应
|
@@ -2620,6 +2686,58 @@ module TencentCloud
|
|
2620
2686
|
end
|
2621
2687
|
end
|
2622
2688
|
|
2689
|
+
# DeleteIpAccessControlV2请求参数结构体
|
2690
|
+
class DeleteIpAccessControlV2Request < TencentCloud::Common::AbstractModel
|
2691
|
+
# @param Domain: 域名
|
2692
|
+
# @type Domain: String
|
2693
|
+
# @param RuleIds: 规则ID列表,支持批量删除
|
2694
|
+
# @type RuleIds: Array
|
2695
|
+
# @param DeleteAll: 是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单
|
2696
|
+
# @type DeleteAll: Boolean
|
2697
|
+
# @param SourceType: batch表示为批量防护的IP黑白名单
|
2698
|
+
# @type SourceType: String
|
2699
|
+
# @param ActionType: IP黑白名单类型,40为IP白名单,42为IP黑名单
|
2700
|
+
# @type ActionType: Integer
|
2701
|
+
|
2702
|
+
attr_accessor :Domain, :RuleIds, :DeleteAll, :SourceType, :ActionType
|
2703
|
+
|
2704
|
+
def initialize(domain=nil, ruleids=nil, deleteall=nil, sourcetype=nil, actiontype=nil)
|
2705
|
+
@Domain = domain
|
2706
|
+
@RuleIds = ruleids
|
2707
|
+
@DeleteAll = deleteall
|
2708
|
+
@SourceType = sourcetype
|
2709
|
+
@ActionType = actiontype
|
2710
|
+
end
|
2711
|
+
|
2712
|
+
def deserialize(params)
|
2713
|
+
@Domain = params['Domain']
|
2714
|
+
@RuleIds = params['RuleIds']
|
2715
|
+
@DeleteAll = params['DeleteAll']
|
2716
|
+
@SourceType = params['SourceType']
|
2717
|
+
@ActionType = params['ActionType']
|
2718
|
+
end
|
2719
|
+
end
|
2720
|
+
|
2721
|
+
# DeleteIpAccessControlV2返回参数结构体
|
2722
|
+
class DeleteIpAccessControlV2Response < TencentCloud::Common::AbstractModel
|
2723
|
+
# @param FailedCount: 在批量删除的时候表示删除失败的条数
|
2724
|
+
# @type FailedCount: Integer
|
2725
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2726
|
+
# @type RequestId: String
|
2727
|
+
|
2728
|
+
attr_accessor :FailedCount, :RequestId
|
2729
|
+
|
2730
|
+
def initialize(failedcount=nil, requestid=nil)
|
2731
|
+
@FailedCount = failedcount
|
2732
|
+
@RequestId = requestid
|
2733
|
+
end
|
2734
|
+
|
2735
|
+
def deserialize(params)
|
2736
|
+
@FailedCount = params['FailedCount']
|
2737
|
+
@RequestId = params['RequestId']
|
2738
|
+
end
|
2739
|
+
end
|
2740
|
+
|
2623
2741
|
# DeleteSession请求参数结构体
|
2624
2742
|
class DeleteSessionRequest < TencentCloud::Common::AbstractModel
|
2625
2743
|
# @param Domain: 域名
|
@@ -4981,10 +5099,10 @@ module TencentCloud
|
|
4981
5099
|
|
4982
5100
|
attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId
|
4983
5101
|
extend Gem::Deprecate
|
4984
|
-
deprecate :VtsMin, :none, 2024,
|
4985
|
-
deprecate :VtsMin=, :none, 2024,
|
4986
|
-
deprecate :VtsMax, :none, 2024,
|
4987
|
-
deprecate :VtsMax=, :none, 2024,
|
5102
|
+
deprecate :VtsMin, :none, 2024, 5
|
5103
|
+
deprecate :VtsMin=, :none, 2024, 5
|
5104
|
+
deprecate :VtsMax, :none, 2024, 5
|
5105
|
+
deprecate :VtsMax=, :none, 2024, 5
|
4988
5106
|
|
4989
5107
|
def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil, ruleid=nil)
|
4990
5108
|
@Domain = domain
|
@@ -5087,10 +5205,10 @@ module TencentCloud
|
|
5087
5205
|
|
5088
5206
|
attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
|
5089
5207
|
extend Gem::Deprecate
|
5090
|
-
deprecate :VtsMin, :none, 2024,
|
5091
|
-
deprecate :VtsMin=, :none, 2024,
|
5092
|
-
deprecate :VtsMax, :none, 2024,
|
5093
|
-
deprecate :VtsMax=, :none, 2024,
|
5208
|
+
deprecate :VtsMin, :none, 2024, 5
|
5209
|
+
deprecate :VtsMin=, :none, 2024, 5
|
5210
|
+
deprecate :VtsMax, :none, 2024, 5
|
5211
|
+
deprecate :VtsMax=, :none, 2024, 5
|
5094
5212
|
|
5095
5213
|
def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil, validtimestampmin=nil, validtimestampmax=nil)
|
5096
5214
|
@Domain = domain
|
@@ -7938,6 +8056,58 @@ module TencentCloud
|
|
7938
8056
|
end
|
7939
8057
|
end
|
7940
8058
|
|
8059
|
+
# ImportIpAccessControl请求参数结构体
|
8060
|
+
class ImportIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
8061
|
+
# @param Data: 导入的IP黑白名单列表
|
8062
|
+
# @type Data: Array
|
8063
|
+
# @param Domain: 具体域名如:test.qcloudwaf.com
|
8064
|
+
# 全局域名为:global
|
8065
|
+
# @type Domain: String
|
8066
|
+
# @param SourceType: 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
8067
|
+
# @type SourceType: String
|
8068
|
+
# @param InstanceId: 实例Id
|
8069
|
+
# @type InstanceId: String
|
8070
|
+
|
8071
|
+
attr_accessor :Data, :Domain, :SourceType, :InstanceId
|
8072
|
+
|
8073
|
+
def initialize(data=nil, domain=nil, sourcetype=nil, instanceid=nil)
|
8074
|
+
@Data = data
|
8075
|
+
@Domain = domain
|
8076
|
+
@SourceType = sourcetype
|
8077
|
+
@InstanceId = instanceid
|
8078
|
+
end
|
8079
|
+
|
8080
|
+
def deserialize(params)
|
8081
|
+
unless params['Data'].nil?
|
8082
|
+
@Data = []
|
8083
|
+
params['Data'].each do |i|
|
8084
|
+
ipaccesscontrolparam_tmp = IpAccessControlParam.new
|
8085
|
+
ipaccesscontrolparam_tmp.deserialize(i)
|
8086
|
+
@Data << ipaccesscontrolparam_tmp
|
8087
|
+
end
|
8088
|
+
end
|
8089
|
+
@Domain = params['Domain']
|
8090
|
+
@SourceType = params['SourceType']
|
8091
|
+
@InstanceId = params['InstanceId']
|
8092
|
+
end
|
8093
|
+
end
|
8094
|
+
|
8095
|
+
# ImportIpAccessControl返回参数结构体
|
8096
|
+
class ImportIpAccessControlResponse < TencentCloud::Common::AbstractModel
|
8097
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8098
|
+
# @type RequestId: String
|
8099
|
+
|
8100
|
+
attr_accessor :RequestId
|
8101
|
+
|
8102
|
+
def initialize(requestid=nil)
|
8103
|
+
@RequestId = requestid
|
8104
|
+
end
|
8105
|
+
|
8106
|
+
def deserialize(params)
|
8107
|
+
@RequestId = params['RequestId']
|
8108
|
+
end
|
8109
|
+
end
|
8110
|
+
|
7941
8111
|
# 一个实例的详细信息
|
7942
8112
|
class InstanceInfo < TencentCloud::Common::AbstractModel
|
7943
8113
|
# @param InstanceId: 实例唯一ID
|
@@ -8242,6 +8412,34 @@ module TencentCloud
|
|
8242
8412
|
end
|
8243
8413
|
end
|
8244
8414
|
|
8415
|
+
# IP黑白名单参数结构体,主要用于IP黑白名单的导入。
|
8416
|
+
class IpAccessControlParam < TencentCloud::Common::AbstractModel
|
8417
|
+
# @param IpList: IP列表
|
8418
|
+
# @type IpList: Array
|
8419
|
+
# @param ValidTs: valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
8420
|
+
# @type ValidTs: Integer
|
8421
|
+
# @param ActionType: 42为黑名单,40为白名单
|
8422
|
+
# @type ActionType: Integer
|
8423
|
+
# @param Note: 备注
|
8424
|
+
# @type Note: String
|
8425
|
+
|
8426
|
+
attr_accessor :IpList, :ValidTs, :ActionType, :Note
|
8427
|
+
|
8428
|
+
def initialize(iplist=nil, validts=nil, actiontype=nil, note=nil)
|
8429
|
+
@IpList = iplist
|
8430
|
+
@ValidTs = validts
|
8431
|
+
@ActionType = actiontype
|
8432
|
+
@Note = note
|
8433
|
+
end
|
8434
|
+
|
8435
|
+
def deserialize(params)
|
8436
|
+
@IpList = params['IpList']
|
8437
|
+
@ValidTs = params['ValidTs']
|
8438
|
+
@ActionType = params['ActionType']
|
8439
|
+
@Note = params['Note']
|
8440
|
+
end
|
8441
|
+
end
|
8442
|
+
|
8245
8443
|
# ip封堵状态数据
|
8246
8444
|
class IpHitItem < TencentCloud::Common::AbstractModel
|
8247
8445
|
# @param Action: 动作
|
@@ -8631,8 +8829,8 @@ module TencentCloud
|
|
8631
8829
|
|
8632
8830
|
attr_accessor :Period, :TopicId
|
8633
8831
|
extend Gem::Deprecate
|
8634
|
-
deprecate :TopicId, :none, 2024,
|
8635
|
-
deprecate :TopicId=, :none, 2024,
|
8832
|
+
deprecate :TopicId, :none, 2024, 5
|
8833
|
+
deprecate :TopicId=, :none, 2024, 5
|
8636
8834
|
|
8637
8835
|
def initialize(period=nil, topicid=nil)
|
8638
8836
|
@Period = period
|
@@ -9925,6 +10123,71 @@ module TencentCloud
|
|
9925
10123
|
end
|
9926
10124
|
end
|
9927
10125
|
|
10126
|
+
# ModifyIpAccessControl请求参数结构体
|
10127
|
+
class ModifyIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
10128
|
+
# @param Domain: 具体域名如:test.qcloudwaf.com
|
10129
|
+
# 全局域名为:global
|
10130
|
+
# @type Domain: String
|
10131
|
+
# @param IpList: ip参数列表
|
10132
|
+
# @type IpList: Array
|
10133
|
+
# @param ActionType: 42为黑名单,40为白名单
|
10134
|
+
# @type ActionType: Integer
|
10135
|
+
# @param ValidTS: valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
10136
|
+
# @type ValidTS: Integer
|
10137
|
+
# @param RuleId: 规则ID
|
10138
|
+
# @type RuleId: Integer
|
10139
|
+
# @param InstanceId: 实例Id
|
10140
|
+
# @type InstanceId: String
|
10141
|
+
# @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
10142
|
+
# @type Edition: String
|
10143
|
+
# @param SourceType: 是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空
|
10144
|
+
# @type SourceType: String
|
10145
|
+
# @param Note: 备注
|
10146
|
+
# @type Note: String
|
10147
|
+
|
10148
|
+
attr_accessor :Domain, :IpList, :ActionType, :ValidTS, :RuleId, :InstanceId, :Edition, :SourceType, :Note
|
10149
|
+
|
10150
|
+
def initialize(domain=nil, iplist=nil, actiontype=nil, validts=nil, ruleid=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil)
|
10151
|
+
@Domain = domain
|
10152
|
+
@IpList = iplist
|
10153
|
+
@ActionType = actiontype
|
10154
|
+
@ValidTS = validts
|
10155
|
+
@RuleId = ruleid
|
10156
|
+
@InstanceId = instanceid
|
10157
|
+
@Edition = edition
|
10158
|
+
@SourceType = sourcetype
|
10159
|
+
@Note = note
|
10160
|
+
end
|
10161
|
+
|
10162
|
+
def deserialize(params)
|
10163
|
+
@Domain = params['Domain']
|
10164
|
+
@IpList = params['IpList']
|
10165
|
+
@ActionType = params['ActionType']
|
10166
|
+
@ValidTS = params['ValidTS']
|
10167
|
+
@RuleId = params['RuleId']
|
10168
|
+
@InstanceId = params['InstanceId']
|
10169
|
+
@Edition = params['Edition']
|
10170
|
+
@SourceType = params['SourceType']
|
10171
|
+
@Note = params['Note']
|
10172
|
+
end
|
10173
|
+
end
|
10174
|
+
|
10175
|
+
# ModifyIpAccessControl返回参数结构体
|
10176
|
+
class ModifyIpAccessControlResponse < TencentCloud::Common::AbstractModel
|
10177
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10178
|
+
# @type RequestId: String
|
10179
|
+
|
10180
|
+
attr_accessor :RequestId
|
10181
|
+
|
10182
|
+
def initialize(requestid=nil)
|
10183
|
+
@RequestId = requestid
|
10184
|
+
end
|
10185
|
+
|
10186
|
+
def deserialize(params)
|
10187
|
+
@RequestId = params['RequestId']
|
10188
|
+
end
|
10189
|
+
end
|
10190
|
+
|
9928
10191
|
# ModifyModuleStatus请求参数结构体
|
9929
10192
|
class ModifyModuleStatusRequest < TencentCloud::Common::AbstractModel
|
9930
10193
|
# @param Domain: 需要设置的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.817
|
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-05-
|
11
|
+
date: 2024-05-08 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/v20180125/client.rb
|
37
|
-
- lib/v20180125/models.rb
|
38
36
|
- lib/tencentcloud-sdk-waf.rb
|
37
|
+
- lib/v20180125/models.rb
|
38
|
+
- lib/v20180125/client.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|