tencentcloud-sdk-waf 3.0.661 → 3.0.663

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: 6d0de4e59ba0ac9e16a5b43eeb6eae689916016d
4
- data.tar.gz: d811aabdf20f4f50093a3f9d069ed7d64032dd2a
3
+ metadata.gz: 9f8ad6d33275ae329ea22b4e9f01b69c65bf5776
4
+ data.tar.gz: 41f612313ea29f1b6a5eedd64c48f7b0fea6b9ca
5
5
  SHA512:
6
- metadata.gz: 0f36aa4d68ac09c0b6f013ee5d32c1cef616ab174050776a0b1b62bf3c3e5cb05d81cde2fdcaaf935a97244c5db9674deee902629f96e464ef8dbc72ee868d71
7
- data.tar.gz: 68883417e1a0c4f631284902862c07232a9be437d9ff1e082a76adb365d03071278cde79666f6feb1efd7c7fe33d604e0f22a6cfdbd24c3481e745903f430e20
6
+ metadata.gz: 9ea4cd61310cc83af5009c0643de07f1262e20c6e1fa7f954b812f8a777ec20c1113a1836af0035cd436062d8587837a8cd24be17ca334bd6604b32d902a1a04
7
+ data.tar.gz: 9b45264257c9cf90e0f08216bed48dd4de5ee3567e1c99bcb19e80ec08e2de49b3365d278ec5d1370bf51b4113e135218228f25acbdd75a410600bcbf1f9c429
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.661
1
+ 3.0.663
@@ -149,7 +149,7 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
- # 添加Spart防护域名
152
+ # 添加SaaS型WAF防护域名
153
153
 
154
154
  # @param request: Request instance for AddSpartaProtection.
155
155
  # @type request: :class:`Tencentcloud::waf::V20180125::AddSpartaProtectionRequest`
@@ -197,7 +197,7 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
- # clb-waf中添加防护的域名
200
+ # clb-waf中添加防护域名
201
201
 
202
202
  # @param request: Request instance for CreateHost.
203
203
  # @type request: :class:`Tencentcloud::waf::V20180125::CreateHostRequest`
@@ -510,7 +510,7 @@ module TencentCloud
510
510
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
511
511
  end
512
512
 
513
- # SAASWAF删除防护域名
513
+ # Saas型WAF删除防护域名
514
514
 
515
515
  # @param request: Request instance for DeleteSpartaProtection.
516
516
  # @type request: :class:`Tencentcloud::waf::V20180125::DeleteSpartaProtectionRequest`
@@ -850,7 +850,7 @@ module TencentCloud
850
850
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
851
851
  end
852
852
 
853
- # 查询加密套件信息
853
+ # Saas型WAF接入查询加密套件信息
854
854
 
855
855
  # @param request: Request instance for DescribeCiphersDetail.
856
856
  # @type request: :class:`Tencentcloud::waf::V20180125::DescribeCiphersDetailRequest`
@@ -946,7 +946,7 @@ module TencentCloud
946
946
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
947
947
  end
948
948
 
949
- # 获取一个clb域名详情
949
+ # 获取一个clbwaf域名详情
950
950
 
951
951
  # @param request: Request instance for DescribeDomainDetailsClb.
952
952
  # @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainDetailsClbRequest`
@@ -970,7 +970,7 @@ module TencentCloud
970
970
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
971
971
  end
972
972
 
973
- # 查询单个saas域名详情
973
+ # 查询单个saaswaf域名详情
974
974
 
975
975
  # @param request: Request instance for DescribeDomainDetailsSaas.
976
976
  # @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainDetailsSaasRequest`
@@ -1330,7 +1330,7 @@ module TencentCloud
1330
1330
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1331
1331
  end
1332
1332
 
1333
- # 获取非标端口列表
1333
+ # 获取Saas型WAF防护端口列表
1334
1334
 
1335
1335
  # @param request: Request instance for DescribePorts.
1336
1336
  # @type request: :class:`Tencentcloud::waf::V20180125::DescribePortsRequest`
@@ -2052,7 +2052,7 @@ module TencentCloud
2052
2052
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2053
2053
  end
2054
2054
 
2055
- # 修改ipv6开关
2055
+ # 切换ipv6开关
2056
2056
 
2057
2057
  # @param request: Request instance for ModifyDomainIpv6Status.
2058
2058
  # @type request: :class:`Tencentcloud::waf::V20180125::ModifyDomainIpv6StatusRequest`
@@ -2581,6 +2581,30 @@ module TencentCloud
2581
2581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2582
2582
  end
