tencentcloud-sdk-waf 3.0.544 → 3.0.545

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: 6211f5b0a1a68d107b7e5ff0b7d62744d7bb1b02
4
- data.tar.gz: 0284eadaf52ac082aaf19b40b2cd32f9c79d9e69
3
+ metadata.gz: 7486a22e89e9407d0873bd0fdd57e285e64ef99d
4
+ data.tar.gz: bbed9cc1d2da13ebb9e81f7c2754f8278c896afb
5
5
  SHA512:
6
- metadata.gz: cb4cd8a9cd4c1c6c6889cffefa89926f5e9b58d8dd2e40863b67c9451ca2f5475ce34f42e56352197a6485cb4b77101afe74ec39314cafb2d71c54516d19bc1a
7
- data.tar.gz: 107d8bf97483ee289376704bf6666f733d78313f183b5fd4ea6be55e0921f6d78f17d38d3997ce93d048d9c368cafcd4c3105ca5611b71cec983059a82cca6f8
6
+ metadata.gz: 1e3ac23ef1004620054388fd2a4e566954ebdaeacefbd412cc4015a1ab3e98b31ce618d0a625138fee5300ca884c2e6b7f70bde0ffa09c58f351a29fd6b144d8
7
+ data.tar.gz: 4e95fe96f955654e898ee537ccf7e44c54bee2d7da50b2307cefd988c4f8df4a1a4bb2984b4309dc42fb62a3984f8ada92a420b146335c726a728ade4dbecb2d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.544
1
+ 3.0.545
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # clb-waf中添加防护的域名
129
+
130
+ # @param request: Request instance for CreateHost.
131
+ # @type request: :class:`Tencentcloud::waf::V20180125::CreateHostRequest`
132
+ # @rtype: :class:`Tencentcloud::waf::V20180125::CreateHostResponse`
133
+ def CreateHost(request)
134
+ body = send_request('CreateHost', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateHostResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
128
152
  # 本接口用于删除访问日志导出
129
153
 
130
154
  # @param request: Request instance for DeleteAccessExport.
@@ -878,6 +878,49 @@ module TencentCloud
878
878
  end
879
879
  end
880
880
 
881
+ # CreateHost请求参数结构体
882
+ class CreateHostRequest < TencentCloud::Common::AbstractModel
883
+ # @param Host: 防护域名配置信息
884
+ # @type Host: :class:`Tencentcloud::Waf.v20180125.models.HostRecord`
885
+ # @param InstanceID: 实例id
886
+ # @type InstanceID: String
887
+
888
+ attr_accessor :Host, :InstanceID
889
+
890
+ def initialize(host=nil, instanceid=nil)
891
+ @Host = host
892
+ @InstanceID = instanceid
893
+ end
894
+
895
+ def deserialize(params)
896
+ unless params['Host'].nil?
897
+ @Host = HostRecord.new
898
+ @Host.deserialize(params['Host'])
899
+ end
900
+ @InstanceID = params['InstanceID']
901
+ end
902
+ end
903
+
904
+ # CreateHost返回参数结构体
905
+ class CreateHostResponse < TencentCloud::Common::AbstractModel
906
+ # @param DomainId: 新增防护域名ID
907
+ # @type DomainId: String
908
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
909
+ # @type RequestId: String
910
+
911
+ attr_accessor :DomainId, :RequestId
912
+
913
+ def initialize(domainid=nil, requestid=nil)
914
+ @DomainId = domainid
915
+ @RequestId = requestid
916
+ end
917
+
918
+ def deserialize(params)
919
+ @DomainId = params['DomainId']
920
+ @RequestId = params['RequestId']
921
+ end
922
+ end
923
+
881
924
  # DeleteAccessExport请求参数结构体
882
925
  class DeleteAccessExportRequest < TencentCloud::Common::AbstractModel
883
926
  # @param ExportId: 日志导出ID
@@ -2836,6 +2879,92 @@ module TencentCloud
2836
2879
  end
2837
2880
  end
2838
2881
 
2882
+ # clb-waf防护域名
2883
+ class HostRecord < TencentCloud::Common::AbstractModel
2884
+ # @param Domain: 域名
2885
+ # @type Domain: String
2886
+ # @param DomainId: 域名ID
2887
+ # @type DomainId: String
2888
+ # @param MainDomain: 主域名,入参时为空
2889
+ # @type MainDomain: String
2890
+ # @param Mode: waf模式,同saas waf保持一致
2891
+ # @type Mode: Integer
2892
+ # @param Status: waf和LD的绑定,0:没有绑定,1:绑定
2893
+ # @type Status: Integer
2894
+ # @param State: 域名状态,0:正常,1:未检测到流量,2:即将过期,3:过期
2895
+ # @type State: Integer
2896
+ # @param Engine: 使用的规则,同saas waf保持一致
2897
+ # @type Engine: Integer
2898
+ # @param IsCdn: 是否开启代理,0:不开启,1:开启
2899
+ # @type IsCdn: Integer
2900
+ # @param LoadBalancerSet: 绑定的LB列表
2901
+ # @type LoadBalancerSet: Array
2902
+ # @param Region: 域名绑定的LB的地域,以,分割多个地域
2903
+ # @type Region: String
2904
+ # @param Edition: 产品分类,取值为:sparta-waf、clb-waf、cdn-waf
2905
+ # @type Edition: String
2906
+ # @param FlowMode: WAF的流量模式,1:清洗模式,0:镜像模式
2907
+ # @type FlowMode: Integer
2908
+ # @param ClsStatus: 是否开启访问日志,1:开启,0:关闭
2909
+ # @type ClsStatus: Integer
2910
+ # @param Level: 防护等级,可选值100,200,300
2911
+ # 注意:此字段可能返回 null,表示取不到有效值。
2912
+ # @type Level: Integer
2913
+ # @param CdcClusters: 域名需要下发到的cdc集群列表
2914
+ # 注意:此字段可能返回 null,表示取不到有效值。
2915
+ # @type CdcClusters: Array
2916
+ # @param AlbType: 应用型负载均衡类型: clb或者apisix,默认clb
2917
+ # 注意:此字段可能返回 null,表示取不到有效值。
2918
+ # @type AlbType: String
2919
+
2920
+ attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType
2921
+
2922
+ 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)
2923
+ @Domain = domain
2924
+ @DomainId = domainid
2925
+ @MainDomain = maindomain
2926
+ @Mode = mode
2927
+ @Status = status
2928
+ @State = state
2929
+ @Engine = engine
2930
+ @IsCdn = iscdn
2931
+ @LoadBalancerSet = loadbalancerset
2932
+ @Region = region
2933
+ @Edition = edition
2934
+ @FlowMode = flowmode
2935
+ @ClsStatus = clsstatus
2936
+ @Level = level
2937
+ @CdcClusters = cdcclusters
2938
+ @AlbType = albtype
2939
+ end
2940
+
2941
+ def deserialize(params)
2942
+ @Domain = params['Domain']
2943
+ @DomainId = params['DomainId']
2944
+ @MainDomain = params['MainDomain']
2945
+ @Mode = params['Mode']
2946
+ @Status = params['Status']
2947
+ @State = params['State']
2948
+ @Engine = params['Engine']
2949
+ @IsCdn = params['IsCdn']
2950
+ unless params['LoadBalancerSet'].nil?
2951
+ @LoadBalancerSet = []
2952
+ params['LoadBalancerSet'].each do |i|
2953
+ loadbalancer_tmp = LoadBalancer.new
2954
+ loadbalancer_tmp.deserialize(i)
2955
+ @LoadBalancerSet << loadbalancer_tmp
2956
+ end
2957
+ end
2958
+ @Region = params['Region']
2959
+ @Edition = params['Edition']
2960
+ @FlowMode = params['FlowMode']
2961
+ @ClsStatus = params['ClsStatus']
2962
+ @Level = params['Level']
2963
+ @CdcClusters = params['CdcClusters']
2964
+ @AlbType = params['AlbType']
2965
+ end
2966
+ end
2967
+
2839
2968
  # 一个实例的详细信息
