tencentcloud-sdk-teo 3.0.1105 → 3.0.1106

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cc3eaaeb452ef157633f5a6f8de1f6e818f9bf8
4
- data.tar.gz: ef13493ffe3241ef6f26609c12686c3c6c7d49f9
3
+ metadata.gz: 14951a341a20798133112dec782abf6d874c4d92
4
+ data.tar.gz: a5bc0ea1a73d93bec83cbcf60a77d02ec088080d
5
5
  SHA512:
6
- metadata.gz: 7a597dd371292fe5c08639754af6546e8a89f0cf04595d872b307b15a7fdf05f71980aea40acd3c1f0c6e6759e958e68d1fcf3ed7c5ecc7defece98ae3b16e89
7
- data.tar.gz: da121f28ccbb6c636a1591f2caeb3783fe94e5a68511d03a37683e75b174eb4c08a184f072c7881c122b42d988bdd79a09350cd38a82662442dc927c9422cd60
6
+ metadata.gz: 08654d44609cefe68e060bd255e2a2bf71cd478084e34ec1e3171326aa416a9847d9a9e874e2f4752e372822f862ed6f681c5050eee3cb7bae34c55decddd0d4
7
+ data.tar.gz: 348bf9ab5e5725b3bf65c6cbf28cdc41d87f3fbecfa9da71bf4c6a45824f024f9f16ff09540c4646e04634a1d38b3b271dc6a74566a67980dd58e60af0394b41
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1105
1
+ 3.0.1106
@@ -1724,6 +1724,30 @@ module TencentCloud
1724
1724
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1725
1725
  end
1726
1726
 
1727
+ # 获取站点的独立 DDoS 防护信息。
1728
+
1729
+ # @param request: Request instance for DescribeDDoSProtection.
1730
+ # @type request: :class:`Tencentcloud::teo::V20220901::DescribeDDoSProtectionRequest`
1731
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDDoSProtectionResponse`
1732
+ def DescribeDDoSProtection(request)
1733
+ body = send_request('DescribeDDoSProtection', request.serialize)
1734
+ response = JSON.parse(body)
1735
+ if response['Response'].key?('Error') == false
1736
+ model = DescribeDDoSProtectionResponse.new
1737
+ model.deserialize(response['Response'])
1738
+ model
1739
+ else
1740
+ code = response['Response']['Error']['Code']
1741
+ message = response['Response']['Error']['Message']
1742
+ reqid = response['Response']['RequestId']
1743
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1744
+ end
1745
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1746
+ raise e
1747
+ rescue StandardError => e
1748
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1749
+ end
1750
+
1727
1751
  # 查询默认证书列表
1728
1752
 
1729
1753
  # @param request: Request instance for DescribeDefaultCertificates.
@@ -3308,6 +3332,30 @@ module TencentCloud
3308
3332
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3309
3333
  end
3310
3334
 
3335
+ # 修改站点的独立 DDoS 防护。
3336
+
3337
+ # @param request: Request instance for ModifyDDoSProtection.
3338
+ # @type request: :class:`Tencentcloud::teo::V20220901::ModifyDDoSProtectionRequest`
3339
+ # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyDDoSProtectionResponse`
3340
+ def ModifyDDoSProtection(request)
3341
+ body = send_request('ModifyDDoSProtection', request.serialize)
3342
+ response = JSON.parse(body)
3343
+ if response['Response'].key?('Error') == false
3344
+ model = ModifyDDoSProtectionResponse.new
3345
+ model.deserialize(response['Response'])
3346
+ model
3347
+ else
3348
+ code = response['Response']['Error']['Code']
3349
+ message = response['Response']['Error']['Message']
3350
+ reqid = response['Response']['RequestId']
3351
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3352
+ end
3353
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3354
+ raise e
3355
+ rescue StandardError => e
3356
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3357
+ end
3358
+
3311
3359
  # 您可以通过本接口批量修改 DNS 记录。
3312
3360
 
3313
3361
  # @param request: Request instance for ModifyDnsRecords.
@@ -5062,6 +5062,48 @@ module TencentCloud
5062
5062
  end
5063
5063
  end
5064
5064
 