2583
2583
 
2584
+ # 切换弹性的开关
2585
+
2586
+ # @param request: Request instance for SwitchElasticMode.
2587
+ # @type request: :class:`Tencentcloud::waf::V20180125::SwitchElasticModeRequest`
2588
+ # @rtype: :class:`Tencentcloud::waf::V20180125::SwitchElasticModeResponse`
2589
+ def SwitchElasticMode(request)
2590
+ body = send_request('SwitchElasticMode', request.serialize)
2591
+ response = JSON.parse(body)
2592
+ if response['Response'].key?('Error') == false
2593
+ model = SwitchElasticModeResponse.new
2594
+ model.deserialize(response['Response'])
2595
+ model
2596
+ else
2597
+ code = response['Response']['Error']['Code']
2598
+ message = response['Response']['Error']['Message']
2599
+ reqid = response['Response']['RequestId']
2600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2601
+ end
2602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2603
+ raise e
2604
+ rescue StandardError => e
2605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2606
+ end
2607
+
2584
2608
  # Waf CC V2 Upsert接口
2585
2609
 
2586
2610
  # @param request: Request instance for UpsertCCRule.
@@ -630,78 +630,120 @@ module TencentCloud
630
630
 
631
631
  # AddSpartaProtection请求参数结构体
632
632
  class AddSpartaProtectionRequest < TencentCloud::Common::AbstractModel
633
- # @param Domain: 需要防御的域名
633
+ # @param Domain: 需要防护的域名
634
634
  # @type Domain: String
635
- # @param CertType: 证书类型,0表示没有证书,CertType=1表示自有证书,2 为托管证书
635
+ # @param CertType: 证书类型。
636
+ # 0:仅配置HTTP监听端口,没有证书
637
+ # 1:证书来源为自有证书
638
+ # 2:证书来源为托管证书
636
639
  # @type CertType: Integer
637
- # @param IsCdn: 表示是否开启了CDN代理,1:有部署CDN,0:未部署CDN
640
+ # @param IsCdn: waf前是否部署有七层代理服务。
641
+ # 0:没有部署代理服务
642
+ # 1:有部署代理服务,waf将使用XFF获取客户端IP
643
+ # 2:有部署代理服务,waf将使用remote_addr获取客户端IP
644
+ # 3:有部署代理服务,waf将使用ip_headers中的自定义header获取客户端IP
638
645
  # @type IsCdn: Integer
639
- # @param UpstreamType: 回源类型,0表示通过IP回源,1 表示通过域名回源
646
+ # @param UpstreamType: 回源类型。
647
+ # 0:通过IP回源
648
+ # 1:通过域名回源
640
649
  # @type UpstreamType: Integer
641
- # @param IsWebsocket: 是否开启WebSocket支持,1表示开启,0不开启
650
+ # @param IsWebsocket: 是否开启WebSocket支持。
651
+ # 0:关闭
652
+ # 1:开启
642
653
  # @type IsWebsocket: Integer
643
- # @param LoadBalance: 负载均衡策略,0表示轮询,1表示IP hash
654
+ # @param LoadBalance: 回源负载均衡策略。
655
+ # 0:轮询
656
+ # 1:IP hash
657
+ # 2:加权轮询
644
658
  # @type LoadBalance: String
645
- # @param Cert: 值为1时,需要填次参数,表示证书内容
659
+ # @param Cert: CertType为1时,需要填充此参数,表示自有证书的证书链
646
660
  # @type Cert: String
647
- # @param PrivateKey: CertType=1时,需要填次参数,表示证书的私钥
661
+ # @param PrivateKey: CertType1时,需要填充此参数,表示自有证书的私钥
648
662
  # @type PrivateKey: String
649
- # @param SSLId: CertType=2时,需要填次参数,表示证书的ID
663
+ # @param SSLId: CertType2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
650
664
  # @type SSLId: String
651
- # @param ResourceId: Waf的资源ID
665
+ # @param ResourceId: 待废弃,可不填。Waf的资源ID
652
666
  # @type ResourceId: String
653
- # @param UpstreamScheme: HTTPS回源协议,填http或者https
667
+ # @param IpHeaders: IsCdn为3时,需要填此参数,表示自定义header
668
+ # @type IpHeaders: Array
669
+ # @param UpstreamScheme: 服务配置有HTTPS端口时,HTTPS的回源协议。
670
+ # http:使用http协议回源,和HttpsUpstreamPort配合使用
671
+ # https:使用https协议回源
654
672
  # @type UpstreamScheme: String