2840
2969
  class InstanceInfo < TencentCloud::Common::AbstractModel
2841
2970
  # @param InstanceId: id
@@ -3097,6 +3226,64 @@ module TencentCloud
3097
3226
  end
3098
3227
  end
3099
3228
 
3229
+ # 负载均衡的监听器
3230
+ class LoadBalancer < TencentCloud::Common::AbstractModel
3231
+ # @param LoadBalancerId: 负载均衡LD的ID
3232
+ # @type LoadBalancerId: String
3233
+ # @param LoadBalancerName: 负载均衡LD的名称
3234
+ # @type LoadBalancerName: String
3235
+ # @param ListenerId: 负载均衡监听器的ID
3236
+ # @type ListenerId: String
3237
+ # @param ListenerName: 负载均衡监听器的名称
3238
+ # @type ListenerName: String
3239
+ # @param Vip: 负载均衡实例的IP
3240
+ # @type Vip: String
3241
+ # @param Vport: 负载均衡实例的端口
3242
+ # @type Vport: Integer
3243
+ # @param Region: 负载均衡LD的地域
3244
+ # @type Region: String
3245
+ # @param Protocol: 监听器协议,http、https
3246
+ # @type Protocol: String
3247
+ # @param Zone: 负载均衡监听器所在的zone
3248
+ # @type Zone: String
3249
+ # @param NumericalVpcId: 负载均衡的VPCID,公网为-1,内网按实际填写
3250
+ # 注意:此字段可能返回 null,表示取不到有效值。
3251
+ # @type NumericalVpcId: Integer
3252
+ # @param LoadBalancerType: 负载均衡的网络类型
3253
+ # 注意:此字段可能返回 null,表示取不到有效值。
3254
+ # @type LoadBalancerType: String
3255
+
3256
+ attr_accessor :LoadBalancerId, :LoadBalancerName, :ListenerId, :ListenerName, :Vip, :Vport, :Region, :Protocol, :Zone, :NumericalVpcId, :LoadBalancerType
3257
+
3258
+ def initialize(loadbalancerid=nil, loadbalancername=nil, listenerid=nil, listenername=nil, vip=nil, vport=nil, region=nil, protocol=nil, zone=nil, numericalvpcid=nil, loadbalancertype=nil)
3259
+ @LoadBalancerId = loadbalancerid
3260
+ @LoadBalancerName = loadbalancername
3261
+ @ListenerId = listenerid
3262
+ @ListenerName = listenername
3263
+ @Vip = vip
3264
+ @Vport = vport
3265
+ @Region = region
3266
+ @Protocol = protocol
3267
+ @Zone = zone
3268
+ @NumericalVpcId = numericalvpcid
3269
+ @LoadBalancerType = loadbalancertype
3270
+ end
3271
+
3272
+ def deserialize(params)
3273
+ @LoadBalancerId = params['LoadBalancerId']
3274
+ @LoadBalancerName = params['LoadBalancerName']
3275
+ @ListenerId = params['ListenerId']
3276
+ @ListenerName = params['ListenerName']
3277
+ @Vip = params['Vip']
3278
+ @Vport = params['Vport']
3279
+ @Region = params['Region']
3280
+ @Protocol = params['Protocol']
3281
+ @Zone = params['Zone']
3282
+ @NumericalVpcId = params['NumericalVpcId']
3283
+ @LoadBalancerType = params['LoadBalancerType']
3284
+ end
3285
+ end
3286
+
3100
3287
  # 负载均衡算法
3101
3288
  class LoadBalancerPackageNew < TencentCloud::Common::AbstractModel
3102
3289
  # @param ListenerId: 监听id
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.544
4
+ version: 3.0.545
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-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common