tencentcloud-sdk-teo 3.0.493 → 3.0.495

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20220901/models.rb +144 -10
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eaf66c3a01224fea273953085f0f5dc3e72aa05
4
- data.tar.gz: d0c9c91d61e5f35421cd4ce3a06b75a7ef0f50dc
3
+ metadata.gz: 7e355a3eee201c5cf6a924d9b717e5b20a075823
4
+ data.tar.gz: 1211a8233f3e83ed4b86e0ceb4d29f29bbcfafc3
5
5
  SHA512:
6
- metadata.gz: d3190cc587570cd6711b674d51eb7897dd1fc2ea0d452d4ffc9c228783faebb9f6f0b03671b134ce91b3066f14c7ec058df5da2139e6da0a714f3f85ee78da63
7
- data.tar.gz: cad5a13f64b48ad1ab091da412b338cbcf65988cd764bd6ba2d28d2e3a29ac2fa5e881fcd09b0bb698e80204bb68a23987daf0f10ff24a7da05bee7476ae86f7
6
+ metadata.gz: e1426b0cc3a722586fe5c9bd528f5f38f82664d2a785d3be8f8b23e1d7ab6c70714ba0b61f267edbd7b088334250db589d3ea42cce324a144ae2f438cee9bfc9
7
+ data.tar.gz: 8fbedcdc828cff751f637d5c9c6735e28887fd3a06fe445fe6cf037e25ada2748ee406b53cca0b94f644239758bd590af91eee02e3fc4d49239b90e40b98c434
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.493
1
+ 3.0.495
@@ -99,12 +99,16 @@ module TencentCloud
99
99
  # @type Switch: String
100
100
  # @param AclUserRules: 用户自定义规则。
101
101
  # @type AclUserRules: Array
102
+ # @param Customizes: 托管定制规则
103
+ # 注意:此字段可能返回 null,表示取不到有效值。
104
+ # @type Customizes: Array
102
105
 
103
- attr_accessor :Switch, :AclUserRules
106
+ attr_accessor :Switch, :AclUserRules, :Customizes
104
107
 
105
- def initialize(switch=nil, acluserrules=nil)
108
+ def initialize(switch=nil, acluserrules=nil, customizes=nil)
106
109
  @Switch = switch
107
110
  @AclUserRules = acluserrules
111
+ @Customizes = customizes
108
112
  end
109
113
 
110
114
  def deserialize(params)
@@ -117,6 +121,14 @@ module TencentCloud
117
121
  @AclUserRules << acluserrule_tmp
118
122
  end
119
123
  end
124
+ unless params['Customizes'].nil?
125
+ @Customizes = []
126
+ params['Customizes'].each do |i|
127
+ acluserrule_tmp = AclUserRule.new
128
+ acluserrule_tmp.deserialize(i)
129
+ @Customizes << acluserrule_tmp
130
+ end
131
+ end
120
132
  end
121
133
  end
122
134
 
@@ -3156,7 +3168,7 @@ module TencentCloud
3156
3168
  # @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
3157
3169
  # <li>need-update<br>   按照【<strong>站点是否需要更新源站防护IP白名单</strong>】进行过滤。<br>   类型:String<br>   必选:否<br>   可选项:<br>   true:需要更新<br>   false:无需更新<br></li>
3158
3170
  # <li>plan-support<br>   按照【<strong>站点套餐是否支持源站防护</strong>】进行过滤。<br>   类型:String<br>   必选:否<br>   可选项:<br>   true:支持<br>   false:不支持<br></li>
3159
- # @type Filters: :class:`Tencentcloud::Teo.v20220901.models.Filter`
3171
+ # @type Filters: Array
3160
3172
  # @param Offset: 分页查询偏移量,默认为0。
3161
3173
  # @type Offset: Integer
3162
3174
  # @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
@@ -3174,8 +3186,12 @@ module TencentCloud
3174
3186
  def deserialize(params)
3175
3187
  @ZoneIds = params['ZoneIds']
3176
3188
  unless params['Filters'].nil?
3177
- @Filters = Filter.new
3178
- @Filters.deserialize(params['Filters'])
3189
+ @Filters = []
3190
+ params['Filters'].each do |i|
3191
+ filter_tmp = Filter.new
3192
+ filter_tmp.deserialize(i)
3193
+ @Filters << filter_tmp
3194
+ end
3179
3195
  end
3180
3196
  @Offset = params['Offset']
3181
3197
  @Limit = params['Limit']
@@ -5770,6 +5786,30 @@ module TencentCloud
5770
5786
  end
5771
5787
  end
5772
5788
 