655
673
  # @param HttpsUpstreamPort: HTTPS回源端口,仅UpstreamScheme为http时需要填当前字段
656
674
  # @type HttpsUpstreamPort: String
657
- # @param IsGray: 是否开启灰度,0表示不开启灰度
675
+ # @param IsGray: 待废弃,可不填。是否开启灰度,0表示不开启灰度。
658
676
  # @type IsGray: Integer
659
- # @param GrayAreas: 灰度的地区
677
+ # @param GrayAreas: 待废弃,可不填。灰度的地区
660
678
  # @type GrayAreas: Array
661
- # @param UpstreamDomain: UpstreamType=1时,填次字段表示回源域名
679
+ # @param HttpsRewrite: 是否开启HTTP强制跳转到HTTPS。
680
+ # 0:不强制跳转
681
+ # 1:开启强制跳转
682
+ # @type HttpsRewrite: Integer
683
+ # @param UpstreamDomain: 域名回源时的回源域名。UpstreamType为1时,需要填充此字段
662
684
  # @type UpstreamDomain: String
663
- # @param SrcList: UpstreamType=0时,填次字段表示回源IP
685
+ # @param SrcList: IP回源时的回源IP列表。UpstreamType0时,需要填充此字段
664
686
  # @type SrcList: Array
665
- # @param IsHttp2: 是否开启HTTP2,开启HTTP2需要HTTPS支持
687
+ # @param IsHttp2: 是否开启HTTP2,需要开启HTTPS协议支持。
688
+ # 0:关闭
689
+ # 1:开启
666
690
  # @type IsHttp2: Integer
667
- # @param HttpsRewrite: 表示是否强制跳转到HTTPS,1强制跳转Https,0不强制跳转
668
- # @type HttpsRewrite: Integer
669
- # @param Ports: 服务有多端口需要设置此字段
691
+ # @param Ports: 服务端口列表配置。
692
+ # NginxServerId:新增域名时填'0'
693
+ # Port:监听端口号
694
+ # Protocol:端口协议
695
+ # UpstreamPort:与Port相同
696
+ # UpstreamProtocol:与Protocol相同
670
697
  # @type Ports: Array
671
- # @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF,cdn-waf表示CDN上的Web防护能力
698
+ # @param Edition: 待废弃,可不填。WAF实例类型。
699
+ # sparta-waf:SAAS型WAF
700
+ # clb-waf:负载均衡型WAF
701
+ # cdn-waf:CDN上的Web防护能力
672
702
  # @type Edition: String
673
- # @param IsKeepAlive: 是否开启长连接,0 短连接,1 长连接
703
+ # @param IsKeepAlive: 是否开启长连接。
704
+ # 0: 短连接
705
+ # 1: 长连接
674
706
  # @type IsKeepAlive: String
675
- # @param InstanceID: 实例id,上线之后带上此字段
707
+ # @param InstanceID: 域名所属实例id
676
708
  # @type InstanceID: String
677
- # @param Anycast: anycast IP类型开关: 0 普通IP 1 Anycast IP
709
+ # @param Anycast: 待废弃,目前填0即可。anycast IP类型开关: 0 普通IP 1 Anycast IP
678
710
  # @type Anycast: Integer
679
- # @param Weights: src权重
711
+ # @param Weights: 回源IP列表各IP的权重,和SrcList一一对应。当且仅当UpstreamType为0,并且SrcList有多个IP,并且LoadBalance为2时需要填写,否则填 []
680
712
  # @type Weights: Array
681
- # @param ActiveCheck: 是否开启主动健康检测,1表示开启,0表示不开启
713
+ # @param ActiveCheck: 是否开启主动健康检测。
714
+ # 0:不开启
715
+ # 1:开启
682
716
  # @type ActiveCheck: Integer
683
717
  # @param TLSVersion: TLS版本信息
684
718
  # @type TLSVersion: Integer
685
- # @param Ciphers: 加密套件信息
686
- # @type Ciphers: Array
687
- # @param CipherTemplate: 0:不支持选择:默认模版 1:通用型模版 2:安全型模版 3:自定义模版
719
+ # @param CipherTemplate: 加密套件模板。
720
+ # 0:不支持选择,使用默认模版
721
+ # 1:通用型模版
722
+ # 2:安全型模版
723
+ # 3:自定义模版
688
724
  # @type CipherTemplate: Integer
