tencentcloud-sdk-teo 3.0.494 → 3.0.495

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20220901/models.rb +137 -7
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce074666e2bc74e9286c60ab73d77686e5476493
4
- data.tar.gz: 2ab2786a8835d3ed797456799193e8e7d8a19b2f
3
+ metadata.gz: 7e355a3eee201c5cf6a924d9b717e5b20a075823
4
+ data.tar.gz: 1211a8233f3e83ed4b86e0ceb4d29f29bbcfafc3
5
5
  SHA512:
6
- metadata.gz: 53d17e18a6a9b63e221909cf2f157c8f783de3f007ca7c33a33ad1c081e259f00f121d739af239f0e53c7fcbd891a5888f13ce5ef4d3f3aa4d02295546aa0aaf
7
- data.tar.gz: 28fb3d14e132cf93a7dad44e7e04cfde9cc911df28e172a313636927ed80a1e171e6682355b985d0274575c579548355fd3ae113df46000ee003102aefee1113
6
+ metadata.gz: e1426b0cc3a722586fe5c9bd528f5f38f82664d2a785d3be8f8b23e1d7ab6c70714ba0b61f267edbd7b088334250db589d3ea42cce324a144ae2f438cee9bfc9
7
+ data.tar.gz: 8fbedcdc828cff751f637d5c9c6735e28887fd3a06fe445fe6cf037e25ada2748ee406b53cca0b94f644239758bd590af91eee02e3fc4d49239b90e40b98c434
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.494
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
 
@@ -5774,6 +5786,30 @@ module TencentCloud
5774
5786
  end
5775
5787
  end
5776
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
+
5777
5813
  # 缓存遵循源站配置
5778
5814
  class FollowOrigin < TencentCloud::Common::AbstractModel
5779
5815
  # @param Switch: 遵循源站配置开关,取值有:
@@ -7928,7 +7964,7 @@ module TencentCloud
7928
7964
  end
7929
7965
  end
7930
7966
 
7931
- # RateLimit配置
7967
+ # 速率限制规则
7932
7968
  class RateLimitConfig < TencentCloud::Common::AbstractModel
7933
7969
  # @param Switch: 开关,取值有:
7934
7970
  # <li>on:开启;</li>
@@ -7942,14 +7978,18 @@ module TencentCloud
7942
7978
  # @param RateLimitIntelligence: 智能客户端过滤。如果为null,默认使用历史配置。
7943
7979
  # 注意:此字段可能返回 null,表示取不到有效值。
7944
7980
  # @type RateLimitIntelligence: :class:`Tencentcloud::Teo.v20220901.models.RateLimitIntelligence`
7981
+ # @param RateLimitCustomizes: 速率限制-托管定制规则。如果为null,默认使用历史配置。
7982
+ # 注意:此字段可能返回 null,表示取不到有效值。
7983
+ # @type RateLimitCustomizes: Array
7945
7984
 
7946
- attr_accessor :Switch, :RateLimitUserRules, :RateLimitTemplate, :RateLimitIntelligence
7985
+ attr_accessor :Switch, :RateLimitUserRules, :RateLimitTemplate, :RateLimitIntelligence, :RateLimitCustomizes
7947
7986
 
7948
- def initialize(switch=nil, ratelimituserrules=nil, ratelimittemplate=nil, ratelimitintelligence=nil)
7987
+ def initialize(switch=nil, ratelimituserrules=nil, ratelimittemplate=nil, ratelimitintelligence=nil, ratelimitcustomizes=nil)
7949
7988
  @Switch = switch
7950
7989
  @RateLimitUserRules = ratelimituserrules
7951
7990
  @RateLimitTemplate = ratelimittemplate
7952
7991
  @RateLimitIntelligence = ratelimitintelligence
7992
+ @RateLimitCustomizes = ratelimitcustomizes
7953
7993
  end
7954
7994
 
7955
7995
  def deserialize(params)
@@ -7970,6 +8010,14 @@ module TencentCloud
7970
8010
  @RateLimitIntelligence = RateLimitIntelligence.new
7971
8011
  @RateLimitIntelligence.deserialize(params['RateLimitIntelligence'])
7972
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
7973
8021
  end
7974
8022
  end
7975
8023
 
@@ -9050,10 +9098,13 @@ module TencentCloud
9050
9098
  # @param TemplateConfig: 模板配置。此处仅出参数使用。
9051
9099
  # 注意:此字段可能返回 null,表示取不到有效值。
9052
9100
  # @type TemplateConfig: :class:`Tencentcloud::Teo.v20220901.models.TemplateConfig`
9101
+ # @param SlowPostConfig: 慢速攻击配置。如果为null,默认使用历史配置。
9102
+ # 注意:此字段可能返回 null,表示取不到有效值。
9103
+ # @type SlowPostConfig: :class:`Tencentcloud::Teo.v20220901.models.SlowPostConfig`
9053
9104
 
9054
- attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig
9105
+ attr_accessor :WafConfig, :RateLimitConfig, :AclConfig, :BotConfig, :SwitchConfig, :IpTableConfig, :ExceptConfig, :DropPageConfig, :TemplateConfig, :SlowPostConfig
9055
9106
 
9056
- 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)
9057
9108
  @WafConfig = wafconfig
9058
9109
  @RateLimitConfig = ratelimitconfig
9059
9110
  @AclConfig = aclconfig
@@ -9063,6 +9114,7 @@ module TencentCloud
9063
9114
  @ExceptConfig = exceptconfig
9064
9115
  @DropPageConfig = droppageconfig
9065
9116
  @TemplateConfig = templateconfig
9117
+ @SlowPostConfig = slowpostconfig
9066
9118
  end
9067
9119
 
9068
9120
  def deserialize(params)
@@ -9102,6 +9154,10 @@ module TencentCloud
9102
9154
  @TemplateConfig = TemplateConfig.new
9103
9155
  @TemplateConfig.deserialize(params['TemplateConfig'])
9104
9156
  end
9157
+ unless params['SlowPostConfig'].nil?
9158
+ @SlowPostConfig = SlowPostConfig.new
9159
+ @SlowPostConfig.deserialize(params['SlowPostConfig'])
9160
+ end
9105
9161
  end
9106
9162
  end
9107
9163
 
@@ -9275,6 +9331,80 @@ module TencentCloud
9275
9331
  end
9276
9332
  end
9277
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
+
9278
9408
  # 智能加速配置
9279
9409
  class SmartRouting < TencentCloud::Common::AbstractModel
9280
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.494
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-16 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