5065
+ # 独立 DDoS 防护配置。
5066
+ class DDoSProtection < TencentCloud::Common::AbstractModel
5067
+ # @param ProtectionOption: 指定独立 DDoS 的防护范围。取值为:
5068
+ # <li> protect_all_domains:独立 DDoS 防护对站点内全部域名生效,新接入域名自动开启独立 DDoS 防护,入参为 protect_all_domains 时,入参 DomainDDoSProtections 不作处理;</li>
5069
+ # <li> protect_specified_domains:仅对指定域名生效,具体范围可通过 DomainDDoSProtection 参数指定。</li>
5070
+ # @type ProtectionOption: String
5071
+ # @param DomainDDoSProtections: 域名的独立 DDoS 防护配置。在入参场景中:
5072
+ # <li> 当 ProtectionOption 保持为 protect_specified_domains 时:未填写的域名维持原有独立 DDoS 防护配置不变,显式指定的域名​按传入参数更新;</li>
5073
+ # <li> 当 ProtectionOption 由 protect_all_domains 切换为 protect_specified_domains 时:若 DomainDDoSProtections 传空,停用站点下全部域名的独立 DDoS 防护;若 DomainDDoSProtections 不为空,参数中指定的域名停用或保持独立 DDoS 防护,其余未列出的域名统一停用独立 DDoS 防护。</li>
5074
+ # @type DomainDDoSProtections: Array
5075
+ # @param SharedCNAMEDDoSProtections: 共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。
5076
+ # @type SharedCNAMEDDoSProtections: Array
5077
+
5078
+ attr_accessor :ProtectionOption, :DomainDDoSProtections, :SharedCNAMEDDoSProtections
5079
+
5080
+ def initialize(protectionoption=nil, domainddosprotections=nil, sharedcnameddosprotections=nil)
5081
+ @ProtectionOption = protectionoption
5082
+ @DomainDDoSProtections = domainddosprotections
5083
+ @SharedCNAMEDDoSProtections = sharedcnameddosprotections
5084
+ end
5085
+
5086
+ def deserialize(params)
5087
+ @ProtectionOption = params['ProtectionOption']
5088
+ unless params['DomainDDoSProtections'].nil?
5089
+ @DomainDDoSProtections = []
5090
+ params['DomainDDoSProtections'].each do |i|
5091
+ domainddosprotection_tmp = DomainDDoSProtection.new
5092
+ domainddosprotection_tmp.deserialize(i)
5093
+ @DomainDDoSProtections << domainddosprotection_tmp
5094
+ end
5095
+ end
5096
+ unless params['SharedCNAMEDDoSProtections'].nil?
5097
+ @SharedCNAMEDDoSProtections = []
5098
+ params['SharedCNAMEDDoSProtections'].each do |i|
5099
+ domainddosprotection_tmp = DomainDDoSProtection.new
5100
+ domainddosprotection_tmp.deserialize(i)
5101
+ @SharedCNAMEDDoSProtections << domainddosprotection_tmp
5102
+ end
5103
+ end
5104
+ end
5105
+ end
5106
+
5065
5107
  # 适用于四层代理或 Web 站点服务的独立 DDoS 防护规格配置。
5066
5108
  class DDosProtectionConfig < TencentCloud::Common::AbstractModel
5067
5109
  # @param LevelMainland: 中国大陆地区独立 DDoS 防护的规格。详情请参考 [独立 DDoS 防护相关费用](https://cloud.tencent.com/document/product/1552/94162)
@@ -7057,6 +7099,45 @@ module TencentCloud
7057
7099
  end
7058
7100
  end
7059
7101
 