689
- # @param ProxyReadTimeout: 300s
725
+ # @param Ciphers: 自定义的加密套件列表。CipherTemplate为3时需要填此字段,表示自定义的加密套件,值通过DescribeCiphersDetail接口获取。
726
+ # @type Ciphers: Array
727
+ # @param ProxyReadTimeout: WAF与源站的读超时时间,默认300s。
690
728
  # @type ProxyReadTimeout: Integer
691
- # @param ProxySendTimeout: 300s
729
+ # @param ProxySendTimeout: WAF与源站的写超时时间,默认300s
692
730
  # @type ProxySendTimeout: Integer
693
- # @param SniType: 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
731
+ # @param SniType: WAF回源时的SNI类型。
732
+ # 0:关闭SNI,不配置client_hello中的server_name
733
+ # 1:开启SNI,client_hello中的server_name为防护域名
734
+ # 2:开启SNI,SNI为域名回源时的源站域名
735
+ # 3:开启SNI,SNI为自定义域名
694
736
  # @type SniType: Integer
695
- # @param SniHost: SniType=3时,需要填此参数,表示自定义的host
737
+ # @param SniHost: SniType3时,需要填此参数,表示自定义的SNI
696
738
  # @type SniHost: String
697
- # @param IpHeaders: is_cdn=3时,需要填此参数,表示自定义header
698
- # @type IpHeaders: Array
699
- # @param XFFReset: 0:关闭xff重置;1:开启xff重置
739
+ # @param XFFReset: 是否开启XFF重置。
740
+ # 0:关闭
741
+ # 1:开启
700
742
  # @type XFFReset: Integer
701
743
 
702
- attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :IsHttp2, :HttpsRewrite, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset
744
+ attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset
703
745
 
704
- def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, httpsrewrite=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil)
746
+ def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil)
705
747
  @Domain = domain
706
748
  @CertType = certtype
707
749
  @IsCdn = iscdn
@@ -712,14 +754,15 @@ module TencentCloud
712
754
  @PrivateKey = privatekey
713
755
  @SSLId = sslid
714
756
  @ResourceId = resourceid
757
+ @IpHeaders = ipheaders
715
758
  @UpstreamScheme = upstreamscheme
716
759
  @HttpsUpstreamPort = httpsupstreamport
717
760
  @IsGray = isgray
718
761
  @GrayAreas = grayareas
762
+ @HttpsRewrite = httpsrewrite
719
763
  @UpstreamDomain = upstreamdomain
720
764
  @SrcList = srclist
721
765
  @IsHttp2 = ishttp2
722
- @HttpsRewrite = httpsrewrite
723
766
  @Ports = ports
724
767
  @Edition = edition
725
768
  @IsKeepAlive = iskeepalive
@@ -728,13 +771,12 @@ module TencentCloud
728
771
  @Weights = weights
729
772
  @ActiveCheck = activecheck
730
773
  @TLSVersion = tlsversion
731
- @Ciphers = ciphers
732
774
  @CipherTemplate = ciphertemplate
775
+ @Ciphers = ciphers
733
776
  @ProxyReadTimeout = proxyreadtimeout
734
777
  @ProxySendTimeout = proxysendtimeout
735
778
  @SniType = snitype
736
779
  @SniHost = snihost
737
- @IpHeaders = ipheaders
738
780
  @XFFReset = xffreset
739
781
  end
740
782
 
@@ -749,14 +791,15 @@ module TencentCloud
749
791
  @PrivateKey = params['PrivateKey']
750
792
  @SSLId = params['SSLId']
751
793
  @ResourceId = params['ResourceId']
794
+ @IpHeaders = params['IpHeaders']
752
795
  @UpstreamScheme = params['UpstreamScheme']
753
796
  @HttpsUpstreamPort = params['HttpsUpstreamPort']
754
797
  @IsGray = params['IsGray']
755
798
  @GrayAreas = params['GrayAreas']
799
+ @HttpsRewrite = params['HttpsRewrite']
756
800
  @UpstreamDomain = params['UpstreamDomain']
757
801
  @SrcList = params['SrcList']
758
802
  @IsHttp2 = params['IsHttp2']
759
- @HttpsRewrite = params['HttpsRewrite']
760
803
  unless params['Ports'].nil?
761
804
  @Ports = []
762
805
  params['Ports'].each do |i|
@@ -772,13 +815,12 @@ module TencentCloud
772
815
  @Weights = params['Weights']
773
816
  @ActiveCheck = params['ActiveCheck']
774
817
  @TLSVersion = params['TLSVersion']
775
- @Ciphers = params['Ciphers']
776
818
  @CipherTemplate = params['CipherTemplate']
