tencentcloud-sdk-waf 3.0.451 → 3.0.452

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: a2cf12452e39087a70345a909f3f47d1cf5943e7
4
- data.tar.gz: fdf984809fa49c774ee91dd5156e8f3a12150cd0
3
+ metadata.gz: 97b3d5b2edc910f3058310117e3e155cb5f523de
4
+ data.tar.gz: c278a62ad14d97b84044c1e2d273e67b230c25d6
5
5
  SHA512:
6
- metadata.gz: ee1d3dc781c77650cb18ce25c159b6865732377a79f75225ae4346296c7040aafe106070473b420161b5ba211860b253c8d69b6c9584bf345ff848666a189be1
7
- data.tar.gz: ad878e6fc0f25ea7be6fc2f3e1bd08e9b6ac2ef0cfb99cc70102dd656becf6d485b4fd1e2a75898e4086cbcdce2a9f430f5f7f20d6ed32d99d4d7e50cd97a9b6
6
+ metadata.gz: d481d6adb8d33321b6cbdc13ed471a615d295f2212cdb3017c38ad96d2a2375cb64583bae24d84289c5d00b1b7057643b65b329a86ee368968d12b64f2491287
7
+ data.tar.gz: e64f96cb38cc9fbc4057e1ef089627349d1b6b33b141a2dd39c837049fcb4a78a136019fe038835e11c2696c2b46e13a6d77f5f6703abaf95267c71a92f4ba28
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.451
1
+ 3.0.452
@@ -366,6 +366,30 @@ module TencentCloud
366
366
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
367
367
  end
368
368
 
369
+ # 查询单个saas域名详情
370
+
371
+ # @param request: Request instance for DescribeDomainDetailsSaas.
372
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainDetailsSaasRequest`
373
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeDomainDetailsSaasResponse`
374
+ def DescribeDomainDetailsSaas(request)
375
+ body = send_request('DescribeDomainDetailsSaas', request.serialize)
376
+ response = JSON.parse(body)
377
+ if response['Response'].key?('Error') == false
378
+ model = DescribeDomainDetailsSaasResponse.new
379
+ model.deserialize(response['Response'])
380
+ model
381
+ else
382
+ code = response['Response']['Error']['Code']
383
+ message = response['Response']['Error']['Message']
384
+ reqid = response['Response']['RequestId']
385
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
386
+ end
387
+ rescue TencentCloud::Common::TencentCloudSDKException => e
388
+ raise e
389
+ rescue StandardError => e
390
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
391
+ end
392
+
369
393
  # 获取域名的规则白名单
370
394
 
371
395
 
@@ -1305,6 +1305,53 @@ module TencentCloud
1305
1305
  end
1306
1306
  end
1307
1307
 
1308
+ # DescribeDomainDetailsSaas请求参数结构体
1309
+ class DescribeDomainDetailsSaasRequest < TencentCloud::Common::AbstractModel
1310
+ # @param Domain: 域名
1311
+ # @type Domain: String
1312
+ # @param DomainId: 域名id
1313
+ # @type DomainId: String
1314
+ # @param InstanceId: 实例id
1315
+ # @type InstanceId: String
1316
+
1317
+ attr_accessor :Domain, :DomainId, :InstanceId
1318
+
1319
+ def initialize(domain=nil, domainid=nil, instanceid=nil)
1320
+ @Domain = domain
1321
+ @DomainId = domainid
1322
+ @InstanceId = instanceid
1323
+ end
1324
+
1325
+ def deserialize(params)
1326
+ @Domain = params['Domain']
1327
+ @DomainId = params['DomainId']
1328
+ @InstanceId = params['InstanceId']
1329
+ end
1330
+ end
1331
+
1332
+ # DescribeDomainDetailsSaas返回参数结构体
1333
+ class DescribeDomainDetailsSaasResponse < TencentCloud::Common::AbstractModel
1334
+ # @param DomainsPartInfo: 域名详情
1335
+ # @type DomainsPartInfo: :class:`Tencentcloud::Waf.v20180125.models.DomainsPartInfo`
1336
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1337
+ # @type RequestId: String
1338
+
1339
+ attr_accessor :DomainsPartInfo, :RequestId
1340
+
1341
+ def initialize(domainspartinfo=nil, requestid=nil)
1342
+ @DomainsPartInfo = domainspartinfo
1343
+ @RequestId = requestid
1344
+ end
1345
+
1346
+ def deserialize(params)
1347
+ unless params['DomainsPartInfo'].nil?
1348
+ @DomainsPartInfo = DomainsPartInfo.new
1349
+ @DomainsPartInfo.deserialize(params['DomainsPartInfo'])
1350
+ end
1351
+ @RequestId = params['RequestId']
1352
+ end
1353
+ end
1354
+
1308
1355
  # DescribeDomainWhiteRules请求参数结构体
