tencentcloud-sdk-cdn 3.0.371 → 3.0.381

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/v20180606/models.rb +21 -4
  4. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4be6d2d87ded5272155b1c92a2dd09fdef90709d
4
- data.tar.gz: 5522d9dadb24ea78049e04d2586ba708b91d5490
3
+ metadata.gz: a0106ef12ef21b8164231cfa9be45625b75d1238
4
+ data.tar.gz: 62d79856d630dbfd974e6bd5184f766b647b84c4
5
5
  SHA512:
6
- metadata.gz: bca593d616c5e41ba9c8e9bb877219948cf6938bd22c556461d7a555bbe90ee766cf1ad332c1b5bd24ce775e6e4efd0b1e5ece49d9613be41450f8e3e0d28fe8
7
- data.tar.gz: 02efaa596819bd0e9749e70e0beda62282fe314fe00d95c57125e0f9c9a80970b746a257ae7437131f390a3dbc22604cd669f225ef3d70125a412fa05f65d25d
6
+ metadata.gz: 8166f1b421c48dfa0118eb875093032bbcf5ea2f8648d6e0eadb18e40f426362625ee2a5920aa6a6c149bad4a021b09e02974b8ca44b9aa9629d90132ca65497
7
+ data.tar.gz: 67995341134a2927808fc8e033d75894ccb243f2debcb0e505c18ccd5ae4bce9d4e21fa890f67ff131f885d386cab15119de1509aabb1b79cc6bcdb27eeeba62
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.371
1
+ 3.0.381
@@ -876,10 +876,13 @@ module TencentCloud
876
876
  # @param Configure: 七层限频具体配置
877
877
  # 注意:此字段可能返回 null,表示取不到有效值。
878
878
  # @type Configure: Array
879
+ # @param Switch: 是否开启改规则 on 开启,off关闭
880
+ # 注意:此字段可能返回 null,表示取不到有效值。
881
+ # @type Switch: String
879
882
 
880
- attr_accessor :RuleName, :DetectionTime, :FrequencyLimit, :PunishmentSwitch, :PunishmentTime, :Action, :RedirectUrl, :Configure
883
+ attr_accessor :RuleName, :DetectionTime, :FrequencyLimit, :PunishmentSwitch, :PunishmentTime, :Action, :RedirectUrl, :Configure, :Switch
881
884
 
882
- def initialize(rulename=nil, detectiontime=nil, frequencylimit=nil, punishmentswitch=nil, punishmenttime=nil, action=nil, redirecturl=nil, configure=nil)
885
+ def initialize(rulename=nil, detectiontime=nil, frequencylimit=nil, punishmentswitch=nil, punishmenttime=nil, action=nil, redirecturl=nil, configure=nil, switch=nil)
883
886
  @RuleName = rulename
884
887
  @DetectionTime = detectiontime
885
888
  @FrequencyLimit = frequencylimit
@@ -888,6 +891,7 @@ module TencentCloud
888
891
  @Action = action
889
892
  @RedirectUrl = redirecturl
890
893
  @Configure = configure
894
+ @Switch = switch
891
895
  end
892
896
 
893
897
  def deserialize(params)
@@ -906,6 +910,7 @@ module TencentCloud
906
910
  @Configure << scdnsevenlayerrules_tmp
907
911
  end
908
912
  end
913
+ @Switch = params['Switch']
909
914
  end
910
915
  end
911
916
 
@@ -11242,13 +11247,17 @@ module TencentCloud
11242
11247
  # @param AdvancedRules: 增强自定义 cc 防护规则
11243
11248
  # 注意:此字段可能返回 null,表示取不到有效值。
11244
11249
  # @type AdvancedRules: Array
11250
+ # @param GlobalAdvancedRules: 增强自定义 cc 防护规则, 全局
11251
+ # 注意:此字段可能返回 null,表示取不到有效值。
11252
+ # @type GlobalAdvancedRules: Array
11245
11253
 
11246
- attr_accessor :Switch, :Rules, :AdvancedRules
11254
+ attr_accessor :Switch, :Rules, :AdvancedRules, :GlobalAdvancedRules
11247
11255
 
11248
- def initialize(switch=nil, rules=nil, advancedrules=nil)
11256
+ def initialize(switch=nil, rules=nil, advancedrules=nil, globaladvancedrules=nil)
11249
11257
  @Switch = switch
11250
11258
  @Rules = rules
11251
11259
  @AdvancedRules = advancedrules
11260
+ @GlobalAdvancedRules = globaladvancedrules
11252
11261
  end
11253
11262
 
11254
11263
  def deserialize(params)
@@ -11269,6 +11278,14 @@ module TencentCloud
11269
11278
  @AdvancedRules << advancedccrules_tmp
11270
11279
  end
11271
11280
  end
11281
+ unless params['GlobalAdvancedRules'].nil?
11282
+ @GlobalAdvancedRules = []
11283
+ params['GlobalAdvancedRules'].each do |i|
11284
+ advancedccrules_tmp = AdvancedCCRules.new
11285
+ advancedccrules_tmp.deserialize(i)
11286
+ @GlobalAdvancedRules << advancedccrules_tmp
11287
+ end
11288
+ end
11272
11289
  end
11273
11290
  end
11274
11291
 
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.371
4
+ version: 3.0.381
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  description: Tencent Cloud Ruby SDK is the official software development kit, which
@@ -33,10 +33,10 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/VERSION
37
36
  - lib/tencentcloud-sdk-cdn.rb
38
- - lib/v20180606/client.rb
39
37
  - lib/v20180606/models.rb
38
+ - lib/v20180606/client.rb
39
+ - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses:
42
42
  - Apache-2.0
@@ -49,17 +49,17 @@ require_paths:
49
49
  - lib
50
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
57
+ - - '>='
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 2.6.14
62
+ rubygems_version: 2.0.14
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Tencent Cloud SDK for Ruby - CDN