819
+ @Ciphers = params['Ciphers']
777
820
  @ProxyReadTimeout = params['ProxyReadTimeout']
778
821
  @ProxySendTimeout = params['ProxySendTimeout']
779
822
  @SniType = params['SniType']
780
823
  @SniHost = params['SniHost']
781
- @IpHeaders = params['IpHeaders']
782
824
  @XFFReset = params['XFFReset']
783
825
  end
784
826
  end
@@ -1291,10 +1333,13 @@ module TencentCloud
1291
1333
  # @param CdcClusters: cdc类型会增加集群信息
1292
1334
  # 注意:此字段可能返回 null,表示取不到有效值。
1293
1335
  # @type CdcClusters: String
1336
+ # @param CloudType: 云类型:public:公有云;private:私有云;hybrid:混合云
1337
+ # 注意:此字段可能返回 null,表示取不到有效值。
1338
+ # @type CloudType: String
1294
1339
 
1295
- attr_accessor :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :IsCdn, :LoadBalancerSet, :FlowMode, :State, :AlbType, :IpHeaders, :CdcClusters
1340
+ attr_accessor :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :IsCdn, :LoadBalancerSet, :FlowMode, :State, :AlbType, :IpHeaders, :CdcClusters, :CloudType
1296
1341
 
1297
- def initialize(domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, iscdn=nil, loadbalancerset=nil, flowmode=nil, state=nil, albtype=nil, ipheaders=nil, cdcclusters=nil)
1342
+ def initialize(domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, iscdn=nil, loadbalancerset=nil, flowmode=nil, state=nil, albtype=nil, ipheaders=nil, cdcclusters=nil, cloudtype=nil)
1298
1343
  @Domain = domain
1299
1344
  @DomainId = domainid
1300
1345
  @InstanceId = instanceid
@@ -1307,6 +1352,7 @@ module TencentCloud
1307
1352
  @AlbType = albtype
1308
1353
  @IpHeaders = ipheaders
1309
1354
  @CdcClusters = cdcclusters
1355
+ @CloudType = cloudtype
1310
1356
  end
1311
1357
 
1312
1358
  def deserialize(params)
@@ -1329,6 +1375,7 @@ module TencentCloud
1329
1375
  @AlbType = params['AlbType']
1330
1376
  @IpHeaders = params['IpHeaders']
1331
1377
  @CdcClusters = params['CdcClusters']
1378
+ @CloudType = params['CloudType']
1332
1379
  end
1333
1380
  end
1334
1381
 
@@ -2000,7 +2047,7 @@ module TencentCloud
2000
2047
  class DeleteSpartaProtectionRequest < TencentCloud::Common::AbstractModel
2001
2048
  # @param Domains: 域名列表
2002
2049
  # @type Domains: Array
2003
- # @param Edition: 版本
2050
+ # @param Edition: 实例类型
2004
2051
  # @type Edition: String
2005
2052
  # @param InstanceID: 实例id
2006
2053
  # @type InstanceID: String
@@ -4183,21 +4230,21 @@ module TencentCloud
4183
4230
 
4184
4231
  # DescribePorts请求参数结构体
4185
4232
  class DescribePortsRequest < TencentCloud::Common::AbstractModel
4186
- # @param Edition: 版本
4187
- # @type Edition: String
4188
4233
  # @param InstanceID: 实例ID
4189
4234
  # @type InstanceID: String
4235
+ # @param Edition: 实例类型
4236
+ # @type Edition: String
4190
4237
 
4191
- attr_accessor :Edition, :InstanceID
4238
+ attr_accessor :InstanceID, :Edition
4192
4239
 
4193
- def initialize(edition=nil, instanceid=nil)
4194
- @Edition = edition
4240
+ def initialize(instanceid=nil, edition=nil)
4195
4241
  @InstanceID = instanceid
4242
+ @Edition = edition
4196
4243
  end
4197
4244
 
4198
4245
  def deserialize(params)
4199
- @Edition = params['Edition']
4200
4246
  @InstanceID = params['InstanceID']
4247
+ @Edition = params['Edition']
4201
4248
  end
4202
4249
  end
4203
4250
 
@@ -5777,13 +5824,13 @@ module TencentCloud
5777
5824
  # @type DomainId: String
5778
5825
  # @param MainDomain: 主域名,入参时为空
5779
5826
  # @type MainDomain: String
5780
- # @param Mode: waf模式,同saas waf保持一致
5827
+ # @param Mode: 规则引擎防护模式,0 观察模式,1拦截模式
5781
5828
  # @type Mode: Integer