5789
+ # 慢速攻击的首段包配置。
5790
+ class FirstPartConfig < TencentCloud::Common::AbstractModel
5791
+ # @param Switch: 开关,取值有:
5792
+ # <li>on:开启;</li>
5793
+ # <li>off:关闭。</li>
5794
+ # 注意:此字段可能返回 null,表示取不到有效值。
5795
+ # @type Switch: String
5796
+ # @param StatTime: 首段包的统计时长,单位是秒,即期望首段包的统计时长是多少,默认5秒。
5797
+ # 注意:此字段可能返回 null,表示取不到有效值。
5798
+ # @type StatTime: Integer
5799
+
5800
+ attr_accessor :Switch, :StatTime
5801
+
5802
+ def initialize(switch=nil, stattime=nil)
5803
+ @Switch = switch
5804
+ @StatTime = stattime
5805
+ end
5806
+
5807
+ def deserialize(params)
5808
+ @Switch = params['Switch']
5809
+ @StatTime = params['StatTime']
5810
+ end
5811
+ end
5812
+
5773
5813
  # 缓存遵循源站配置
5774
5814
  class FollowOrigin < TencentCloud::Common::AbstractModel
5775
5815
  # @param Switch: 遵循源站配置开关,取值有:
@@ -7924,7 +7964,7 @@ module TencentCloud
7924
7964
  end
7925
7965
  end
7926
7966
 
7927
- # RateLimit配置
7967
+ # 速率限制规则
7928
7968
  class RateLimitConfig < TencentCloud::Common::AbstractModel
7929
7969
  # @param Switch: 开关,取值有:
7930
7970
  # <li>on:开启;</li>
@@ -7938,14 +7978,18 @@ module TencentCloud
7938
7978
  # @param RateLimitIntelligence: 智能客户端过滤。如果为null,默认使用历史配置。
7939
7979
  # 注意:此字段可能返回 null,表示取不到有效值。
7940
7980
  # @type RateLimitIntelligence: :class:`Tencentcloud::Teo.v20220901.models.RateLimitIntelligence`
7981
+ # @param RateLimitCustomizes: 速率限制-托管定制规则。如果为null,默认使用历史配置。
7982
+ # 注意:此字段可能返回 null,表示取不到有效值。
7983
+ # @type RateLimitCustomizes: Array
7941
7984
 
7942
- attr_accessor :Switch, :RateLimitUserRules, :RateLimitTemplate, :RateLimitIntelligence
7985
+ attr_accessor :Switch, :RateLimitUserRules, :RateLimitTemplate, :RateLimitIntelligence, :RateLimitCustomizes
7943
7986
 
7944
- def initialize(switch=nil, ratelimituserrules=nil, ratelimittemplate=nil, ratelimitintelligence=nil)
7987
+ def initialize(switch=nil, ratelimituserrules=nil, ratelimittemplate=nil, ratelimitintelligence=nil, ratelimitcustomizes=nil)
7945
7988
  @Switch = switch
7946
7989
  @RateLimitUserRules = ratelimituserrules
7947
7990
  @RateLimitTemplate = ratelimittemplate
7948
7991
  @RateLimitIntelligence = ratelimitintelligence
7992
+ @RateLimitCustomizes = ratelimitcustomizes
7949
7993
  end
7950
7994
 
7951
7995
  def deserialize(params)
@@ -7966,6 +8010,14 @@ module TencentCloud
7966
8010
  @RateLimitIntelligence = RateLimitIntelligence.new
7967
8011
  @RateLimitIntelligence.deserialize(params['RateLimitIntelligence'])
7968
8012
  end
8013
+ unless params['RateLimitCustomizes'].nil?
8014
+ @RateLimitCustomizes = []
8015
+ params['RateLimitCustomizes'].each do |i|
8016
+ ratelimituserrule_tmp = RateLimitUserRule.new
8017
+ ratelimituserrule_tmp.deserialize(i)
8018
+ @RateLimitCustomizes << ratelimituserrule_tmp
8019
+ end
8020
+ end
7969
8021
  end
7970
8022
  end
7971
8023
 
@@ -9046,10 +9098,13 @@ module TencentCloud
9046
9098
  # @param TemplateConfig: 模板配置。此处仅出参数使用。
9047
9099
  # 注意:此字段可能返回 null,表示取不到有效值。
9048
9100
  # @type TemplateConfig: :class:`Tencentcloud::Teo.v20220901.models.TemplateConfig`
9101
+ # @param SlowPostConfig: 慢速攻击配置。如果为null,默认使用历史配置。
9102
+ # 注意:此字段可能返回 null,表示取不到有效值。
9103
+ # @type SlowPostConfig: :class:`Tencentcloud::Teo.v20220901.models.SlowPostConfig`
9049
9104
 
9050
- attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig
9105
+ attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig, :SlowPostConfig
9051
9106
 
9052
- def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil)
9107
+ def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil, slowpostconfig=nil)
9053
9108
  @WafConfig = wafconfig
9054
9109
  @RateLimitConfig = ratelimitconfig
9055
9110
  @AclConfig = aclconfig
