tencentcloud-sdk-waf 3.0.656 → 3.0.658

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: 898d33a8bca87da23dacd05313bf5ec244f67be3
4
- data.tar.gz: dbbca28ca05d2c28b1160a20621f9281d410f9a2
3
+ metadata.gz: b0d79a2dce152a4877814ac3ce6e0bcaf624b943
4
+ data.tar.gz: cb0e2d85af7a4806eb47b54c5a936dd9424665c3
5
5
  SHA512:
6
- metadata.gz: 0943d26e5b0c4b0089466d45ba24262658084af96f05bb3acd5441a7bc183cb3626440082043e9d623cdc1194e60728a25ec2b4dccc62278edeadb0a1b8e6120
7
- data.tar.gz: 106ce7bc291199c2e49f0a7f2859a042e2fce3807abe2c32e8ec861033d3d42b86962390442435b842a36510bb277df6221500422f3ec1ec06dfa57a18f9309d
6
+ metadata.gz: 56e1c350d3ec1661cbd07a05249d74067a221e3cc8c0f03002b4caed41785f68914ba67248f878b15882018b7cc3c34ac3a0febe3a35148927a69032d483407a
7
+ data.tar.gz: d103f74697b895386b649486deab146fb741c35b3b4e51e5d3ee00e52df8154391a7762837459375a34425d16985f90c9d7ca30040ecda8c482fd03c48c5323d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.656
1
+ 3.0.658
@@ -1330,6 +1330,30 @@ module TencentCloud
1330
1330
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1331
1331
  end
1332
1332
 
1333
+ # 获取非标端口列表
1334
+
1335
+ # @param request: Request instance for DescribePorts.
1336
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribePortsRequest`
1337
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribePortsResponse`
1338
+ def DescribePorts(request)
1339
+ body = send_request('DescribePorts', request.serialize)
1340
+ response = JSON.parse(body)
1341
+ if response['Response'].key?('Error') == false
1342
+ model = DescribePortsResponse.new
1343
+ model.deserialize(response['Response'])
1344
+ model
1345
+ else
1346
+ code = response['Response']['Error']['Code']
1347
+ message = response['Response']['Error']['Message']
1348
+ reqid = response['Response']['RequestId']
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1350
+ end
1351
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1352
+ raise e
1353
+ rescue StandardError => e
1354
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1355
+ end
1356
+
1333
1357
  # 获取各个模块具体的规格限制
1334
1358
 
1335
1359
  # @param request: Request instance for DescribeRuleLimit.
@@ -4161,6 +4161,50 @@ module TencentCloud
4161
4161
  end
4162
4162
  end
4163
4163
 
4164
+ # DescribePorts请求参数结构体
4165
+ class DescribePortsRequest < TencentCloud::Common::AbstractModel
4166
+ # @param Edition: 版本
4167
+ # @type Edition: String
4168
+ # @param InstanceID: 实例ID
4169
+ # @type InstanceID: String
4170
+
4171
+ attr_accessor :Edition, :InstanceID
4172
+
4173
+ def initialize(edition=nil, instanceid=nil)
4174
+ @Edition = edition
4175
+ @InstanceID = instanceid
4176
+ end
4177
+
4178
+ def deserialize(params)
4179
+ @Edition = params['Edition']
4180
+ @InstanceID = params['InstanceID']
4181
+ end
4182
+ end
4183
+
4184
+ # DescribePorts返回参数结构体
4185
+ class DescribePortsResponse < TencentCloud::Common::AbstractModel
4186
+ # @param HttpPorts: http端口列表
4187
+ # @type HttpPorts: Array
4188
+ # @param HttpsPorts: https端口列表
4189
+ # @type HttpsPorts: Array
4190
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4191
+ # @type RequestId: String
4192
+
4193
+ attr_accessor :HttpPorts, :HttpsPorts, :RequestId
4194
+
4195
+ def initialize(httpports=nil, httpsports=nil, requestid=nil)
4196
+ @HttpPorts = httpports
4197
+ @HttpsPorts = httpsports
4198
+ @RequestId = requestid
4199
+ end
4200
+
4201
+ def deserialize(params)
4202
+ @HttpPorts = params['HttpPorts']
4203
+ @HttpsPorts = params['HttpsPorts']
4204
+ @RequestId = params['RequestId']
4205
+ end
4206
+ end
4207
+
4164
4208
  # DescribeRuleLimit请求参数结构体
4165
4209
  class DescribeRuleLimitRequest < TencentCloud::Common::AbstractModel
4166
4210
  # @param Domain: 域名
@@ -7995,15 +8039,64 @@ module TencentCloud
7995
8039
  # 自定义规则的匹配条件结构体
7996
8040
  class Strategy < TencentCloud::Common::AbstractModel
7997
8041
  # @param Field: 匹配字段
8042
+
8043
+ # 有以下枚举值:
8044
+ # IP-来源IP
8045
+ # IPV6-来源IPv6
8046
+ # Referer-Referer
8047
+ # URL-请求路径
8048
+ # UserAgent-UserAgent
8049
+ # HTTP_METHOD-HTTP请求方法
8050
+ # QUERY_STRING-请求字符串
8051
+ # GET-GET参数值
8052
+ # GET_PARAMS_NAMES-GET参数名
8053
+ # POST-POST参数值
8054
+ # GET_POST_NAMES-POST参数名
8055
+ # POST_BODY-完整BODY
8056
+ # COOKIE-Cookie
8057
+ # GET_COOKIES_NAMES-Cookie参数名
8058
+ # ARGS_COOKIE-Cookie参数值
8059
+ # GET_HEADERS_NAMES-Header参数名
8060
+ # ARGS_HEADER-Header参数值
8061
+
7998
8062
  # 注意:此字段可能返回 null,表示取不到有效值。
7999
8063
  # @type Field: String
8000
8064
  # @param CompareFunc: 逻辑符号
8065
+
8066
+ # 有以下枚举值:
8067
+ # empty - 内容为空
8068
+ # null - 不存在
8069
+ # eq - 等于
8070
+ # neq - 不等于
8071
+ # contains - 包含
8072
+ # ncontains - 不包含
8073
+ # strprefix - 前缀匹配
8074
+ # strsuffix - 后缀匹配
8075
+ # len_eq - 长度等于
8076
+ # len_gt - 长度大于
8077
+ # len_lt - 长度小于
8078
+ # ipmatch - 属于
8079
+ # ipnmatch - 不属于
8080
+
8001
8081
  # 注意:此字段可能返回 null,表示取不到有效值。
8002
8082
  # @type CompareFunc: String
8003
8083
  # @param Content: 匹配内容
8084
+
8085
+ # 目前 只有匹配字段为COOKIE-Cookie时,才不需要输入 匹配内容
8086
+ # 其他都需要
8087
+
8088
+
8004
8089
  # 注意:此字段可能返回 null,表示取不到有效值。
8005
8090
  # @type Content: String
8006
8091
  # @param Arg: 匹配参数
8092
+
8093
+ # 目前 只有匹配字段为以下4个时,匹配参数才能选择,否则置灰无法选择
8094
+
8095
+ # GET-GET参数值
8096
+ # POST-POST参数值
8097
+ # ARGS_COOKIE-Cookie参数值
8098
+ # ARGS_HEADER-Header参数值
8099
+
8007
8100
  # 注意:此字段可能返回 null,表示取不到有效值。
8008
8101
  # @type Arg: String
8009
8102
 
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.656
4
+ version: 3.0.658
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-11 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common