tencentcloud-sdk-tse 3.0.709 → 3.0.711

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7112c364ca6ba02fb53932ff704e8882533664c0
4
- data.tar.gz: beb9efee797781af4886a105dec963f5a743128a
3
+ metadata.gz: 1954455b71e4a6c7f25dba5cea28a84411542768
4
+ data.tar.gz: da3f5442482b7433a0d4a82d0f7e6cc126cd1c44
5
5
  SHA512:
6
- metadata.gz: 5138408e7d39a51ab05a11f4f282216a52a9f7e9d4f11bf4f7550b8924dc51ab2471ea8f698626f469106652fa8e4ba71d4d61fc15a9ecc6c5c4befc933ac08f
7
- data.tar.gz: 694e8065e6bd28dbdc214e7cd172c4d56bcdc9bd14c437e915d27b163147e38bd90fc25551e3489c1dc37fe4ffad28701ca6defd7e5feaad1802fe62c8bc3ba0
6
+ metadata.gz: d2629786b7f607e16322f8fede940aabe552598f7069ca22a85a2404b32b6ffe1386eb997894c2a3259f2c27a07e44cd3bced516dbb958da4bfc0c615182a75d
7
+ data.tar.gz: f06012970d38ebac05a70a2d1d6fca2276ed39cb904e241030102de9fbff020687c19ab78ab20343c6e46cd7a0463abd793cb2ad911d1887457234f75dd54670
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.709
1
+ 3.0.711
@@ -509,6 +509,30 @@ module TencentCloud
509
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
510
  end
511
511
 