@@ -9059,6 +9114,7 @@ module TencentCloud
9059
9114
  @ExceptConfig = exceptconfig
9060
9115
  @DropPageConfig = droppageconfig
9061
9116
  @TemplateConfig = templateconfig
9117
+ @SlowPostConfig = slowpostconfig
9062
9118
  end
9063
9119
 
9064
9120
  def deserialize(params)
@@ -9098,6 +9154,10 @@ module TencentCloud
9098
9154
  @TemplateConfig = TemplateConfig.new
9099
9155
  @TemplateConfig.deserialize(params['TemplateConfig'])
9100
9156
  end
9157
+ unless params['SlowPostConfig'].nil?
9158
+ @SlowPostConfig = SlowPostConfig.new
9159
+ @SlowPostConfig.deserialize(params['SlowPostConfig'])
9160
+ end
9101
9161
  end
9102
9162
  end
9103
9163
 
@@ -9271,6 +9331,80 @@ module TencentCloud
9271
9331
  end
9272
9332
  end
9273
9333
 
9334
+ # 慢速攻击配置。
9335
+ class SlowPostConfig < TencentCloud::Common::AbstractModel
9336
+ # @param Switch: 开关,取值有:
9337
+ # <li>on:开启;</li>
9338
+ # <li>off:关闭。</li>
9339
+ # @type Switch: String
9340
+ # @param FirstPartConfig: 首包配置。
9341
+ # 注意:此字段可能返回 null,表示取不到有效值。
9342
+ # @type FirstPartConfig: :class:`Tencentcloud::Teo.v20220901.models.FirstPartConfig`
9343
+ # @param SlowRateConfig: 基础配置。
9344
+ # 注意:此字段可能返回 null,表示取不到有效值。
9345
+ # @type SlowRateConfig: :class:`Tencentcloud::Teo.v20220901.models.SlowRateConfig`
9346
+ # @param Action: 慢速攻击的处置动作,取值有:
9347
+ # <li>monitor:观察;</li>
9348
+ # <li>drop:拦截。</li>
9349
+ # 注意:此字段可能返回 null,表示取不到有效值。
9350
+ # @type Action: String
9351
+ # @param RuleId: 本规则的Id。
9352
+ # 注意:此字段可能返回 null,表示取不到有效值。
9353
+ # @type RuleId: Integer
9354
+
9355
+ attr_accessor :Switch, :FirstPartConfig, :SlowRateConfig, :Action, :RuleId
9356
+
9357
+ def initialize(switch=nil, firstpartconfig=nil, slowrateconfig=nil, action=nil, ruleid=nil)
9358
+ @Switch = switch
9359
+ @FirstPartConfig = firstpartconfig
9360
+ @SlowRateConfig = slowrateconfig
9361
+ @Action = action
9362
+ @RuleId = ruleid
9363
+ end
9364
+
9365
+ def deserialize(params)
9366
+ @Switch = params['Switch']
9367
+ unless params['FirstPartConfig'].nil?
9368
+ @FirstPartConfig = FirstPartConfig.new
9369
+ @FirstPartConfig.deserialize(params['FirstPartConfig'])
9370
+ end
9371
+ unless params['SlowRateConfig'].nil?
9372
+ @SlowRateConfig = SlowRateConfig.new
9373
+ @SlowRateConfig.deserialize(params['SlowRateConfig'])
9374
+ end
9375
+ @Action = params['Action']
9376
+ @RuleId = params['RuleId']
9377
+ end
9378
+ end
9379
+
9380
+ # 慢速攻击的基础配置。
9381
+ class SlowRateConfig < TencentCloud::Common::AbstractModel
9382
+ # @param Switch: 开关,取值有:
9383
+ # <li>on:开启;</li>
9384
+ # <li>off:关闭。</li>
9385
+ # @type Switch: String
9386
+ # @param Interval: 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。
9387
+ # 注意:此字段可能返回 null,表示取不到有效值。
9388
+ # @type Interval: Integer
9389
+ # @param Threshold: 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。
9390
+ # 注意:此字段可能返回 null,表示取不到有效值。
9391
+ # @type Threshold: Integer
9392
+
9393
+ attr_accessor :Switch, :Interval, :Threshold
9394
+
9395
+ def initialize(switch=nil, interval=nil, threshold=nil)
9396
+ @Switch = switch
9397
+ @Interval = interval
9398
+ @Threshold = threshold
9399
+ end
9400
+
9401
+ def deserialize(params)
9402
+ @Switch = params['Switch']
9403
+ @Interval = params['Interval']
9404
+ @Threshold = params['Threshold']
9405
+ end
9406
+ end
9407
+
9274
9408
  # 智能加速配置
9275
9409
  class SmartRouting < TencentCloud::Common::AbstractModel
9276
9410
  # @param Switch: 智能加速配置开关,取值有:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.493
4
+ version: 3.0.495
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-13 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common