5782
5829
  # @param Status: waf和LD的绑定,0:没有绑定,1:绑定
5783
5830
  # @type Status: Integer
5784
5831
  # @param State: 域名状态,0:正常,1:未检测到流量,2:即将过期,3:过期
5785
5832
  # @type State: Integer
5786
- # @param Engine: 使用的规则,同saas waf保持一致
5833
+ # @param Engine: 规则引擎和AI引擎防护模式联合状态,10规则引擎观察&&AI引擎关闭模式 11规则引擎观察&&AI引擎观察模式 12规则引擎观察&&AI引擎拦截模式 20规则引擎拦截&&AI引擎关闭模式 21规则引擎拦截&&AI引擎观察模式 22规则引擎拦截&&AI引擎拦截模式
5787
5834
  # @type Engine: Integer
5788
5835
  # @param IsCdn: 是否开启代理,0:不开启,1:开启
5789
5836
  # @type IsCdn: Integer
@@ -5812,10 +5859,13 @@ module TencentCloud
5812
5859
  # @param EngineType: 规则引擎类型, 1: menshen, 2:tiga
5813
5860
  # 注意:此字段可能返回 null,表示取不到有效值。
5814
5861
  # @type EngineType: Integer
5862
+ # @param CloudType: 云类型:public:公有云;private:私有云;hybrid:混合云
5863
+ # 注意:此字段可能返回 null,表示取不到有效值。
5864
+ # @type CloudType: String
5815
5865
 
5816
- attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType, :IpHeaders, :EngineType
5866
+ attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType, :IpHeaders, :EngineType, :CloudType
5817
5867
 
5818
- def initialize(domain=nil, domainid=nil, maindomain=nil, mode=nil, status=nil, state=nil, engine=nil, iscdn=nil, loadbalancerset=nil, region=nil, edition=nil, flowmode=nil, clsstatus=nil, level=nil, cdcclusters=nil, albtype=nil, ipheaders=nil, enginetype=nil)
5868
+ def initialize(domain=nil, domainid=nil, maindomain=nil, mode=nil, status=nil, state=nil, engine=nil, iscdn=nil, loadbalancerset=nil, region=nil, edition=nil, flowmode=nil, clsstatus=nil, level=nil, cdcclusters=nil, albtype=nil, ipheaders=nil, enginetype=nil, cloudtype=nil)
5819
5869
  @Domain = domain
5820
5870
  @DomainId = domainid
5821
5871
  @MainDomain = maindomain
@@ -5834,6 +5884,7 @@ module TencentCloud
5834
5884
  @AlbType = albtype
5835
5885
  @IpHeaders = ipheaders
5836
5886
  @EngineType = enginetype
5887
+ @CloudType = cloudtype
5837
5888
  end
5838
5889
 
5839
5890
  def deserialize(params)
@@ -5862,6 +5913,7 @@ module TencentCloud
5862
5913
  @AlbType = params['AlbType']
5863
5914
  @IpHeaders = params['IpHeaders']
5864
5915
  @EngineType = params['EngineType']
5916
+ @CloudType = params['CloudType']
5865
5917
  end
5866
5918
  end
5867
5919
 
@@ -6209,10 +6261,13 @@ module TencentCloud
6209
6261
  # @param LoadBalancerType: 负载均衡的网络类型
6210
6262
  # 注意:此字段可能返回 null,表示取不到有效值。
6211
6263
  # @type LoadBalancerType: String
6264
+ # @param LoadBalancerDomain: 负载均衡的域名
6265
+ # 注意:此字段可能返回 null,表示取不到有效值。
6266
+ # @type LoadBalancerDomain: String
6212
6267
 
6213
- attr_accessor :LoadBalancerId, :LoadBalancerName, :ListenerId, :ListenerName, :Vip, :Vport, :Region, :Protocol, :Zone, :NumericalVpcId, :LoadBalancerType
6268
+ attr_accessor :LoadBalancerId, :LoadBalancerName, :ListenerId, :ListenerName, :Vip, :Vport, :Region, :Protocol, :Zone, :NumericalVpcId, :LoadBalancerType, :LoadBalancerDomain
6214
6269
 
6215
- def initialize(loadbalancerid=nil, loadbalancername=nil, listenerid=nil, listenername=nil, vip=nil, vport=nil, region=nil, protocol=nil, zone=nil, numericalvpcid=nil, loadbalancertype=nil)
6270
+ def initialize(loadbalancerid=nil, loadbalancername=nil, listenerid=nil, listenername=nil, vip=nil, vport=nil, region=nil, protocol=nil, zone=nil, numericalvpcid=nil, loadbalancertype=nil, loadbalancerdomain=nil)
6216
6271
  @LoadBalancerId = loadbalancerid