512
+ # 删除 WAF 防护域名
513
+
514
+ # @param request: Request instance for DeleteWafDomains.
515
+ # @type request: :class:`Tencentcloud::tse::V20201207::DeleteWafDomainsRequest`
516
+ # @rtype: :class:`Tencentcloud::tse::V20201207::DeleteWafDomainsResponse`
517
+ def DeleteWafDomains(request)
518
+ body = send_request('DeleteWafDomains', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DeleteWafDomainsResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
512
536
  # 获取云原生API网关实例信息
513
537
 
514
538
  # @param request: Request instance for DescribeCloudNativeAPIGateway.
@@ -989,6 +1013,54 @@ module TencentCloud
989
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
1014
  end
991
1015
 
1016
+ # 获取 WAF 防护域名
1017
+
1018
+ # @param request: Request instance for DescribeWafDomains.
1019
+ # @type request: :class:`Tencentcloud::tse::V20201207::DescribeWafDomainsRequest`
1020
+ # @rtype: :class:`Tencentcloud::tse::V20201207::DescribeWafDomainsResponse`
1021
+ def DescribeWafDomains(request)
1022
+ body = send_request('DescribeWafDomains', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeWafDomainsResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
1040
+ # 获取 WAF 防护状态
1041
+
1042
+ # @param request: Request instance for DescribeWafProtection.
1043
+ # @type request: :class:`Tencentcloud::tse::V20201207::DescribeWafProtectionRequest`
1044
+ # @rtype: :class:`Tencentcloud::tse::V20201207::DescribeWafProtectionResponse`
1045
+ def DescribeWafProtection(request)
1046
+ body = send_request('DescribeWafProtection', request.serialize)
1047
+ response = JSON.parse(body)
1048
+ if response['Response'].key?('Error') == false
1049
+ model = DescribeWafProtectionResponse.new
1050
+ model.deserialize(response['Response'])
1051
+ model
1052
+ else
1053
+ code = response['Response']['Error']['Code']
1054
+ message = response['Response']['Error']['Message']
1055
+ reqid = response['Response']['RequestId']
1056
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1057
+ end
1058
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1059
+ raise e
1060
+ rescue StandardError => e
1061
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
+ end
1063
+
992
1064
  # 查询Zookeeper类型注册引擎实例副本信息
993
1065
 
994
1066
  # @param request: Request instance for DescribeZookeeperReplicas.
@@ -2222,6 +2222,42 @@ module TencentCloud
2222
2222
  end
2223
2223
  end
2224
2224
 
2225
+ # DeleteWafDomains请求参数结构体
2226
+ class DeleteWafDomainsRequest < TencentCloud::Common::AbstractModel
2227
+ # @param GatewayId: 网关ID
2228
+ # @type GatewayId: String
2229
+ # @param Domains: WAF 防护域名列表
2230
+ # @type Domains: Array
2231
+
2232
+ attr_accessor :GatewayId, :Domains
2233
+
2234
+ def initialize(gatewayid=nil, domains=nil)
2235
+ @GatewayId = gatewayid
2236
+ @Domains = domains
2237
+ end
2238
+
2239
+ def deserialize(params)
2240
+ @GatewayId = params['GatewayId']
2241
+ @Domains = params['Domains']
2242
+ end
2243
+ end
2244
+
2245
+ # DeleteWafDomains返回参数结构体
2246
+ class DeleteWafDomainsResponse < TencentCloud::Common::AbstractModel
2247
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2248
+ # @type RequestId: String
2249
+
2250
+ attr_accessor :RequestId
2251
+
2252
+ def initialize(requestid=nil)
2253
+ @RequestId = requestid
2254
+ end
2255
+
2256
+ def deserialize(params)
2257
+ @RequestId = params['RequestId']
2258
+ end
2259
+ end
2260
+
2225
2261
  # DescribeCloudNativeAPIGatewayCanaryRules请求参数结构体
2226
2262
  class DescribeCloudNativeAPIGatewayCanaryRulesRequest < TencentCloud::Common::AbstractModel
2227
2263
  # @param GatewayId: 网关ID
@@ -3614,6 +3650,163 @@ module TencentCloud
3614
3650
  end
3615
3651
  end
3616
3652
 
3653
+ # DescribeWafDomains请求参数结构体
3654
+ class DescribeWafDomainsRequest < TencentCloud::Common::AbstractModel
3655
+ # @param GatewayId: 网关ID
3656
+ # @type GatewayId: String
3657
+
3658
+ attr_accessor :GatewayId
3659
+
3660
+ def initialize(gatewayid=nil)
3661
+ @GatewayId = gatewayid
3662
+ end
3663
+
3664
+ def deserialize(params)
3665
+ @GatewayId = params['GatewayId']
3666
+ end
3667
+ end
3668
+
3669
+ # DescribeWafDomains返回参数结构体
3670
+ class DescribeWafDomainsResponse < TencentCloud::Common::AbstractModel
3671
+ # @param Result: 已被 WAF 防护域名
3672
+ # 注意:此字段可能返回 null,表示取不到有效值。
3673
+ # @type Result: :class:`Tencentcloud::Tse.v20201207.models.DescribeWafDomainsResult`
3674
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3675
+ # @type RequestId: String
3676
+
3677
+ attr_accessor :Result, :RequestId
3678
+
3679
+ def initialize(result=nil, requestid=nil)
3680
+ @Result = result
3681
+ @RequestId = requestid
3682
+ end
3683
+
3684
+ def deserialize(params)
3685
+ unless params['Result'].nil?
3686
+ @Result = DescribeWafDomainsResult.new
3687
+ @Result.deserialize(params['Result'])
3688
+ end
3689
+ @RequestId = params['RequestId']
3690
+ end
3691
+ end
3692
+
3693
+ # 获取WAF保护域名列表
3694
+ class DescribeWafDomainsResult < TencentCloud::Common::AbstractModel
3695
+ # @param Domains: WAF防护域名列表
3696
+ # 注意:此字段可能返回 null,表示取不到有效值。
3697
+ # @type Domains: Array
3698
+
3699
+ attr_accessor :Domains
3700
+
3701
+ def initialize(domains=nil)
3702
+ @Domains = domains
3703
+ end
3704
+
3705
+ def deserialize(params)
3706
+ @Domains = params['Domains']
3707
+ end
3708
+ end
3709
+
3710
+ # DescribeWafProtection请求参数结构体
3711
+ class DescribeWafProtectionRequest < TencentCloud::Common::AbstractModel
3712
+ # @param GatewayId: 网关ID
3713
+ # @type GatewayId: String
3714
+ # @param Type: 防护资源的类型。
3715
+ # - Global 实例
3716
+ # - Service 服务
3717
+ # - Route 路由
3718
+ # - Object 对象
3719
+ # @type Type: String
3720
+ # @param TypeList: 防护资源类型列表,支持查询多个类型(Global、Service、Route、Object)。为空时,默认查询Global类型。
3721
+ # @type TypeList: Array
3722
+
3723
+ attr_accessor :GatewayId, :Type, :TypeList
3724
+ extend Gem::Deprecate
3725
+ deprecate :Type, :none, 2023, 11
3726
+ deprecate :Type=, :none, 2023, 11
3727
+
3728
+ def initialize(gatewayid=nil, type=nil, typelist=nil)
3729
+ @GatewayId = gatewayid
3730
+ @Type = type
3731
+ @TypeList = typelist
3732
+ end
3733
+
3734
+ def deserialize(params)
3735
+ @GatewayId = params['GatewayId']
3736
+ @Type = params['Type']
3737
+ @TypeList = params['TypeList']
3738
+ end
3739
+ end
3740
+
3741
+ # DescribeWafProtection返回参数结构体
3742
+ class DescribeWafProtectionResponse < TencentCloud::Common::AbstractModel
3743
+ # @param Result: 保护状态
3744
+ # @type Result: :class:`Tencentcloud::Tse.v20201207.models.DescribeWafProtectionResult`
3745
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3746
+ # @type RequestId: String
3747
+
3748
+ attr_accessor :Result, :RequestId
3749
+
3750
+ def initialize(result=nil, requestid=nil)
3751
+ @Result = result
3752
+ @RequestId = requestid
3753
+ end
3754
+
3755
+ def deserialize(params)
3756
+ unless params['Result'].nil?
3757
+ @Result = DescribeWafProtectionResult.new
3758
+ @Result.deserialize(params['Result'])
3759
+ end
3760
+ @RequestId = params['RequestId']
3761
+ end
3762
+ end
3763
+
3764
+ # 获取WAF保护资源状态
3765
+ class DescribeWafProtectionResult < TencentCloud::Common::AbstractModel
3766
+ # @param GlobalStatus: 全局防护状态
3767
+ # 注意:此字段可能返回 null,表示取不到有效值。
3768
+ # @type GlobalStatus: String
3769
+ # @param ServicesStatus: 服务防护状态
3770
+ # 注意:此字段可能返回 null,表示取不到有效值。
3771
+ # @type ServicesStatus: Array
3772
+ # @param RouteStatus: 路由防护状态
3773
+ # 注意:此字段可能返回 null,表示取不到有效值。
3774
+ # @type RouteStatus: Array
3775
+ # @param ObjectStatus: 对象防护状态
3776
+ # 注意:此字段可能返回 null,表示取不到有效值。
3777
+ # @type ObjectStatus: String
3778
+
3779
+ attr_accessor :GlobalStatus, :ServicesStatus, :RouteStatus, :ObjectStatus
3780
+
3781
+ def initialize(globalstatus=nil, servicesstatus=nil, routestatus=nil, objectstatus=nil)
3782
+ @GlobalStatus = globalstatus
3783
+ @ServicesStatus = servicesstatus
3784
+ @RouteStatus = routestatus
3785
+ @ObjectStatus = objectstatus
3786
+ end
3787
+
3788
+ def deserialize(params)
3789
+ @GlobalStatus = params['GlobalStatus']
3790
+ unless params['ServicesStatus'].nil?
3791
+ @ServicesStatus = []
3792
+ params['ServicesStatus'].each do |i|
3793
+ servicewafstatus_tmp = ServiceWafStatus.new
3794
+ servicewafstatus_tmp.deserialize(i)
3795
+ @ServicesStatus << servicewafstatus_tmp
3796
+ end
3797
+ end
3798
+ unless params['RouteStatus'].nil?
3799
+ @RouteStatus = []
3800
+ params['RouteStatus'].each do |i|
3801
+ routewafstatus_tmp = RouteWafStatus.new
3802
+ routewafstatus_tmp.deserialize(i)
3803
+ @RouteStatus << routewafstatus_tmp
3804
+ end
3805
+ end
3806
+ @ObjectStatus = params['ObjectStatus']
3807
+ end
3808
+ end
3809
+
3617
3810
  # DescribeZookeeperReplicas请求参数结构体
3618
3811
  class DescribeZookeeperReplicasRequest < TencentCloud::Common::AbstractModel
3619
3812
  # @param InstanceId: 注册引擎实例ID
@@ -5719,6 +5912,58 @@ module TencentCloud
5719
5912
  end
5720
5913
  end
5721
5914
 
5915
+ # 路由 WAF 状态
5916
+ class RouteWafStatus < TencentCloud::Common::AbstractModel
5917
+ # @param Name: 路由的名字
5918
+ # 注意:此字段可能返回 null,表示取不到有效值。
5919
+ # @type Name: String
5920
+ # @param Id: 路由的 ID
5921
+ # 注意:此字段可能返回 null,表示取不到有效值。
5922
+ # @type Id: String
5923
+ # @param Status: 路由是否开启 WAF 防护
5924
+ # 注意:此字段可能返回 null,表示取不到有效值。
5925
+ # @type Status: String
5926
+ # @param Methods: 方法
5927
+ # 注意:此字段可能返回 null,表示取不到有效值。
5928
+ # @type Methods: Array
5929
+ # @param Paths: 路径
5930
+ # 注意:此字段可能返回 null,表示取不到有效值。
5931
+ # @type Paths: Array
5932
+ # @param Hosts: 域名
5933
+ # 注意:此字段可能返回 null,表示取不到有效值。
5934
+ # @type Hosts: Array
5935
+ # @param ServiceName: 路由对应服务的名字
5936
+ # 注意:此字段可能返回 null,表示取不到有效值。
5937
+ # @type ServiceName: String
5938
+ # @param ServiceId: 路由对应服务的ID
5939
+ # 注意:此字段可能返回 null,表示取不到有效值。
5940
+ # @type ServiceId: String
5941
+
5942
+ attr_accessor :Name, :Id, :Status, :Methods, :Paths, :Hosts, :ServiceName, :ServiceId
5943
+
5944
+ def initialize(name=nil, id=nil, status=nil, methods=nil, paths=nil, hosts=nil, servicename=nil, serviceid=nil)
5945
+ @Name = name
5946
+ @Id = id
5947
+ @Status = status
5948
+ @Methods = methods
5949
+ @Paths = paths
5950
+ @Hosts = hosts
5951
+ @ServiceName = servicename
5952
+ @ServiceId = serviceid
5953
+ end
5954
+
5955
+ def deserialize(params)
5956
+ @Name = params['Name']
5957
+ @Id = params['Id']
5958
+ @Status = params['Status']
5959
+ @Methods = params['Methods']
5960
+ @Paths = params['Paths']
5961
+ @Hosts = params['Hosts']
5962
+ @ServiceName = params['ServiceName']
5963
+ @ServiceId = params['ServiceId']
5964
+ end
5965
+ end
5966
+
5722
5967
  # 微服务注册引擎实例
5723
5968
  class SREInstance < TencentCloud::Common::AbstractModel
5724
5969
  # @param InstanceId: 实例ID
@@ -6019,6 +6264,38 @@ module TencentCloud
6019
6264
  end
6020
6265
  end
6021
6266
 
6267
+ # 服务的 WAF 状态
6268
+ class ServiceWafStatus < TencentCloud::Common::AbstractModel
6269
+ # @param Name: 服务的名字
6270
+ # 注意:此字段可能返回 null,表示取不到有效值。
6271
+ # @type Name: String
6272
+ # @param Id: 服务的 ID
6273
+ # 注意:此字段可能返回 null,表示取不到有效值。
6274
+ # @type Id: String
6275
+ # @param Type: 服务的类型
6276
+ # 注意:此字段可能返回 null,表示取不到有效值。
6277
+ # @type Type: String
6278
+ # @param Status: 服务是否开启 WAF 防护
6279
+ # 注意:此字段可能返回 null,表示取不到有效值。
6280
+ # @type Status: String
6281
+
6282
+ attr_accessor :Name, :Id, :Type, :Status
6283
+
6284
+ def initialize(name=nil, id=nil, type=nil, status=nil)
6285
+ @Name = name
6286
+ @Id = id
6287
+ @Type = type
6288
+ @Status = status
6289
+ end
6290
+
6291
+ def deserialize(params)
6292
+ @Name = params['Name']
6293
+ @Id = params['Id']
6294
+ @Type = params['Type']
6295
+ @Status = params['Status']
6296
+ end
6297
+ end
6298
+
6022
6299
  # 存储的额外选项
6023
6300
  class StorageOption < TencentCloud::Common::AbstractModel
6024
6301
  # @param Name: 存储对象,分为snap和txn两种
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.709
4
+ version: 3.0.711
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-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-tse.rb
37
- - lib/v20201207/models.rb
38
36
  - lib/v20201207/client.rb
37
+ - lib/v20201207/models.rb
38
+ - lib/tencentcloud-sdk-tse.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: