tencentcloud-sdk-teo 3.0.483 → 3.0.484
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +48 -0
- data/lib/v20220901/models.rb +212 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c39125883b51f5b150916886c7f422e8e61b0b64
|
4
|
+
data.tar.gz: a6fd0dab31192163e68302f91b366f932749238c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4eff4f8a2037aa9bb03b9f9443e29f060f91cd00a58361bf79203f60c2a86b9010ace7d5de5c341720e35a7c2f72f1d7c7f35c0a7c48029c1315a43668e8674
|
7
|
+
data.tar.gz: 8489768dd32128eff58d8322aaeaf94db0cb5ebd9b522378ec1e1037a0515d1fff55e1f00e486b6e805eec1f0772e055199d5ad24b71841771b804e576df4982
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.484
|
data/lib/v20220901/client.rb
CHANGED
@@ -1373,6 +1373,30 @@ module TencentCloud
|
|
1373
1373
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
1374
|
end
|
1375
1375
|
|
1376
|
+
# 查询源站防护信息
|
1377
|
+
|
1378
|
+
# @param request: Request instance for DescribeOriginProtection.
|
1379
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeOriginProtectionRequest`
|
1380
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeOriginProtectionResponse`
|
1381
|
+
def DescribeOriginProtection(request)
|
1382
|
+
body = send_request('DescribeOriginProtection', request.serialize)
|
1383
|
+
response = JSON.parse(body)
|
1384
|
+
if response['Response'].key?('Error') == false
|
1385
|
+
model = DescribeOriginProtectionResponse.new
|
1386
|
+
model.deserialize(response['Response'])
|
1387
|
+
model
|
1388
|
+
else
|
1389
|
+
code = response['Response']['Error']['Code']
|
1390
|
+
message = response['Response']['Error']['Message']
|
1391
|
+
reqid = response['Response']['RequestId']
|
1392
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1393
|
+
end
|
1394
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1395
|
+
raise e
|
1396
|
+
rescue StandardError => e
|
1397
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
|
+
end
|
1399
|
+
|
1376
1400
|
# 本接口(DescribeOverviewL7Data)用于查询七层监控类时序流量数据。
|
1377
1401
|
|
1378
1402
|
# @param request: Request instance for DescribeOverviewL7Data.
|
@@ -2861,6 +2885,30 @@ module TencentCloud
|
|
2861
2885
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2862
2886
|
end
|
2863
2887
|
|
2888
|
+
# 更新源站防护IP白名单
|
2889
|
+
|
2890
|
+
# @param request: Request instance for UpdateOriginProtectionIPWhitelist.
|
2891
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::UpdateOriginProtectionIPWhitelistRequest`
|
2892
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::UpdateOriginProtectionIPWhitelistResponse`
|
2893
|
+
def UpdateOriginProtectionIPWhitelist(request)
|
2894
|
+
body = send_request('UpdateOriginProtectionIPWhitelist', request.serialize)
|
2895
|
+
response = JSON.parse(body)
|
2896
|
+
if response['Response'].key?('Error') == false
|
2897
|
+
model = UpdateOriginProtectionIPWhitelistResponse.new
|
2898
|
+
model.deserialize(response['Response'])
|
2899
|
+
model
|
2900
|
+
else
|
2901
|
+
code = response['Response']['Error']['Code']
|
2902
|
+
message = response['Response']['Error']['Message']
|
2903
|
+
reqid = response['Response']['RequestId']
|
2904
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2905
|
+
end
|
2906
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2907
|
+
raise e
|
2908
|
+
rescue StandardError => e
|
2909
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2910
|
+
end
|
2911
|
+
|
2864
2912
|
|
2865
2913
|
end
|
2866
2914
|
end
|
data/lib/v20220901/models.rb
CHANGED
@@ -5481,6 +5481,67 @@ module TencentCloud
|
|
5481
5481
|
end
|
5482
5482
|
end
|
5483
5483
|
|
5484
|
+
# DescribeOriginProtection请求参数结构体
|
5485
|
+
class DescribeOriginProtectionRequest < TencentCloud::Common::AbstractModel
|
5486
|
+
# @param ZoneIds: 查询的站点集合,不填默认查询所有站点。
|
5487
|
+
# @type ZoneIds: Array
|
5488
|
+
# @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
|
5489
|
+
# <li>need-update<br> 按照【<strong>站点是否需要更新源站防护IP白名单</strong>】进行过滤。<br> 类型:String<br> 必选:否<br> 可选项:<br> true:需要更新<br> false:无需更新<br></li>
|
5490
|
+
# <li>plan-support<br> 按照【<strong>站点套餐是否支持源站防护</strong>】进行过滤。<br> 类型:String<br> 必选:否<br> 可选项:<br> true:支持<br> false:不支持<br></li>
|
5491
|
+
# @type Filters: :class:`Tencentcloud::Teo.v20220901.models.Filter`
|
5492
|
+
# @param Offset: 分页查询偏移量,默认为0。
|
5493
|
+
# @type Offset: Integer
|
5494
|
+
# @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
5495
|
+
# @type Limit: Integer
|
5496
|
+
|
5497
|
+
attr_accessor :ZoneIds, :Filters, :Offset, :Limit
|
5498
|
+
|
5499
|
+
def initialize(zoneids=nil, filters=nil, offset=nil, limit=nil)
|
5500
|
+
@ZoneIds = zoneids
|
5501
|
+
@Filters = filters
|
5502
|
+
@Offset = offset
|
5503
|
+
@Limit = limit
|
5504
|
+
end
|
5505
|
+
|
5506
|
+
def deserialize(params)
|
5507
|
+
@ZoneIds = params['ZoneIds']
|
5508
|
+
unless params['Filters'].nil?
|
5509
|
+
@Filters = Filter.new
|
5510
|
+
@Filters.deserialize(params['Filters'])
|
5511
|
+
end
|
5512
|
+
@Offset = params['Offset']
|
5513
|
+
@Limit = params['Limit']
|
5514
|
+
end
|
5515
|
+
end
|
5516
|
+
|
5517
|
+
# DescribeOriginProtection返回参数结构体
|
5518
|
+
class DescribeOriginProtectionResponse < TencentCloud::Common::AbstractModel
|
5519
|
+
# @param OriginProtectionInfo: 源站防护信息。
|
5520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5521
|
+
# @type OriginProtectionInfo: Array
|
5522
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5523
|
+
# @type RequestId: String
|
5524
|
+
|
5525
|
+
attr_accessor :OriginProtectionInfo, :RequestId
|
5526
|
+
|
5527
|
+
def initialize(originprotectioninfo=nil, requestid=nil)
|
5528
|
+
@OriginProtectionInfo = originprotectioninfo
|
5529
|
+
@RequestId = requestid
|
5530
|
+
end
|
5531
|
+
|
5532
|
+
def deserialize(params)
|
5533
|
+
unless params['OriginProtectionInfo'].nil?
|
5534
|
+
@OriginProtectionInfo = []
|
5535
|
+
params['OriginProtectionInfo'].each do |i|
|
5536
|
+
originprotectioninfo_tmp = OriginProtectionInfo.new
|
5537
|
+
originprotectioninfo_tmp.deserialize(i)
|
5538
|
+
@OriginProtectionInfo << originprotectioninfo_tmp
|
5539
|
+
end
|
5540
|
+
end
|
5541
|
+
@RequestId = params['RequestId']
|
5542
|
+
end
|
5543
|
+
end
|
5544
|
+
|
5484
5545
|
# DescribeOverviewL7Data请求参数结构体
|
5485
5546
|
class DescribeOverviewL7DataRequest < TencentCloud::Common::AbstractModel
|
5486
5547
|
# @param StartTime: 开始时间。
|
@@ -8093,6 +8154,46 @@ module TencentCloud
|
|
8093
8154
|
end
|
8094
8155
|
end
|
8095
8156
|
|
8157
|
+
# 最新IP白名单列表相比于当前IP白名单列表的区别
|
8158
|
+
class DiffIPWhitelist < TencentCloud::Common::AbstractModel
|
8159
|
+
# @param LatestIPWhitelist: 最新IP白名单列表。
|
8160
|
+
# @type LatestIPWhitelist: :class:`Tencentcloud::Teo.v20220901.models.IPWhitelist`
|
8161
|
+
# @param AddedIPWhitelist: 最新IP白名单列表相比于当前IP白名单列表,新增部分。
|
8162
|
+
# @type AddedIPWhitelist: :class:`Tencentcloud::Teo.v20220901.models.IPWhitelist`
|
8163
|
+
# @param RemovedIPWhitelist: 最新IP白名单列表相比于当前IP白名单列表,删减部分。
|
8164
|
+
# @type RemovedIPWhitelist: :class:`Tencentcloud::Teo.v20220901.models.IPWhitelist`
|
8165
|
+
# @param NoChangeIPWhitelist: 最新IP白名单列表相比于当前IP白名单列表,不变部分。
|
8166
|
+
# @type NoChangeIPWhitelist: :class:`Tencentcloud::Teo.v20220901.models.IPWhitelist`
|
8167
|
+
|
8168
|
+
attr_accessor :LatestIPWhitelist, :AddedIPWhitelist, :RemovedIPWhitelist, :NoChangeIPWhitelist
|
8169
|
+
|
8170
|
+
def initialize(latestipwhitelist=nil, addedipwhitelist=nil, removedipwhitelist=nil, nochangeipwhitelist=nil)
|
8171
|
+
@LatestIPWhitelist = latestipwhitelist
|
8172
|
+
@AddedIPWhitelist = addedipwhitelist
|
8173
|
+
@RemovedIPWhitelist = removedipwhitelist
|
8174
|
+
@NoChangeIPWhitelist = nochangeipwhitelist
|
8175
|
+
end
|
8176
|
+
|
8177
|
+
def deserialize(params)
|
8178
|
+
unless params['LatestIPWhitelist'].nil?
|
8179
|
+
@LatestIPWhitelist = IPWhitelist.new
|
8180
|
+
@LatestIPWhitelist.deserialize(params['LatestIPWhitelist'])
|
8181
|
+
end
|
8182
|
+
unless params['AddedIPWhitelist'].nil?
|
8183
|
+
@AddedIPWhitelist = IPWhitelist.new
|
8184
|
+
@AddedIPWhitelist.deserialize(params['AddedIPWhitelist'])
|
8185
|
+
end
|
8186
|
+
unless params['RemovedIPWhitelist'].nil?
|
8187
|
+
@RemovedIPWhitelist = IPWhitelist.new
|
8188
|
+
@RemovedIPWhitelist.deserialize(params['RemovedIPWhitelist'])
|
8189
|
+
end
|
8190
|
+
unless params['NoChangeIPWhitelist'].nil?
|
8191
|
+
@NoChangeIPWhitelist = IPWhitelist.new
|
8192
|
+
@NoChangeIPWhitelist.deserialize(params['NoChangeIPWhitelist'])
|
8193
|
+
end
|
8194
|
+
end
|
8195
|
+
end
|
8196
|
+
|
8096
8197
|
# 拨测分地域统计数据
|
8097
8198
|
class DistrictStatistics < TencentCloud::Common::AbstractModel
|
8098
8199
|
# @param Alpha2: ISO 3166-2 国家/地区简写,详情请参考[ISO 3166-2](https://zh.m.wikipedia.org/zh-hans/ISO_3166-2)。
|
@@ -8861,6 +8962,26 @@ module TencentCloud
|
|
8861
8962
|
end
|
8862
8963
|
end
|
8863
8964
|
|
8965
|
+
# 源站防护IP白名单
|
8966
|
+
class IPWhitelist < TencentCloud::Common::AbstractModel
|
8967
|
+
# @param IPv4: IPv4列表。
|
8968
|
+
# @type IPv4: Array
|
8969
|
+
# @param IPv6: IPv6列表。
|
8970
|
+
# @type IPv6: Array
|
8971
|
+
|
8972
|
+
attr_accessor :IPv4, :IPv6
|
8973
|
+
|
8974
|
+
def initialize(ipv4=nil, ipv6=nil)
|
8975
|
+
@IPv4 = ipv4
|
8976
|
+
@IPv6 = ipv6
|
8977
|
+
end
|
8978
|
+
|
8979
|
+
def deserialize(params)
|
8980
|
+
@IPv4 = params['IPv4']
|
8981
|
+
@IPv6 = params['IPv6']
|
8982
|
+
end
|
8983
|
+
end
|
8984
|
+
|
8864
8985
|
# 站点验证信息
|
8865
8986
|
class Identification < TencentCloud::Common::AbstractModel
|
8866
8987
|
# @param ZoneName: 站点名称。
|
@@ -10850,6 +10971,65 @@ module TencentCloud
|
|
10850
10971
|
end
|
10851
10972
|
end
|
10852
10973
|
|
10974
|
+
# 源站防护信息
|
10975
|
+
class OriginProtectionInfo < TencentCloud::Common::AbstractModel
|
10976
|
+
# @param ZoneId: 站点ID。
|
10977
|
+
# @type ZoneId: String
|
10978
|
+
# @param Hosts: 域名列表。
|
10979
|
+
# @type Hosts: Array
|
10980
|
+
# @param ProxyIds: 代理ID列表。
|
10981
|
+
# @type ProxyIds: Array
|
10982
|
+
# @param CurrentIPWhitelist: 当前版本的IP白名单。
|
10983
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10984
|
+
# @type CurrentIPWhitelist: :class:`Tencentcloud::Teo.v20220901.models.IPWhitelist`
|
10985
|
+
# @param NeedUpdate: 该站点是否需要更新源站白名单,取值有:
|
10986
|
+
# <li>true :需要更新IP白名单 ;</li>
|
10987
|
+
# <li>false :无需更新IP白名单。</li>
|
10988
|
+
# @type NeedUpdate: Boolean
|
10989
|
+
# @param Status: 源站防护状态,取值有:
|
10990
|
+
# <li>online :源站防护启用中 ;</li>
|
10991
|
+
# <li>offline :源站防护已停用 ;</li>
|
10992
|
+
# <li>nonactivate :源站防护未激活,仅在从未使用过源站防护功能的站点调用中返回。</li>
|
10993
|
+
# @type Status: String
|
10994
|
+
# @param PlanSupport: 站点套餐是否支持源站防护,取值有:
|
10995
|
+
# <li>true :支持 ;</li>
|
10996
|
+
# <li>false :不支持。</li>
|
10997
|
+
# @type PlanSupport: Boolean
|
10998
|
+
# @param DiffIPWhitelist: 最新IP白名单与当前IP白名单的对比。
|
10999
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11000
|
+
# @type DiffIPWhitelist: :class:`Tencentcloud::Teo.v20220901.models.DiffIPWhitelist`
|
11001
|
+
|
11002
|
+
attr_accessor :ZoneId, :Hosts, :ProxyIds, :CurrentIPWhitelist, :NeedUpdate, :Status, :PlanSupport, :DiffIPWhitelist
|
11003
|
+
|
11004
|
+
def initialize(zoneid=nil, hosts=nil, proxyids=nil, currentipwhitelist=nil, needupdate=nil, status=nil, plansupport=nil, diffipwhitelist=nil)
|
11005
|
+
@ZoneId = zoneid
|
11006
|
+
@Hosts = hosts
|
11007
|
+
@ProxyIds = proxyids
|
11008
|
+
@CurrentIPWhitelist = currentipwhitelist
|
11009
|
+
@NeedUpdate = needupdate
|
11010
|
+
@Status = status
|
11011
|
+
@PlanSupport = plansupport
|
11012
|
+
@DiffIPWhitelist = diffipwhitelist
|
11013
|
+
end
|
11014
|
+
|
11015
|
+
def deserialize(params)
|
11016
|
+
@ZoneId = params['ZoneId']
|
11017
|
+
@Hosts = params['Hosts']
|
11018
|
+
@ProxyIds = params['ProxyIds']
|
11019
|
+
unless params['CurrentIPWhitelist'].nil?
|
11020
|
+
@CurrentIPWhitelist = IPWhitelist.new
|
11021
|
+
@CurrentIPWhitelist.deserialize(params['CurrentIPWhitelist'])
|
11022
|
+
end
|
11023
|
+
@NeedUpdate = params['NeedUpdate']
|
11024
|
+
@Status = params['Status']
|
11025
|
+
@PlanSupport = params['PlanSupport']
|
11026
|
+
unless params['DiffIPWhitelist'].nil?
|
11027
|
+
@DiffIPWhitelist = DiffIPWhitelist.new
|
11028
|
+
@DiffIPWhitelist.deserialize(params['DiffIPWhitelist'])
|
11029
|
+
end
|
11030
|
+
end
|
11031
|
+
end
|
11032
|
+
|
10853
11033
|
# 源站组记录
|
10854
11034
|
class OriginRecord < TencentCloud::Common::AbstractModel
|
10855
11035
|
# @param Record: 源站记录值,不包含端口信息,可以为:IPv4,IPv6,域名格式。
|
@@ -13438,6 +13618,38 @@ module TencentCloud
|
|
13438
13618
|
end
|
13439
13619
|
end
|
13440
13620
|
|
13621
|
+
# UpdateOriginProtectionIPWhitelist请求参数结构体
|
13622
|
+
class UpdateOriginProtectionIPWhitelistRequest < TencentCloud::Common::AbstractModel
|
13623
|
+
# @param ZoneId: 站点ID。
|
13624
|
+
# @type ZoneId: String
|
13625
|
+
|
13626
|
+
attr_accessor :ZoneId
|
13627
|
+
|
13628
|
+
def initialize(zoneid=nil)
|
13629
|
+
@ZoneId = zoneid
|
13630
|
+
end
|
13631
|
+
|
13632
|
+
def deserialize(params)
|
13633
|
+
@ZoneId = params['ZoneId']
|
13634
|
+
end
|
13635
|
+
end
|
13636
|
+
|
13637
|
+
# UpdateOriginProtectionIPWhitelist返回参数结构体
|
13638
|
+
class UpdateOriginProtectionIPWhitelistResponse < TencentCloud::Common::AbstractModel
|
13639
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
13640
|
+
# @type RequestId: String
|
13641
|
+
|
13642
|
+
attr_accessor :RequestId
|
13643
|
+
|
13644
|
+
def initialize(requestid=nil)
|
13645
|
+
@RequestId = requestid
|
13646
|
+
end
|
13647
|
+
|
13648
|
+
def deserialize(params)
|
13649
|
+
@RequestId = params['RequestId']
|
13650
|
+
end
|
13651
|
+
end
|
13652
|
+
|
13441
13653
|
# Http2回源配置
|
13442
13654
|
class UpstreamHttp2 < TencentCloud::Common::AbstractModel
|
13443
13655
|
# @param Switch: http2回源配置开关,取值有:
|
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.
|
4
|
+
version: 3.0.484
|
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-12-
|
11
|
+
date: 2022-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|