1309
1356
  class DescribeDomainWhiteRulesRequest < TencentCloud::Common::AbstractModel
1310
1357
  # @param Domain: 需要查询的域名
@@ -1374,9 +1421,9 @@ module TencentCloud
1374
1421
 
1375
1422
  # DescribeDomains请求参数结构体
1376
1423
  class DescribeDomainsRequest < TencentCloud::Common::AbstractModel
1377
- # @param Offset: 偏移
1424
+ # @param Offset: 数据偏移量,从1开始。
1378
1425
  # @type Offset: Integer
1379
- # @param Limit: 容量
1426
+ # @param Limit: 返回域名的数量
1380
1427
  # @type Limit: Integer
1381
1428
  # @param Filters: 过滤数组
1382
1429
  # @type Filters: Array
@@ -1905,12 +1952,123 @@ module TencentCloud
1905
1952
 
1906
1953
  # 域名的详细信息
1907
1954
  class DomainInfo < TencentCloud::Common::AbstractModel
1955
+ # @param Domain: 域名
1956
+ # @type Domain: String
1957
+ # @param DomainId: 域名ID
1958
+ # @type DomainId: String
1959
+ # @param InstanceId: 实例ID
1960
+ # @type InstanceId: String
1961
+ # @param Cname: cname地址
1962
+ # @type Cname: String
1963
+ # @param Edition: 实例类型
1964
+ # @type Edition: String
1965
+ # @param Region: 地域
1966
+ # @type Region: String
1967
+ # @param InstanceName: 实例名
1968
+ # @type InstanceName: String
1969
+ # @param ClsStatus: 日志包
1970
+ # @type ClsStatus: Integer
1971
+ # @param FlowMode: clb模式
1972
+ # @type FlowMode: Integer
1973
+ # @param Status: waf开关
1974
+ # @type Status: Integer
1975
+ # @param Mode: 防御模式
1976
+ # @type Mode: Integer
1977
+ # @param Engine: AI防御模式
1978
+ # @type Engine: Integer
1979
+ # @param CCList: CC列表
1980
+ # @type CCList: Array
1981
+ # @param RsList: 回源ip
1982
+ # @type RsList: Array
1983
+ # @param Ports: 服务端口配置
1984
+ # @type Ports: Array
1985
+ # @param LoadBalancerSet: 负载均衡器
1986
+ # @type LoadBalancerSet: Array
1987
+ # @param AppId: 用户id
1988
+ # @type AppId: Integer
1989
+ # @param State: clb状态
1990
+ # @type State: Integer
1991
+ # @param CreateTime: 创建时间
1992
+ # @type CreateTime: String
1993
+ # @param Ipv6Status: 0关闭 1开启
1994
+ # @type Ipv6Status: Integer
1995
+ # @param BotStatus: 0关闭 1开启
1996
+ # @type BotStatus: Integer
1997
+ # @param Level: 版本信息
1998
+ # @type Level: Integer
1999
+ # @param PostCLSStatus: 是否开启投递CLS功能
2000
+ # @type PostCLSStatus: Integer
2001
+ # @param PostCKafkaStatus: 是否开启投递CKafka功能
2002
+ # @type PostCKafkaStatus: Integer
1908
2003
 
2004
+ attr_accessor :Domain, :DomainId, :InstanceId, :Cname, :Edition, :Region, :InstanceName, :ClsStatus, :FlowMode, :Status, :Mode, :Engine, :CCList, :RsList, :Ports, :LoadBalancerSet, :AppId, :State, :CreateTime, :Ipv6Status, :BotStatus, :Level, :PostCLSStatus, :PostCKafkaStatus
1909
2005
 
1910
- def initialize()
2006
+ def initialize(domain=nil, domainid=nil, instanceid=nil, cname=nil, edition=nil, region=nil, instancename=nil, clsstatus=nil, flowmode=nil, status=nil, mode=nil, engine=nil, cclist=nil, rslist=nil, ports=nil, loadbalancerset=nil, appid=nil, state=nil, createtime=nil, ipv6status=nil, botstatus=nil, level=nil, postclsstatus=nil, postckafkastatus=nil)
2007
+ @Domain = domain
2008
+ @DomainId = domainid
2009
+ @InstanceId = instanceid
2010
+ @Cname = cname
2011
+ @Edition = edition
2012
+ @Region = region
2013
+ @InstanceName = instancename
2014
+ @ClsStatus = clsstatus
2015
+ @FlowMode = flowmode
2016
+ @Status = status
2017
+ @Mode = mode
2018
+ @Engine = engine
2019
+ @CCList = cclist
2020
+ @RsList = rslist
2021
+ @Ports = ports
2022
+ @LoadBalancerSet = loadbalancerset
2023
+ @AppId = appid
2024
+ @State = state
2025
+ @CreateTime = createtime
2026
+ @Ipv6Status = ipv6status
2027
+ @BotStatus = botstatus
2028
+ @Level = level
2029
+ @PostCLSStatus = postclsstatus
2030
+ @PostCKafkaStatus = postckafkastatus
1911
2031
  end