7102
+ # DescribeDDoSProtection请求参数结构体
7103
+ class DescribeDDoSProtectionRequest < TencentCloud::Common::AbstractModel
7104
+ # @param ZoneId: 站点 ID。
7105
+ # @type ZoneId: String
7106
+
7107
+ attr_accessor :ZoneId
7108
+
7109
+ def initialize(zoneid=nil)
7110
+ @ZoneId = zoneid
7111
+ end
7112
+
7113
+ def deserialize(params)
7114
+ @ZoneId = params['ZoneId']
7115
+ end
7116
+ end
7117
+
7118
+ # DescribeDDoSProtection返回参数结构体
7119
+ class DescribeDDoSProtectionResponse < TencentCloud::Common::AbstractModel
7120
+ # @param DDoSProtection: 独立 DDoS 防护配置。用于控制独立 DDoS 防护的生效范围。
7121
+ # @type DDoSProtection: :class:`Tencentcloud::Teo.v20220901.models.DDoSProtection`
7122
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7123
+ # @type RequestId: String
7124
+
7125
+ attr_accessor :DDoSProtection, :RequestId
7126
+
7127
+ def initialize(ddosprotection=nil, requestid=nil)
7128
+ @DDoSProtection = ddosprotection
7129
+ @RequestId = requestid
7130
+ end
7131
+
7132
+ def deserialize(params)
7133
+ unless params['DDoSProtection'].nil?
7134
+ @DDoSProtection = DDoSProtection.new
7135
+ @DDoSProtection.deserialize(params['DDoSProtection'])
7136
+ end
7137
+ @RequestId = params['RequestId']
7138
+ end
7139
+ end
7140
+
7060
7141
  # DescribeDefaultCertificates请求参数结构体
7061
7142
  class DescribeDefaultCertificatesRequest < TencentCloud::Common::AbstractModel
7062
7143
  # @param ZoneId: 站点 ID。
@@ -10428,6 +10509,28 @@ module TencentCloud
10428
10509
  end
10429
10510
  end
10430
10511
 
10512
+ # 域名的独立 DDoS 防护信息。
10513
+ class DomainDDoSProtection < TencentCloud::Common::AbstractModel
10514
+ # @param Domain: 域名。
10515
+ # @type Domain: String
10516
+ # @param Switch: 域名的独立 DDoS 开关,取值为:
10517
+ # <li> on:已开启;</li>
10518
+ # <li> off:已关闭。</li>
10519
+ # @type Switch: String
10520
+
10521
+ attr_accessor :Domain, :Switch
10522
+
10523
+ def initialize(domain=nil, switch=nil)
10524
+ @Domain = domain
10525
+ @Switch = switch
10526
+ end
10527
+
10528
+ def deserialize(params)
10529
+ @Domain = params['Domain']
10530
+ @Switch = params['Switch']
10531
+ end
10532
+ end
10533
+
10431
10534
  # DownloadL4Logs请求参数结构体
10432
10535
  class DownloadL4LogsRequest < TencentCloud::Common::AbstractModel
10433
10536
  # @param StartTime: 开始时间。
@@ -13716,6 +13819,45 @@ module TencentCloud
13716
13819
  end
13717
13820
  end
13718
13821
 
13822
+ # ModifyDDoSProtection请求参数结构体
13823
+ class ModifyDDoSProtectionRequest < TencentCloud::Common::AbstractModel
13824
+ # @param ZoneId: 站点 ID。
13825
+ # @type ZoneId: String
13826
+ # @param DDoSProtection: 独立 DDoS 防护配置。
13827
+ # @type DDoSProtection: :class:`Tencentcloud::Teo.v20220901.models.DDoSProtection`
13828
+
13829
+ attr_accessor :ZoneId, :DDoSProtection
13830
+
13831
+ def initialize(zoneid=nil, ddosprotection=nil)
13832
+ @ZoneId = zoneid
13833
+ @DDoSProtection = ddosprotection
13834
+ end
13835
+
13836
+ def deserialize(params)
13837
+ @ZoneId = params['ZoneId']
13838
+ unless params['DDoSProtection'].nil?
13839
+ @DDoSProtection = DDoSProtection.new
13840
+ @DDoSProtection.deserialize(params['DDoSProtection'])
13841
+ end
13842
+ end
13843
+ end
13844
+
13845
+ # ModifyDDoSProtection返回参数结构体
13846
+ class ModifyDDoSProtectionResponse < TencentCloud::Common::AbstractModel
13847
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13848
+ # @type RequestId: String
13849
+
13850
+ attr_accessor :RequestId
13851
+
13852
+ def initialize(requestid=nil)
13853
+ @RequestId = requestid
13854
+ end
13855
+
13856
+ def deserialize(params)
13857
+ @RequestId = params['RequestId']
13858
+ end
13859
+ end
13860
+
13719
13861
  # ModifyDnsRecords请求参数结构体
13720
13862
  class ModifyDnsRecordsRequest < TencentCloud::Common::AbstractModel
13721
13863
  # @param ZoneId: 站点 ID 。
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.1105
4
+ version: 3.0.1106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-21 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common