tencentcloud-sdk-teo 3.0.503 → 3.0.505
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 +120 -0
- data/lib/v20220901/models.rb +446 -18
- 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: 22d69b8299339d7c05509506624d2f06b2ac296e
|
4
|
+
data.tar.gz: f91619302c9069326d1b032375a6bb437b2a6caa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37ccfa444e4f211d2b0aaf9afdf4e27724497049a25ffbeb0eab360ca4f3cd3a5e23bdc2715f884ce3ea7d6b4fcafaee63ce64b25bc4dbf53909b02b62a0548
|
7
|
+
data.tar.gz: 0ab62bae3ccc66239f2d8aedb18cd7230dce4f9f6fb316bfd56fef989b1c6011c4a7965d0efe153908aedff7954cafebc130d9756c4b9534684bd0d914a0f327
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.505
|
data/lib/v20220901/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 创建加速域名
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateAccelerationDomain.
|
83
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateAccelerationDomainRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateAccelerationDomainResponse`
|
85
|
+
def CreateAccelerationDomain(request)
|
86
|
+
body = send_request('CreateAccelerationDomain', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateAccelerationDomainResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 创建别称域名。
|
81
105
|
|
82
106
|
# @param request: Request instance for CreateAliasDomain.
|
@@ -365,6 +389,30 @@ module TencentCloud
|
|
365
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
390
|
end
|
367
391
|
|
392
|
+
# 批量删除加速域名
|
393
|
+
|
394
|
+
# @param request: Request instance for DeleteAccelerationDomains.
|
395
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteAccelerationDomainsRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteAccelerationDomainsResponse`
|
397
|
+
def DeleteAccelerationDomains(request)
|
398
|
+
body = send_request('DeleteAccelerationDomains', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DeleteAccelerationDomainsResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
368
416
|
# 删除别称域名。
|
369
417
|
|
370
418
|
# @param request: Request instance for DeleteAliasDomain.
|
@@ -509,6 +557,30 @@ module TencentCloud
|
|
509
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
558
|
end
|
511
559
|
|
560
|
+
# 查询加速域名列表,支持搜索、分页、排序、过滤。
|
561
|
+
|
562
|
+
# @param request: Request instance for DescribeAccelerationDomains.
|
563
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeAccelerationDomainsRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeAccelerationDomainsResponse`
|
565
|
+
def DescribeAccelerationDomains(request)
|
566
|
+
body = send_request('DescribeAccelerationDomains', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = DescribeAccelerationDomainsResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
512
584
|
# 本接口(DescribeAddableEntityList)用于查询剩余可添加的日志推送实体列表。
|
513
585
|
|
514
586
|
# @param request: Request instance for DescribeAddableEntityList.
|
@@ -1541,6 +1613,54 @@ module TencentCloud
|
|
1541
1613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
1614
|
end
|
1543
1615
|
|
1616
|
+
# 修改加速域名信息
|
1617
|
+
|
1618
|
+
# @param request: Request instance for ModifyAccelerationDomain.
|
1619
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyAccelerationDomainRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyAccelerationDomainResponse`
|
1621
|
+
def ModifyAccelerationDomain(request)
|
1622
|
+
body = send_request('ModifyAccelerationDomain', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = ModifyAccelerationDomainResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
# 批量修改加速域名状态
|
1641
|
+
|
1642
|
+
# @param request: Request instance for ModifyAccelerationDomainStatuses.
|
1643
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyAccelerationDomainStatusesRequest`
|
1644
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyAccelerationDomainStatusesResponse`
|
1645
|
+
def ModifyAccelerationDomainStatuses(request)
|
1646
|
+
body = send_request('ModifyAccelerationDomainStatuses', request.serialize)
|
1647
|
+
response = JSON.parse(body)
|
1648
|
+
if response['Response'].key?('Error') == false
|
1649
|
+
model = ModifyAccelerationDomainStatusesResponse.new
|
1650
|
+
model.deserialize(response['Response'])
|
1651
|
+
model
|
1652
|
+
else
|
1653
|
+
code = response['Response']['Error']['Code']
|
1654
|
+
message = response['Response']['Error']['Message']
|
1655
|
+
reqid = response['Response']['RequestId']
|
1656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1657
|
+
end
|
1658
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1659
|
+
raise e
|
1660
|
+
rescue StandardError => e
|
1661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
|
+
end
|
1663
|
+
|
1544
1664
|
# 修改别称域名。
|
1545
1665
|
|
1546
1666
|
# @param request: Request instance for ModifyAliasDomain.
|
data/lib/v20220901/models.rb
CHANGED
@@ -35,6 +35,55 @@ module TencentCloud
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
# 加速域名
|
39
|
+
class AccelerationDomain < TencentCloud::Common::AbstractModel
|
40
|
+
# @param OriginDetail: 源站信息。
|
41
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
42
|
+
# @type OriginDetail: :class:`Tencentcloud::Teo.v20220901.models.OriginDetail`
|
43
|
+
# @param CreatedOn: 创建时间。
|
44
|
+
# @type CreatedOn: String
|
45
|
+
# @param DomainName: 加速域名名称。
|
46
|
+
# @type DomainName: String
|
47
|
+
# @param ModifiedOn: 修改时间。
|
48
|
+
# @type ModifiedOn: String
|
49
|
+
# @param ZoneId: 站点 ID。
|
50
|
+
# @type ZoneId: String
|
51
|
+
# @param DomainStatus: 加速域名状态,取值有:
|
52
|
+
# <li>online:已生效;</li>
|
53
|
+
# <li>process:部署中;</li>
|
54
|
+
# <li>offline:已停用;</li>
|
55
|
+
# <li>forbidden:已封禁;</li>
|
56
|
+
# <li>init:未生效,待激活站点;</li>
|
57
|
+
# @type DomainStatus: String
|
58
|
+
# @param Cname: CNAME 地址。
|
59
|
+
# @type Cname: String
|
60
|
+
|
61
|
+
attr_accessor :OriginDetail, :CreatedOn, :DomainName, :ModifiedOn, :ZoneId, :DomainStatus, :Cname
|
62
|
+
|
63
|
+
def initialize(origindetail=nil, createdon=nil, domainname=nil, modifiedon=nil, zoneid=nil, domainstatus=nil, cname=nil)
|
64
|
+
@OriginDetail = origindetail
|
65
|
+
@CreatedOn = createdon
|
66
|
+
@DomainName = domainname
|
67
|
+
@ModifiedOn = modifiedon
|
68
|
+
@ZoneId = zoneid
|
69
|
+
@DomainStatus = domainstatus
|
70
|
+
@Cname = cname
|
71
|
+
end
|
72
|
+
|
73
|
+
def deserialize(params)
|
74
|
+
unless params['OriginDetail'].nil?
|
75
|
+
@OriginDetail = OriginDetail.new
|
76
|
+
@OriginDetail.deserialize(params['OriginDetail'])
|
77
|
+
end
|
78
|
+
@CreatedOn = params['CreatedOn']
|
79
|
+
@DomainName = params['DomainName']
|
80
|
+
@ModifiedOn = params['ModifiedOn']
|
81
|
+
@ZoneId = params['ZoneId']
|
82
|
+
@DomainStatus = params['DomainStatus']
|
83
|
+
@Cname = params['Cname']
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
38
87
|
# 精准防护条件
|
39
88
|
class AclCondition < TencentCloud::Common::AbstractModel
|
40
89
|
# @param MatchFrom: 匹配字段,取值有:
|
@@ -1154,6 +1203,49 @@ module TencentCloud
|
|
1154
1203
|
end
|
1155
1204
|
end
|
1156
1205
|
|
1206
|
+
# CreateAccelerationDomain请求参数结构体
|
1207
|
+
class CreateAccelerationDomainRequest < TencentCloud::Common::AbstractModel
|
1208
|
+
# @param ZoneId: 加速域名所属站点ID。
|
1209
|
+
# @type ZoneId: String
|
1210
|
+
# @param DomainName: 加速域名名称。
|
1211
|
+
# @type DomainName: String
|
1212
|
+
# @param OriginInfo: 源站信息。
|
1213
|
+
# @type OriginInfo: :class:`Tencentcloud::Teo.v20220901.models.OriginInfo`
|
1214
|
+
|
1215
|
+
attr_accessor :ZoneId, :DomainName, :OriginInfo
|
1216
|
+
|
1217
|
+
def initialize(zoneid=nil, domainname=nil, origininfo=nil)
|
1218
|
+
@ZoneId = zoneid
|
1219
|
+
@DomainName = domainname
|
1220
|
+
@OriginInfo = origininfo
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
def deserialize(params)
|
1224
|
+
@ZoneId = params['ZoneId']
|
1225
|
+
@DomainName = params['DomainName']
|
1226
|
+
unless params['OriginInfo'].nil?
|
1227
|
+
@OriginInfo = OriginInfo.new
|
1228
|
+
@OriginInfo.deserialize(params['OriginInfo'])
|
1229
|
+
end
|
1230
|
+
end
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
# CreateAccelerationDomain返回参数结构体
|
1234
|
+
class CreateAccelerationDomainResponse < TencentCloud::Common::AbstractModel
|
1235
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1236
|
+
# @type RequestId: String
|
1237
|
+
|
1238
|
+
attr_accessor :RequestId
|
1239
|
+
|
1240
|
+
def initialize(requestid=nil)
|
1241
|
+
@RequestId = requestid
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
def deserialize(params)
|
1245
|
+
@RequestId = params['RequestId']
|
1246
|
+
end
|
1247
|
+
end
|
1248
|
+
|
1157
1249
|
# CreateAliasDomain请求参数结构体
|
1158
1250
|
class CreateAliasDomainRequest < TencentCloud::Common::AbstractModel
|
1159
1251
|
# @param ZoneId: 站点 ID。
|
@@ -1971,6 +2063,48 @@ module TencentCloud
|
|
1971
2063
|
end
|
1972
2064
|
end
|
1973
2065
|
|
2066
|
+
# DeleteAccelerationDomains请求参数结构体
|
2067
|
+
class DeleteAccelerationDomainsRequest < TencentCloud::Common::AbstractModel
|
2068
|
+
# @param ZoneId: 加速域名所属站点ID。
|
2069
|
+
# @type ZoneId: String
|
2070
|
+
# @param DomainNames: 需要删除的加速域名ID列表。
|
2071
|
+
# @type DomainNames: Array
|
2072
|
+
# @param Force: 是否强制删除。当域名存在关联资源(如马甲域名、流量调度功能)时,是否强制删除该域名,取值有:
|
2073
|
+
# <li> true:删除该域名及所有关联资源;</li>
|
2074
|
+
# <li> false:当该加速域名存在关联资源时,不允许删除。</li>不填写,默认值为:false。
|
2075
|
+
# @type Force: Boolean
|
2076
|
+
|
2077
|
+
attr_accessor :ZoneId, :DomainNames, :Force
|
2078
|
+
|
2079
|
+
def initialize(zoneid=nil, domainnames=nil, force=nil)
|
2080
|
+
@ZoneId = zoneid
|
2081
|
+
@DomainNames = domainnames
|
2082
|
+
@Force = force
|
2083
|
+
end
|
2084
|
+
|
2085
|
+
def deserialize(params)
|
2086
|
+
@ZoneId = params['ZoneId']
|
2087
|
+
@DomainNames = params['DomainNames']
|
2088
|
+
@Force = params['Force']
|
2089
|
+
end
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
# DeleteAccelerationDomains返回参数结构体
|
2093
|
+
class DeleteAccelerationDomainsResponse < TencentCloud::Common::AbstractModel
|
2094
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2095
|
+
# @type RequestId: String
|
2096
|
+
|
2097
|
+
attr_accessor :RequestId
|
2098
|
+
|
2099
|
+
def initialize(requestid=nil)
|
2100
|
+
@RequestId = requestid
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
def deserialize(params)
|
2104
|
+
@RequestId = params['RequestId']
|
2105
|
+
end
|
2106
|
+
end
|
2107
|
+
|
1974
2108
|
# DeleteAliasDomain请求参数结构体
|
1975
2109
|
class DeleteAliasDomainRequest < TencentCloud::Common::AbstractModel
|
1976
2110
|
# @param ZoneId: 站点 ID。
|
@@ -2187,6 +2321,95 @@ module TencentCloud
|
|
2187
2321
|
end
|
2188
2322
|
end
|
2189
2323
|
|
2324
|
+
# DescribeAccelerationDomains请求参数结构体
|
2325
|
+
class DescribeAccelerationDomainsRequest < TencentCloud::Common::AbstractModel
|
2326
|
+
# @param ZoneId: 加速域名所属站点ID。不填写该参数默认返回所有站点下的加速域名。
|
2327
|
+
# @type ZoneId: String
|
2328
|
+
# @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
|
2329
|
+
# <li>domain-name<br> 按照【<strong>加速域名名称</strong>】进行过滤。<br> 类型:String<br> 必选:否
|
2330
|
+
# <li>origin-type<br> 按照【<strong>源站类型</strong>】进行过滤。<br> 类型:String<br> 必选:否
|
2331
|
+
# <li>origin<br> 按照【<strong>主源站地址</strong>】进行过滤。<br> 类型:String<br> 必选:否
|
2332
|
+
# <li>backup-origin<br> 按照【<strong>备用源站地址</strong>】进行过滤。<br> 类型:String<br> 必选:否
|
2333
|
+
# @type Filters: Array
|
2334
|
+
# @param Direction: 列表排序方式,取值有:
|
2335
|
+
# <li>asc:升序排列;</li>
|
2336
|
+
# <li>desc:降序排列。</li>默认值为asc。
|
2337
|
+
# @type Direction: String
|
2338
|
+
# @param Match: 匹配方式,取值有:
|
2339
|
+
# <li>all:返回匹配所有查询条件的加速域名;</li>
|
2340
|
+
# <li>any:返回匹配任意一个查询条件的加速域名。</li>默认值为all。
|
2341
|
+
# @type Match: String
|
2342
|
+
# @param Limit: 分页查询限制数目,默认值:20,上限:200。
|
2343
|
+
# @type Limit: Integer
|
2344
|
+
# @param Offset: 分页查询偏移量,默认为 0。
|
2345
|
+
# @type Offset: Integer
|
2346
|
+
# @param Order: 排序依据,取值有:
|
2347
|
+
# <li>created_on:加速域名创建时间;</li>
|
2348
|
+
# <li>domain-name:加速域名名称;</li>
|
2349
|
+
# </li>默认根据domain-name属性排序。
|
2350
|
+
# @type Order: String
|
2351
|
+
|
2352
|
+
attr_accessor :ZoneId, :Filters, :Direction, :Match, :Limit, :Offset, :Order
|
2353
|
+
|
2354
|
+
def initialize(zoneid=nil, filters=nil, direction=nil, match=nil, limit=nil, offset=nil, order=nil)
|
2355
|
+
@ZoneId = zoneid
|
2356
|
+
@Filters = filters
|
2357
|
+
@Direction = direction
|
2358
|
+
@Match = match
|
2359
|
+
@Limit = limit
|
2360
|
+
@Offset = offset
|
2361
|
+
@Order = order
|
2362
|
+
end
|
2363
|
+
|
2364
|
+
def deserialize(params)
|
2365
|
+
@ZoneId = params['ZoneId']
|
2366
|
+
unless params['Filters'].nil?
|
2367
|
+
@Filters = []
|
2368
|
+
params['Filters'].each do |i|
|
2369
|
+
advancedfilter_tmp = AdvancedFilter.new
|
2370
|
+
advancedfilter_tmp.deserialize(i)
|
2371
|
+
@Filters << advancedfilter_tmp
|
2372
|
+
end
|
2373
|
+
end
|
2374
|
+
@Direction = params['Direction']
|
2375
|
+
@Match = params['Match']
|
2376
|
+
@Limit = params['Limit']
|
2377
|
+
@Offset = params['Offset']
|
2378
|
+
@Order = params['Order']
|
2379
|
+
end
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
# DescribeAccelerationDomains返回参数结构体
|
2383
|
+
class DescribeAccelerationDomainsResponse < TencentCloud::Common::AbstractModel
|
2384
|
+
# @param TotalCount: 加速域名总数。
|
2385
|
+
# @type TotalCount: Integer
|
2386
|
+
# @param AccelerationDomains: 加速域名列表。
|
2387
|
+
# @type AccelerationDomains: Array
|
2388
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2389
|
+
# @type RequestId: String
|
2390
|
+
|
2391
|
+
attr_accessor :TotalCount, :AccelerationDomains, :RequestId
|
2392
|
+
|
2393
|
+
def initialize(totalcount=nil, accelerationdomains=nil, requestid=nil)
|
2394
|
+
@TotalCount = totalcount
|
2395
|
+
@AccelerationDomains = accelerationdomains
|
2396
|
+
@RequestId = requestid
|
2397
|
+
end
|
2398
|
+
|
2399
|
+
def deserialize(params)
|
2400
|
+
@TotalCount = params['TotalCount']
|
2401
|
+
unless params['AccelerationDomains'].nil?
|
2402
|
+
@AccelerationDomains = []
|
2403
|
+
params['AccelerationDomains'].each do |i|
|
2404
|
+
accelerationdomain_tmp = AccelerationDomain.new
|
2405
|
+
accelerationdomain_tmp.deserialize(i)
|
2406
|
+
@AccelerationDomains << accelerationdomain_tmp
|
2407
|
+
end
|
2408
|
+
end
|
2409
|
+
@RequestId = params['RequestId']
|
2410
|
+
end
|
2411
|
+
end
|
2412
|
+
|
2190
2413
|
# DescribeAddableEntityList请求参数结构体
|
2191
2414
|
class DescribeAddableEntityListRequest < TencentCloud::Common::AbstractModel
|
2192
2415
|
# @param ZoneId: 站点ID。
|
@@ -4604,6 +4827,7 @@ module TencentCloud
|
|
4604
4827
|
# <li>ruleId:规则id;</li>
|
4605
4828
|
# <li>sipCountryCode:ip所在国家;</li>
|
4606
4829
|
# <li>attackIp:攻击ip;</li>
|
4830
|
+
# <li>realClientIp:真实客户端ip;</li>
|
4607
4831
|
# <li>oriDomain:被攻击的子域名;</li>
|
4608
4832
|
# <li>eventId:事件id;</li>
|
4609
4833
|
# <li>ua:用户代理;</li>
|
@@ -6508,6 +6732,97 @@ module TencentCloud
|
|
6508
6732
|
end
|
6509
6733
|
end
|
6510
6734
|
|
6735
|
+
# ModifyAccelerationDomain请求参数结构体
|
6736
|
+
class ModifyAccelerationDomainRequest < TencentCloud::Common::AbstractModel
|
6737
|
+
# @param ZoneId: 加速域名所属站点ID。
|
6738
|
+
# @type ZoneId: String
|
6739
|
+
# @param DomainName: 加速域名名称。
|
6740
|
+
# @type DomainName: String
|
6741
|
+
# @param OriginInfo: 源站信息。
|
6742
|
+
# @type OriginInfo: :class:`Tencentcloud::Teo.v20220901.models.OriginInfo`
|
6743
|
+
|
6744
|
+
attr_accessor :ZoneId, :DomainName, :OriginInfo
|
6745
|
+
|
6746
|
+
def initialize(zoneid=nil, domainname=nil, origininfo=nil)
|
6747
|
+
@ZoneId = zoneid
|
6748
|
+
@DomainName = domainname
|
6749
|
+
@OriginInfo = origininfo
|
6750
|
+
end
|
6751
|
+
|
6752
|
+
def deserialize(params)
|
6753
|
+
@ZoneId = params['ZoneId']
|
6754
|
+
@DomainName = params['DomainName']
|
6755
|
+
unless params['OriginInfo'].nil?
|
6756
|
+
@OriginInfo = OriginInfo.new
|
6757
|
+
@OriginInfo.deserialize(params['OriginInfo'])
|
6758
|
+
end
|
6759
|
+
end
|
6760
|
+
end
|
6761
|
+
|
6762
|
+
# ModifyAccelerationDomain返回参数结构体
|
6763
|
+
class ModifyAccelerationDomainResponse < TencentCloud::Common::AbstractModel
|
6764
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6765
|
+
# @type RequestId: String
|
6766
|
+
|
6767
|
+
attr_accessor :RequestId
|
6768
|
+
|
6769
|
+
def initialize(requestid=nil)
|
6770
|
+
@RequestId = requestid
|
6771
|
+
end
|
6772
|
+
|
6773
|
+
def deserialize(params)
|
6774
|
+
@RequestId = params['RequestId']
|
6775
|
+
end
|
6776
|
+
end
|
6777
|
+
|
6778
|
+
# ModifyAccelerationDomainStatuses请求参数结构体
|
6779
|
+
class ModifyAccelerationDomainStatusesRequest < TencentCloud::Common::AbstractModel
|
6780
|
+
# @param ZoneId: 加速域名所属站点ID。
|
6781
|
+
# @type ZoneId: String
|
6782
|
+
# @param DomainNames: 要执行状态变更的加速域名列表。
|
6783
|
+
# @type DomainNames: Array
|
6784
|
+
# @param Status: 加速域名状态,取值有:
|
6785
|
+
# <li>online:启用;</li>
|
6786
|
+
# <li>offline:停用。</li>
|
6787
|
+
# @type Status: String
|
6788
|
+
# @param Force: 是否强制停用。当域名存在关联资源(如马甲域名、流量调度功能)时,是否强制停用该域名,取值有:
|
6789
|
+
# <li> true:停用该域名及所有关联资源;</li>
|
6790
|
+
# <li> false:当该加速域名存在关联资源时,不允许停用。</li>不填写,默认值为:false。
|
6791
|
+
# @type Force: Boolean
|
6792
|
+
|
6793
|
+
attr_accessor :ZoneId, :DomainNames, :Status, :Force
|
6794
|
+
|
6795
|
+
def initialize(zoneid=nil, domainnames=nil, status=nil, force=nil)
|
6796
|
+
@ZoneId = zoneid
|
6797
|
+
@DomainNames = domainnames
|
6798
|
+
@Status = status
|
6799
|
+
@Force = force
|
6800
|
+
end
|
6801
|
+
|
6802
|
+
def deserialize(params)
|
6803
|
+
@ZoneId = params['ZoneId']
|
6804
|
+
@DomainNames = params['DomainNames']
|
6805
|
+
@Status = params['Status']
|
6806
|
+
@Force = params['Force']
|
6807
|
+
end
|
6808
|
+
end
|
6809
|
+
|
6810
|
+
# ModifyAccelerationDomainStatuses返回参数结构体
|
6811
|
+
class ModifyAccelerationDomainStatusesResponse < TencentCloud::Common::AbstractModel
|
6812
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6813
|
+
# @type RequestId: String
|
6814
|
+
|
6815
|
+
attr_accessor :RequestId
|
6816
|
+
|
6817
|
+
def initialize(requestid=nil)
|
6818
|
+
@RequestId = requestid
|
6819
|
+
end
|
6820
|
+
|
6821
|
+
def deserialize(params)
|
6822
|
+
@RequestId = params['RequestId']
|
6823
|
+
end
|
6824
|
+
end
|
6825
|
+
|
6511
6826
|
# ModifyAliasDomain请求参数结构体
|
6512
6827
|
class ModifyAliasDomainRequest < TencentCloud::Common::AbstractModel
|
6513
6828
|
# @param ZoneId: 站点 ID。
|
@@ -7627,6 +7942,61 @@ module TencentCloud
|
|
7627
7942
|
end
|
7628
7943
|
end
|
7629
7944
|
|
7945
|
+
# 加速域名源站信息。
|
7946
|
+
class OriginDetail < TencentCloud::Common::AbstractModel
|
7947
|
+
# @param OriginType: 源站类型,取值有:
|
7948
|
+
# <li>IP_DOMAIN:IPV4、IPV6或域名类型源站;</li>
|
7949
|
+
# <li>COS:COS源。</li>
|
7950
|
+
# <li>ORIGIN_GROUP:源站组类型源站。</li>
|
7951
|
+
# <li>AWS_S3:AWS S3对象存储源站。</li>
|
7952
|
+
# @type OriginType: String
|
7953
|
+
# @param Origin: 源站地址,当OriginType参数指定为ORIGIN_GROUP时,该参数填写源站组ID,其他情况下填写源站地址。
|
7954
|
+
# @type Origin: String
|
7955
|
+
# @param BackupOrigin: 备用源站组ID,该参数在OriginType参数指定为ORIGIN_GROUP时生效,为空表示不使用备用源站。
|
7956
|
+
# @type BackupOrigin: String
|
7957
|
+
# @param OriginGroupName: 主源源站组名称,当OriginType参数指定为ORIGIN_GROUP时该参数生效。
|
7958
|
+
# @type OriginGroupName: String
|
7959
|
+
# @param BackOriginGroupName: 备用源站源站组名称,当OriginType参数指定为ORIGIN_GROUP,且用户指定了被用源站时该参数生效。
|
7960
|
+
# @type BackOriginGroupName: String
|
7961
|
+
# @param PrivateAccess: 指定是否允许访问私有对象存储源站。当源站类型OriginType=COS或AWS_S3时有效 取值有:
|
7962
|
+
# <li>on:使用私有鉴权;</li>
|
7963
|
+
# <li>off:不使用私有鉴权。</li>
|
7964
|
+
# 不填写,默认值为off。
|
7965
|
+
# @type PrivateAccess: String
|
7966
|
+
# @param PrivateParameters: 私有鉴权使用参数,当源站类型PrivateAccess=on时有效。
|
7967
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7968
|
+
# @type PrivateParameters: Array
|
7969
|
+
|
7970
|
+
attr_accessor :OriginType, :Origin, :BackupOrigin, :OriginGroupName, :BackOriginGroupName, :PrivateAccess, :PrivateParameters
|
7971
|
+
|
7972
|
+
def initialize(origintype=nil, origin=nil, backuporigin=nil, origingroupname=nil, backorigingroupname=nil, privateaccess=nil, privateparameters=nil)
|
7973
|
+
@OriginType = origintype
|
7974
|
+
@Origin = origin
|
7975
|
+
@BackupOrigin = backuporigin
|
7976
|
+
@OriginGroupName = origingroupname
|
7977
|
+
@BackOriginGroupName = backorigingroupname
|
7978
|
+
@PrivateAccess = privateaccess
|
7979
|
+
@PrivateParameters = privateparameters
|
7980
|
+
end
|
7981
|
+
|
7982
|
+
def deserialize(params)
|
7983
|
+
@OriginType = params['OriginType']
|
7984
|
+
@Origin = params['Origin']
|
7985
|
+
@BackupOrigin = params['BackupOrigin']
|
7986
|
+
@OriginGroupName = params['OriginGroupName']
|
7987
|
+
@BackOriginGroupName = params['BackOriginGroupName']
|
7988
|
+
@PrivateAccess = params['PrivateAccess']
|
7989
|
+
unless params['PrivateParameters'].nil?
|
7990
|
+
@PrivateParameters = []
|
7991
|
+
params['PrivateParameters'].each do |i|
|
7992
|
+
privateparameter_tmp = PrivateParameter.new
|
7993
|
+
privateparameter_tmp.deserialize(i)
|
7994
|
+
@PrivateParameters << privateparameter_tmp
|
7995
|
+
end
|
7996
|
+
end
|
7997
|
+
end
|
7998
|
+
end
|
7999
|
+
|
7630
8000
|
# 源站组信息
|
7631
8001
|
class OriginGroup < TencentCloud::Common::AbstractModel
|
7632
8002
|
# @param ZoneId: 站点ID。
|
@@ -7689,6 +8059,56 @@ module TencentCloud
|
|
7689
8059
|
end
|
7690
8060
|
end
|
7691
8061
|
|
8062
|
+
# 加速域名源站信息。
|
8063
|
+
class OriginInfo < TencentCloud::Common::AbstractModel
|
8064
|
+
# @param OriginType: 源站类型,取值有:
|
8065
|
+
# <li>IP_DOMAIN:IPV4、IPV6或域名类型源站;</li>
|
8066
|
+
# <li>COS:COS源。</li>
|
8067
|
+
# <li>ORIGIN_GROUP:源站组类型源站。</li>
|
8068
|
+
# <li>AWS_S3:AWS S3对象存储源站。</li>
|
8069
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8070
|
+
# @type OriginType: String
|
8071
|
+
# @param Origin: 源站地址,当OriginType参数指定为ORIGIN_GROUP时,该参数填写源站组ID,其他情况下填写源站地址。
|
8072
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8073
|
+
# @type Origin: String
|
8074
|
+
# @param BackupOrigin: 备用源站组ID,该参数在OriginType参数指定为ORIGIN_GROUP时生效,为空表示不使用备用源站。
|
8075
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8076
|
+
# @type BackupOrigin: String
|
8077
|
+
# @param PrivateAccess: 指定是否允许访问私有对象存储源站,当源站类型OriginType=COS或AWS_S3时有效,取值有:
|
8078
|
+
# <li>on:使用私有鉴权;</li>
|
8079
|
+
# <li>off:不使用私有鉴权。</li>不填写,默认值为:off。
|
8080
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8081
|
+
# @type PrivateAccess: String
|
8082
|
+
# @param PrivateParameters: 私有鉴权使用参数,当源站类型PrivateAccess=on时有效。
|
8083
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8084
|
+
# @type PrivateParameters: Array
|
8085
|
+
|
8086
|
+
attr_accessor :OriginType, :Origin, :BackupOrigin, :PrivateAccess, :PrivateParameters
|
8087
|
+
|
8088
|
+
def initialize(origintype=nil, origin=nil, backuporigin=nil, privateaccess=nil, privateparameters=nil)
|
8089
|
+
@OriginType = origintype
|
8090
|
+
@Origin = origin
|
8091
|
+
@BackupOrigin = backuporigin
|
8092
|
+
@PrivateAccess = privateaccess
|
8093
|
+
@PrivateParameters = privateparameters
|
8094
|
+
end
|
8095
|
+
|
8096
|
+
def deserialize(params)
|
8097
|
+
@OriginType = params['OriginType']
|
8098
|
+
@Origin = params['Origin']
|
8099
|
+
@BackupOrigin = params['BackupOrigin']
|
8100
|
+
@PrivateAccess = params['PrivateAccess']
|
8101
|
+
unless params['PrivateParameters'].nil?
|
8102
|
+
@PrivateParameters = []
|
8103
|
+
params['PrivateParameters'].each do |i|
|
8104
|
+
privateparameter_tmp = PrivateParameter.new
|
8105
|
+
privateparameter_tmp.deserialize(i)
|
8106
|
+
@PrivateParameters << privateparameter_tmp
|
8107
|
+
end
|
8108
|
+
end
|
8109
|
+
end
|
8110
|
+
end
|
8111
|
+
|
7692
8112
|
# 源站防护信息
|
7693
8113
|
class OriginProtectionInfo < TencentCloud::Common::AbstractModel
|
7694
8114
|
# @param ZoneId: 站点ID。
|
@@ -10409,56 +10829,64 @@ module TencentCloud
|
|
10409
10829
|
class WebLogs < TencentCloud::Common::AbstractModel
|
10410
10830
|
# @param EventId: 请求(事件)ID。
|
10411
10831
|
# @type EventId: String
|
10412
|
-
# @param AttackIp: 攻击源(客户端)Ip。
|
10413
|
-
# @type AttackIp: String
|
10414
|
-
# @param Domain: 受攻击子域名。
|
10415
|
-
# @type Domain: String
|
10416
10832
|
# @param HttpLog: http 日志内容。
|
10417
10833
|
# @type HttpLog: String
|
10834
|
+
# @param Domain: 受攻击子域名。
|
10835
|
+
# @type Domain: String
|
10836
|
+
# @param AttackIp: 攻击源(客户端)Ip。
|
10837
|
+
# @type AttackIp: String
|
10418
10838
|
# @param SipCountryCode: IP所在国家iso-3166中alpha-2编码,编码信息请参考[ISO-3166](https://git.woa.com/edgeone/iso-3166/blob/master/all/all.json)
|
10419
10839
|
# @type SipCountryCode: String
|
10840
|
+
# @param RealClientIp: 真实客户端Ip。
|
10841
|
+
# @type RealClientIp: String
|
10842
|
+
# @param RealClientIpCountryCode: 真实客户端Ip所在国家iso-3166中alpha-2编码。
|
10843
|
+
# @type RealClientIpCountryCode: String
|
10420
10844
|
# @param AttackTime: 攻击时间,采用unix秒级时间戳。
|
10421
10845
|
# @type AttackTime: Integer
|
10422
10846
|
# @param RequestUri: 请求地址。
|
10423
10847
|
# @type RequestUri: String
|
10424
|
-
# @param
|
10848
|
+
# @param ReqMethod: 请求类型。
|
10425
10849
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10426
|
-
# @type
|
10850
|
+
# @type ReqMethod: String
|
10427
10851
|
# @param RuleDetailList: 规则相关信息列表。
|
10428
10852
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10429
10853
|
# @type RuleDetailList: Array
|
10430
|
-
# @param
|
10854
|
+
# @param AttackContent: 攻击内容。
|
10431
10855
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10432
|
-
# @type
|
10856
|
+
# @type AttackContent: String
|
10433
10857
|
# @param Area: 日志所属区域。
|
10434
10858
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10435
10859
|
# @type Area: String
|
10436
10860
|
|
10437
|
-
attr_accessor :EventId, :
|
10861
|
+
attr_accessor :EventId, :HttpLog, :Domain, :AttackIp, :SipCountryCode, :RealClientIp, :RealClientIpCountryCode, :AttackTime, :RequestUri, :ReqMethod, :RuleDetailList, :AttackContent, :Area
|
10438
10862
|
|
10439
|
-
def initialize(eventid=nil,
|
10863
|
+
def initialize(eventid=nil, httplog=nil, domain=nil, attackip=nil, sipcountrycode=nil, realclientip=nil, realclientipcountrycode=nil, attacktime=nil, requesturi=nil, reqmethod=nil, ruledetaillist=nil, attackcontent=nil, area=nil)
|
10440
10864
|
@EventId = eventid
|
10441
|
-
@AttackIp = attackip
|
10442
|
-
@Domain = domain
|
10443
10865
|
@HttpLog = httplog
|
10866
|
+
@Domain = domain
|
10867
|
+
@AttackIp = attackip
|
10444
10868
|
@SipCountryCode = sipcountrycode
|
10869
|
+
@RealClientIp = realclientip
|
10870
|
+
@RealClientIpCountryCode = realclientipcountrycode
|
10445
10871
|
@AttackTime = attacktime
|
10446
10872
|
@RequestUri = requesturi
|
10447
|
-
@AttackContent = attackcontent
|
10448
|
-
@RuleDetailList = ruledetaillist
|
10449
10873
|
@ReqMethod = reqmethod
|
10874
|
+
@RuleDetailList = ruledetaillist
|
10875
|
+
@AttackContent = attackcontent
|
10450
10876
|
@Area = area
|
10451
10877
|
end
|
10452
10878
|
|
10453
10879
|
def deserialize(params)
|
10454
10880
|
@EventId = params['EventId']
|
10455
|
-
@AttackIp = params['AttackIp']
|
10456
|
-
@Domain = params['Domain']
|
10457
10881
|
@HttpLog = params['HttpLog']
|
10882
|
+
@Domain = params['Domain']
|
10883
|
+
@AttackIp = params['AttackIp']
|
10458
10884
|
@SipCountryCode = params['SipCountryCode']
|
10885
|
+
@RealClientIp = params['RealClientIp']
|
10886
|
+
@RealClientIpCountryCode = params['RealClientIpCountryCode']
|
10459
10887
|
@AttackTime = params['AttackTime']
|
10460
10888
|
@RequestUri = params['RequestUri']
|
10461
|
-
@
|
10889
|
+
@ReqMethod = params['ReqMethod']
|
10462
10890
|
unless params['RuleDetailList'].nil?
|
10463
10891
|
@RuleDetailList = []
|
10464
10892
|
params['RuleDetailList'].each do |i|
|
@@ -10467,7 +10895,7 @@ module TencentCloud
|
|
10467
10895
|
@RuleDetailList << secrulerelatedinfo_tmp
|
10468
10896
|
end
|
10469
10897
|
end
|
10470
|
-
@
|
10898
|
+
@AttackContent = params['AttackContent']
|
10471
10899
|
@Area = params['Area']
|
10472
10900
|
end
|
10473
10901
|
end
|
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.505
|
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-02-
|
11
|
+
date: 2023-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|