1912
2032
 
1913
2033
  def deserialize(params)
2034
+ @Domain = params['Domain']
2035
+ @DomainId = params['DomainId']
2036
+ @InstanceId = params['InstanceId']
2037
+ @Cname = params['Cname']
2038
+ @Edition = params['Edition']
2039
+ @Region = params['Region']
2040
+ @InstanceName = params['InstanceName']
2041
+ @ClsStatus = params['ClsStatus']
2042
+ @FlowMode = params['FlowMode']
2043
+ @Status = params['Status']
2044
+ @Mode = params['Mode']
2045
+ @Engine = params['Engine']
2046
+ @CCList = params['CCList']
2047
+ @RsList = params['RsList']
2048
+ unless params['Ports'].nil?
2049
+ @Ports = []
2050
+ params['Ports'].each do |i|
2051
+ portinfo_tmp = PortInfo.new
2052
+ portinfo_tmp.deserialize(i)
2053
+ @Ports << portinfo_tmp
2054
+ end
2055
+ end
2056
+ unless params['LoadBalancerSet'].nil?
2057
+ @LoadBalancerSet = []
2058
+ params['LoadBalancerSet'].each do |i|
2059
+ loadbalancerpackagenew_tmp = LoadBalancerPackageNew.new
2060
+ loadbalancerpackagenew_tmp.deserialize(i)
2061
+ @LoadBalancerSet << loadbalancerpackagenew_tmp
2062
+ end
2063
+ end
2064
+ @AppId = params['AppId']
2065
+ @State = params['State']
2066
+ @CreateTime = params['CreateTime']
2067
+ @Ipv6Status = params['Ipv6Status']
2068
+ @BotStatus = params['BotStatus']
2069
+ @Level = params['Level']
2070
+ @PostCLSStatus = params['PostCLSStatus']
2071
+ @PostCKafkaStatus = params['PostCKafkaStatus']
1914
2072
  end
1915
2073
  end
1916
2074
 
@@ -1946,6 +2104,121 @@ module TencentCloud
1946
2104
  end
1947
2105
  end
1948
2106
 