6217
6272
  @LoadBalancerName = loadbalancername
6218
6273
  @ListenerId = listenerid
@@ -6224,6 +6279,7 @@ module TencentCloud
6224
6279
  @Zone = zone
6225
6280
  @NumericalVpcId = numericalvpcid
6226
6281
  @LoadBalancerType = loadbalancertype
6282
+ @LoadBalancerDomain = loadbalancerdomain
6227
6283
  end
6228
6284
 
6229
6285
  def deserialize(params)
@@ -6238,6 +6294,7 @@ module TencentCloud
6238
6294
  @Zone = params['Zone']
6239
6295
  @NumericalVpcId = params['NumericalVpcId']
6240
6296
  @LoadBalancerType = params['LoadBalancerType']
6297
+ @LoadBalancerDomain = params['LoadBalancerDomain']
6241
6298
  end
6242
6299
  end
6243
6300
 
@@ -6276,10 +6333,13 @@ module TencentCloud
6276
6333
  # @param LoadBalancerType: CLB类型
6277
6334
  # 注意:此字段可能返回 null,表示取不到有效值。
6278
6335
  # @type LoadBalancerType: String
6336
+ # @param LoadBalancerDomain: 负载均衡器的域名
6337
+ # 注意:此字段可能返回 null,表示取不到有效值。
6338
+ # @type LoadBalancerDomain: String
6279
6339
 
6280
- attr_accessor :ListenerId, :ListenerName, :LoadBalancerId, :LoadBalancerName, :Protocol, :Region, :Vip, :Vport, :Zone, :NumericalVpcId, :LoadBalancerType
6340
+ attr_accessor :ListenerId, :ListenerName, :LoadBalancerId, :LoadBalancerName, :Protocol, :Region, :Vip, :Vport, :Zone, :NumericalVpcId, :LoadBalancerType, :LoadBalancerDomain
6281
6341
 
6282
- def initialize(listenerid=nil, listenername=nil, loadbalancerid=nil, loadbalancername=nil, protocol=nil, region=nil, vip=nil, vport=nil, zone=nil, numericalvpcid=nil, loadbalancertype=nil)
6342
+ def initialize(listenerid=nil, listenername=nil, loadbalancerid=nil, loadbalancername=nil, protocol=nil, region=nil, vip=nil, vport=nil, zone=nil, numericalvpcid=nil, loadbalancertype=nil, loadbalancerdomain=nil)
6283
6343
  @ListenerId = listenerid
6284
6344
  @ListenerName = listenername
6285
6345
  @LoadBalancerId = loadbalancerid
@@ -6291,6 +6351,7 @@ module TencentCloud
6291
6351
  @Zone = zone
6292
6352
  @NumericalVpcId = numericalvpcid
6293
6353
  @LoadBalancerType = loadbalancertype
6354
+ @LoadBalancerDomain = loadbalancerdomain
6294
6355
  end
6295
6356
 
6296
6357
  def deserialize(params)
@@ -6305,6 +6366,7 @@ module TencentCloud
6305
6366
  @Zone = params['Zone']
6306
6367
  @NumericalVpcId = params['NumericalVpcId']
6307
6368
  @LoadBalancerType = params['LoadBalancerType']
6369
+ @LoadBalancerDomain = params['LoadBalancerDomain']
6308
6370
  end
6309
6371
  end
6310
6372
 
@@ -7335,19 +7397,23 @@ module TencentCloud
7335
7397
 
7336
7398
  # ModifyInstanceName请求参数结构体
7337
7399
  class ModifyInstanceNameRequest < TencentCloud::Common::AbstractModel
7400
+ # @param InstanceName: 新名称
7401
+ # @type InstanceName: String
7338
7402
  # @param InstanceID: 实例id
7339
7403
  # @type InstanceID: String
7340
7404
  # @param Edition: 版本
7341
7405
  # @type Edition: String
7342
7406
 
7343
- attr_accessor :InstanceID, :Edition
7407
+ attr_accessor :InstanceName, :InstanceID, :Edition
7344
7408
 
7345
- def initialize(instanceid=nil, edition=nil)
7409
+ def initialize(instancename=nil, instanceid=nil, edition=nil)
7410
+ @InstanceName = instancename
7346
7411
  @InstanceID = instanceid
7347
7412
  @Edition = edition
