tencentcloud-sdk-waf 1.0.364 → 3.0.371
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/v20180125/client.rb +24 -0
- data/lib/v20180125/models.rb +88 -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: 2c56ddcbb0379245ade3e971f242404b08d7f115
|
4
|
+
data.tar.gz: 0d025c3a7dbab7fd60468c323d515e43b61a6d7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f28eddc13ffd42459bf86b1c19b4142136008778ffd6245c617714a71a735c0d29be091a9af5ea125da82a372434180364b2a19896c64262bd597086359339b
|
7
|
+
data.tar.gz: 0814a6f1cc7b936ae32eb592f7ddb645d39a377b9c98fb13faa11764cea268999a6656ba90a696c57800de0fe93aa9c2c441f2d77ec3d10024d2efd9d90806cf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.371
|
data/lib/v20180125/client.rb
CHANGED
@@ -511,6 +511,30 @@ module TencentCloud
|
|
511
511
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
512
512
|
end
|
513
513
|
|
514
|
+
# 在CDC场景下,负载均衡型WAF的添加、编辑域名配置的时候,需要展示CDC负载均衡型WAF(cdc-clb-waf)支持的地域列表,通过DescribeUserCdcClbWafRegions既可以获得当前对客户已经开放的地域列表
|
515
|
+
|
516
|
+
# @param request: Request instance for DescribeUserCdcClbWafRegions.
|
517
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeUserCdcClbWafRegionsRequest`
|
518
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeUserCdcClbWafRegionsResponse`
|
519
|
+
def DescribeUserCdcClbWafRegions(request)
|
520
|
+
body = send_request('DescribeUserCdcClbWafRegions', request.serialize)
|
521
|
+
response = JSON.parse(body)
|
522
|
+
if response['Response'].key?('Error') == false
|
523
|
+
model = DescribeUserCdcClbWafRegionsResponse.new
|
524
|
+
model.deserialize(response['Response'])
|
525
|
+
model
|
526
|
+
else
|
527
|
+
code = response['Response']['Error']['Code']
|
528
|
+
message = response['Response']['Error']['Message']
|
529
|
+
reqid = response['Response']['RequestId']
|
530
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
531
|
+
end
|
532
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
533
|
+
raise e
|
534
|
+
rescue StandardError => e
|
535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
536
|
+
end
|
537
|
+
|
514
538
|
# 在负载均衡型WAF的添加、编辑域名配置的时候,需要展示负载均衡型WAF(clb-waf)支持的地域列表,通过DescribeUserClbWafRegions既可以获得当前对客户已经开放的地域列表
|
515
539
|
|
516
540
|
# @param request: Request instance for DescribeUserClbWafRegions.
|
data/lib/v20180125/models.rb
CHANGED
@@ -676,6 +676,55 @@ module TencentCloud
|
|
676
676
|
end
|
677
677
|
end
|
678
678
|
|
679
|
+
# CDC场景下负载均衡WAF的集群信息
|
680
|
+
class CdcCluster < TencentCloud::Common::AbstractModel
|
681
|
+
# @param Id: cdc的集群id
|
682
|
+
# @type Id: String
|
683
|
+
# @param Name: cdc的集群名称
|
684
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
685
|
+
# @type Name: String
|
686
|
+
|
687
|
+
attr_accessor :Id, :Name
|
688
|
+
|
689
|
+
def initialize(id=nil, name=nil)
|
690
|
+
@Id = id
|
691
|
+
@Name = name
|
692
|
+
end
|
693
|
+
|
694
|
+
def deserialize(params)
|
695
|
+
@Id = params['Id']
|
696
|
+
@Name = params['Name']
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
700
|
+
# CDC场景下负载均衡WAF的地域信息
|
701
|
+
class CdcRegion < TencentCloud::Common::AbstractModel
|
702
|
+
# @param Region: 地域
|
703
|
+
# @type Region: String
|
704
|
+
# @param Clusters: 该地域对应的集群信息
|
705
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
706
|
+
# @type Clusters: Array
|
707
|
+
|
708
|
+
attr_accessor :Region, :Clusters
|
709
|
+
|
710
|
+
def initialize(region=nil, clusters=nil)
|
711
|
+
@Region = region
|
712
|
+
@Clusters = clusters
|
713
|
+
end
|
714
|
+
|
715
|
+
def deserialize(params)
|
716
|
+
@Region = params['Region']
|
717
|
+
unless params['Clusters'].nil?
|
718
|
+
@Clusters = []
|
719
|
+
params['Clusters'].each do |i|
|
720
|
+
cdccluster_tmp = CdcCluster.new
|
721
|
+
cdccluster_tmp.deserialize(i)
|
722
|
+
@Clusters << cdccluster_tmp
|
723
|
+
end
|
724
|
+
end
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
679
728
|
# CreateAccessExport请求参数结构体
|
680
729
|
class CreateAccessExportRequest < TencentCloud::Common::AbstractModel
|
681
730
|
# @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
|
@@ -1610,6 +1659,45 @@ module TencentCloud
|
|
1610
1659
|
end
|
1611
1660
|
end
|
1612
1661
|
|
1662
|
+
# DescribeUserCdcClbWafRegions请求参数结构体
|
1663
|
+
class DescribeUserCdcClbWafRegionsRequest < TencentCloud::Common::AbstractModel
|
1664
|
+
|
1665
|
+
|
1666
|
+
def initialize()
|
1667
|
+
end
|
1668
|
+
|
1669
|
+
def deserialize(params)
|
1670
|
+
end
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
# DescribeUserCdcClbWafRegions返回参数结构体
|
1674
|
+
class DescribeUserCdcClbWafRegionsResponse < TencentCloud::Common::AbstractModel
|
1675
|
+
# @param Data: CdcRegion的类型描述
|
1676
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1677
|
+
# @type Data: Array
|
1678
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1679
|
+
# @type RequestId: String
|
1680
|
+
|
1681
|
+
attr_accessor :Data, :RequestId
|
1682
|
+
|
1683
|
+
def initialize(data=nil, requestid=nil)
|
1684
|
+
@Data = data
|
1685
|
+
@RequestId = requestid
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
def deserialize(params)
|
1689
|
+
unless params['Data'].nil?
|
1690
|
+
@Data = []
|
1691
|
+
params['Data'].each do |i|
|
1692
|
+
cdcregion_tmp = CdcRegion.new
|
1693
|
+
cdcregion_tmp.deserialize(i)
|
1694
|
+
@Data << cdcregion_tmp
|
1695
|
+
end
|
1696
|
+
end
|
1697
|
+
@RequestId = params['RequestId']
|
1698
|
+
end
|
1699
|
+
end
|
1700
|
+
|
1613
1701
|
# DescribeUserClbWafRegions请求参数结构体
|
1614
1702
|
class DescribeUserClbWafRegionsRequest < TencentCloud::Common::AbstractModel
|
1615
1703
|
|
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:
|
4
|
+
version: 3.0.371
|
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
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|