2107
+ # saas域名详情
2108
+ class DomainsPartInfo < TencentCloud::Common::AbstractModel
2109
+ # @param HttpsRewrite: 是否开启httpRewrite
2110
+ # @type HttpsRewrite: Integer
2111
+ # @param HttpsUpstreamPort: https回源端口
2112
+ # @type HttpsUpstreamPort: String
2113
+ # @param IsCdn: 是否是cdn
2114
+ # @type IsCdn: Integer
2115
+ # @param IsGray: 是否开启gray
2116
+ # @type IsGray: Integer
2117
+ # @param IsHttp2: 是否是http2
2118
+ # @type IsHttp2: Integer
2119
+ # @param IsWebsocket: 是否开启websocket
2120
+ # @type IsWebsocket: Integer
2121
+ # @param LoadBalance: 负载均衡
2122
+ # @type LoadBalance: Integer
2123
+ # @param Mode: 防御模式
2124
+ # @type Mode: Integer
2125
+ # @param PrivateKey: 私钥
2126
+ # @type PrivateKey: String
2127
+ # @param SSLId: ssl id
2128
+ # @type SSLId: String
2129
+ # @param UpstreamDomain: 回源域名
2130
+ # @type UpstreamDomain: String
2131
+ # @param UpstreamType: 回源类型
2132
+ # @type UpstreamType: Integer
2133
+ # @param SrcList: 回源ip
2134
+ # @type SrcList: Array
2135
+ # @param Ports: 服务端口配置
2136
+ # @type Ports: Array
2137
+ # @param CertType: 证书类型
2138
+ # @type CertType: Integer
2139
+ # @param UpstreamScheme: 回源方式
2140
+ # @type UpstreamScheme: String
2141
+ # @param Cls: 日志包
2142
+ # @type Cls: Integer
2143
+ # @param Cname: 一级cname
2144
+ # @type Cname: String
2145
+ # @param IsKeepAlive: 是否长连接
2146
+ # @type IsKeepAlive: Integer
2147
+ # @param ActiveCheck: 是否开启主动健康检测,1表示开启,0表示不开启
2148
+ # 注意:此字段可能返回 null,表示取不到有效值。
2149
+ # @type ActiveCheck: Integer
2150
+ # @param TLSVersion: TLS版本信息
2151
+ # 注意:此字段可能返回 null,表示取不到有效值。
2152
+ # @type TLSVersion: Integer
2153
+ # @param Ciphers: 加密套件信息
2154
+ # 注意:此字段可能返回 null,表示取不到有效值。
2155
+ # @type Ciphers: Array
2156
+ # @param CipherTemplate: 模版
2157
+ # 注意:此字段可能返回 null,表示取不到有效值。
2158
+ # @type CipherTemplate: Integer
2159
+
2160
+ attr_accessor :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate
2161
+
2162
+ def initialize(httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil)
2163
+ @HttpsRewrite = httpsrewrite
2164
+ @HttpsUpstreamPort = httpsupstreamport
2165
+ @IsCdn = iscdn
2166
+ @IsGray = isgray
2167
+ @IsHttp2 = ishttp2
2168
+ @IsWebsocket = iswebsocket
2169
+ @LoadBalance = loadbalance
2170
+ @Mode = mode
2171
+ @PrivateKey = privatekey
2172
+ @SSLId = sslid
2173
+ @UpstreamDomain = upstreamdomain
2174
+ @UpstreamType = upstreamtype
2175
+ @SrcList = srclist
2176
+ @Ports = ports
2177
+ @CertType = certtype
2178
+ @UpstreamScheme = upstreamscheme
2179
+ @Cls = cls
2180
+ @Cname = cname
2181
+ @IsKeepAlive = iskeepalive
2182
+ @ActiveCheck = activecheck
2183
+ @TLSVersion = tlsversion
2184
+ @Ciphers = ciphers
2185
+ @CipherTemplate = ciphertemplate
2186
+ end
2187
+
2188
+ def deserialize(params)
2189
+ @HttpsRewrite = params['HttpsRewrite']
2190
+ @HttpsUpstreamPort = params['HttpsUpstreamPort']
2191
+ @IsCdn = params['IsCdn']
2192
+ @IsGray = params['IsGray']
2193
+ @IsHttp2 = params['IsHttp2']
2194
+ @IsWebsocket = params['IsWebsocket']
2195
+ @LoadBalance = params['LoadBalance']
2196
+ @Mode = params['Mode']
2197
+ @PrivateKey = params['PrivateKey']
2198
+ @SSLId = params['SSLId']
2199
+ @UpstreamDomain = params['UpstreamDomain']
2200
+ @UpstreamType = params['UpstreamType']
2201
+ @SrcList = params['SrcList']
2202
+ unless params['Ports'].nil?
2203
+ @Ports = []
2204
+ params['Ports'].each do |i|
2205
+ portinfo_tmp = PortInfo.new
2206
+ portinfo_tmp.deserialize(i)
2207
+ @Ports << portinfo_tmp
2208
+ end
2209
+ end
2210
+ @CertType = params['CertType']
2211
+ @UpstreamScheme = params['UpstreamScheme']
2212
+ @Cls = params['Cls']
2213
+ @Cname = params['Cname']
2214
+ @IsKeepAlive = params['IsKeepAlive']
2215
+ @ActiveCheck = params['ActiveCheck']
2216
+ @TLSVersion = params['TLSVersion']
2217
+ @Ciphers = params['Ciphers']
2218
+ @CipherTemplate = params['CipherTemplate']
2219
+ end
2220
+ end
2221
+
1949
2222
  # 下载攻击日志记录数据项
1950
2223
  class DownloadAttackRecordInfo < TencentCloud::Common::AbstractModel
1951
2224
  # @param Id: 记录ID
@@ -2428,6 +2701,17 @@ module TencentCloud
2428
2701
  end
2429
2702
  end
2430
2703
 
2704
+ # 负载均衡算法
2705
+ class LoadBalancerPackageNew < TencentCloud::Common::AbstractModel
2706
+
2707
+
2708
+ def initialize()
2709
+ end
2710
+
2711
+ def deserialize(params)
2712
+ end
2713
+ end
2714
+
2431
2715
  # ModifyAccessPeriod请求参数结构体
2432
2716
  class ModifyAccessPeriodRequest < TencentCloud::Common::AbstractModel
2433
2717
  # @param Period: 访问日志保存期限,范围为[1, 30]
@@ -2706,6 +2990,17 @@ module TencentCloud
2706
2990
  end
2707
2991
  end
2708
2992
 
2993
+ # 防护域名端口配置信息
2994
+ class PortInfo < TencentCloud::Common::AbstractModel
2995
+
2996
+
2997
+ def initialize()
2998
+ end
2999
+
3000
+ def deserialize(params)
3001
+ end
3002
+ end
3003
+
2709
3004
  # 防护域名端口配置信息
2710
3005
  class PortItem < TencentCloud::Common::AbstractModel
2711
3006
  # @param Port: 监听端口配置
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.451
4
+ version: 3.0.452
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-11-14 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common