7348
7413
  end
7349
7414
 
7350
7415
  def deserialize(params)
7416
+ @InstanceName = params['InstanceName']
7351
7417
  @InstanceID = params['InstanceID']
7352
7418
  @Edition = params['Edition']
7353
7419
  end
@@ -7597,7 +7663,7 @@ module TencentCloud
7597
7663
  # @type SniHost: String
7598
7664
  # @param IpHeaders: IsCdn=3时,需要填此参数,表示自定义header
7599
7665
  # @type IpHeaders: Array
7600
- # @param XFFReset: 0:关闭xff重置;1:开启xff重置
7666
+ # @param XFFReset: 0:关闭xff重置;1:开启xff重置,只有在IsCdn=0时可以开启
7601
7667
  # @type XFFReset: Integer
7602
7668
 
7603
7669
  attr_accessor :Domain, :DomainId, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset
@@ -8675,6 +8741,46 @@ module TencentCloud
8675
8741
  end
8676
8742
  end
8677
8743
 
8744
+ # SwitchElasticMode请求参数结构体
8745
+ class SwitchElasticModeRequest < TencentCloud::Common::AbstractModel
8746
+ # @param Edition: 版本,只能是sparta-waf, clb-waf, cdn-waf
8747
+ # @type Edition: String
8748
+ # @param Mode: 0代表关闭,1代表打开
8749
+ # @type Mode: Integer
8750
+ # @param InstanceID: 实例id
8751
+ # @type InstanceID: String
8752
+
8753
+ attr_accessor :Edition, :Mode, :InstanceID
8754
+
8755
+ def initialize(edition=nil, mode=nil, instanceid=nil)
8756
+ @Edition = edition
8757
+ @Mode = mode
8758
+ @InstanceID = instanceid
8759
+ end
8760
+
8761
+ def deserialize(params)
8762
+ @Edition = params['Edition']
8763
+ @Mode = params['Mode']
8764
+ @InstanceID = params['InstanceID']
8765
+ end
8766
+ end
8767
+
8768
+ # SwitchElasticMode返回参数结构体
8769
+ class SwitchElasticModeResponse < TencentCloud::Common::AbstractModel
8770
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8771
+ # @type RequestId: String
8772
+
8773
+ attr_accessor :RequestId
8774
+
8775
+ def initialize(requestid=nil)
8776
+ @RequestId = requestid
8777
+ end
8778
+
8779
+ def deserialize(params)
8780
+ @RequestId = params['RequestId']
8781
+ end
8782
+ end
8783
+
8678
8784
  # TLS 加密套件
8679
8785
  class TLSCiphers < TencentCloud::Common::AbstractModel
8680
8786
  # @param VersionId: TLS版本ID
@@ -8979,10 +9085,13 @@ module TencentCloud
8979
9085
  # @param Cls: 指定域名是否写cls的开关 1:写 0:不写
8980
9086
  # 注意:此字段可能返回 null,表示取不到有效值。
8981
9087
  # @type Cls: Integer
9088
+ # @param CloudType: 标记是否是混合云接入。hybrid表示混合云接入域名
9089
+ # 注意:此字段可能返回 null,表示取不到有效值。
9090
+ # @type CloudType: String
8982
9091
 
8983
- attr_accessor :Appid, :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :Level, :WriteConfig, :Cls
9092
+ attr_accessor :Appid, :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :Level, :WriteConfig, :Cls, :CloudType
8984
9093
 
8985
- def initialize(appid=nil, domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, level=nil, writeconfig=nil, cls=nil)
9094
+ def initialize(appid=nil, domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, level=nil, writeconfig=nil, cls=nil, cloudtype=nil)
8986
9095
  @Appid = appid
8987
9096
  @Domain = domain
8988
9097
  @DomainId = domainid
@@ -8992,6 +9101,7 @@ module TencentCloud
8992
9101
  @Level = level
8993
9102
  @WriteConfig = writeconfig
8994
9103
  @Cls = cls
9104
+ @CloudType = cloudtype
8995
9105
  end
8996
9106
 
8997
9107
  def deserialize(params)
@@ -9004,6 +9114,7 @@ module TencentCloud
9004
9114
  @Level = params['Level']
9005
9115
  @WriteConfig = params['WriteConfig']
9006
9116
  @Cls = params['Cls']
9117
+ @CloudType = params['CloudType']
9007
9118
  end
9008
9119
  end
9009
9120
 
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.661
4
+ version: 3.0.663
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-09-18 00:00:00.000000000 Z
11
+ date: 2023-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common