tencentcloud-sdk-python-waf 3.0.977__tar.gz → 3.0.979__tar.gz

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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/setup.py +1 -1
  3. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud/waf/v20180125/models.py +122 -1
  5. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud/waf/v20180125/waf_client.py +23 -0
  6. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-waf-3.0.979/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-waf-3.0.977/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/README.rst +0 -0
  10. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud/waf/__init__.py +0 -0
  12. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud/waf/v20180125/__init__.py +0 -0
  13. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-waf-3.0.977 → tencentcloud-sdk-python-waf-3.0.979}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.977
3
+ Version: 3.0.979
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-waf',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.977"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.979"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Waf SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.977'
17
+ __version__ = '3.0.979'
@@ -8963,6 +8963,100 @@ class DescribePolicyStatusResponse(AbstractModel):
8963
8963
  self._RequestId = params.get("RequestId")
8964
8964
 
8965
8965
 
8966
+ class DescribePortsRequest(AbstractModel):
8967
+ """DescribePorts请求参数结构体
8968
+
8969
+ """
8970
+
8971
+ def __init__(self):
8972
+ r"""
8973
+ :param _Edition: 版本
8974
+ :type Edition: str
8975
+ :param _InstanceID: 实例ID
8976
+ :type InstanceID: str
8977
+ """
8978
+ self._Edition = None
8979
+ self._InstanceID = None
8980
+
8981
+ @property
8982
+ def Edition(self):
8983
+ return self._Edition
8984
+
8985
+ @Edition.setter
8986
+ def Edition(self, Edition):
8987
+ self._Edition = Edition
8988
+
8989
+ @property
8990
+ def InstanceID(self):
8991
+ return self._InstanceID
8992
+
8993
+ @InstanceID.setter
8994
+ def InstanceID(self, InstanceID):
8995
+ self._InstanceID = InstanceID
8996
+
8997
+
8998
+ def _deserialize(self, params):
8999
+ self._Edition = params.get("Edition")
9000
+ self._InstanceID = params.get("InstanceID")
9001
+ memeber_set = set(params.keys())
9002
+ for name, value in vars(self).items():
9003
+ property_name = name[1:]
9004
+ if property_name in memeber_set:
9005
+ memeber_set.remove(property_name)
9006
+ if len(memeber_set) > 0:
9007
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9008
+
9009
+
9010
+
9011
+ class DescribePortsResponse(AbstractModel):
9012
+ """DescribePorts返回参数结构体
9013
+
9014
+ """
9015
+
9016
+ def __init__(self):
9017
+ r"""
9018
+ :param _HttpPorts: http端口列表
9019
+ :type HttpPorts: list of str
9020
+ :param _HttpsPorts: https端口列表
9021
+ :type HttpsPorts: list of str
9022
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9023
+ :type RequestId: str
9024
+ """
9025
+ self._HttpPorts = None
9026
+ self._HttpsPorts = None
9027
+ self._RequestId = None
9028
+
9029
+ @property
9030
+ def HttpPorts(self):
9031
+ return self._HttpPorts
9032
+
9033
+ @HttpPorts.setter
9034
+ def HttpPorts(self, HttpPorts):
9035
+ self._HttpPorts = HttpPorts
9036
+
9037
+ @property
9038
+ def HttpsPorts(self):
9039
+ return self._HttpsPorts
9040
+
9041
+ @HttpsPorts.setter
9042
+ def HttpsPorts(self, HttpsPorts):
9043
+ self._HttpsPorts = HttpsPorts
9044
+
9045
+ @property
9046
+ def RequestId(self):
9047
+ return self._RequestId
9048
+
9049
+ @RequestId.setter
9050
+ def RequestId(self, RequestId):
9051
+ self._RequestId = RequestId
9052
+
9053
+
9054
+ def _deserialize(self, params):
9055
+ self._HttpPorts = params.get("HttpPorts")
9056
+ self._HttpsPorts = params.get("HttpsPorts")
9057
+ self._RequestId = params.get("RequestId")
9058
+
9059
+
8966
9060
  class DescribeRuleLimitRequest(AbstractModel):
8967
9061
  """DescribeRuleLimit请求参数结构体
8968
9062
 
@@ -17496,15 +17590,42 @@ class Strategy(AbstractModel):
17496
17590
  def __init__(self):
17497
17591
  r"""
17498
17592
  :param _Field: 匹配字段
17593
+
17594
+ 有以下枚举值:
17595
+ IP-来源IP IPV6-来源IPv6 Referer-Referer URL-请求路径
17596
+ UserAgent-UserAgent HTTP_METHOD-HTTP请求方法 QUERY_STRING-请求字符串 GET-GET参数值 GET_PARAMS_NAMES-GET参数名 POST-POST参数值 GET_POST_NAMES-POST参数名 POST_BODY-完整BODY COOKIE-Cookie GET_COOKIES_NAMES-Cookie参数名 ARGS_COOKIE-Cookie参数值 GET_HEADERS_NAMES-Header参数名 ARGS_HEADER-Header参数值
17499
17597
  注意:此字段可能返回 null,表示取不到有效值。
17500
17598
  :type Field: str
17501
- :param _CompareFunc: 逻辑符号
17599
+ :param _CompareFunc: 逻辑符号
17600
+
17601
+ 有以下枚举值:
17602
+ empty - 内容为空
17603
+ null - 不存在
17604
+ eq - 等于
17605
+ neq - 不等于
17606
+ contains - 包含
17607
+ ncontains - 不包含
17608
+ strprefix - 前缀匹配
17609
+ strsuffix - 后缀匹配
17610
+ len_eq - 长度等于
17611
+ len_gt - 长度大于
17612
+ len_lt - 长度小于
17613
+ ipmatch - 属于
17614
+ ipnmatch - 不属于
17502
17615
  注意:此字段可能返回 null,表示取不到有效值。
17503
17616
  :type CompareFunc: str
17504
17617
  :param _Content: 匹配内容
17618
+
17619
+ 目前 只有匹配字段为COOKIE-Cookie时,才不需要输入 匹配内容 其他都需要
17620
+
17621
+
17505
17622
  注意:此字段可能返回 null,表示取不到有效值。
17506
17623
  :type Content: str
17507
17624
  :param _Arg: 匹配参数
17625
+
17626
+ 目前 只有匹配字段为以下4个时,匹配参数才能选择,否则置灰无法选择
17627
+
17628
+ GET-GET参数值 POST-POST参数值 ARGS_COOKIE-Cookie参数值 ARGS_HEADER-Header参数值
17508
17629
  注意:此字段可能返回 null,表示取不到有效值。
17509
17630
  :type Arg: str
17510
17631
  """
@@ -1273,6 +1273,29 @@ class WafClient(AbstractClient):
1273
1273
  raise TencentCloudSDKException(type(e).__name__, str(e))
1274
1274
 
1275
1275
 
1276
+ def DescribePorts(self, request):
1277
+ """获取非标端口列表
1278
+
1279
+ :param request: Request instance for DescribePorts.
1280
+ :type request: :class:`tencentcloud.waf.v20180125.models.DescribePortsRequest`
1281
+ :rtype: :class:`tencentcloud.waf.v20180125.models.DescribePortsResponse`
1282
+
1283
+ """
1284
+ try:
1285
+ params = request._serialize()
1286
+ headers = request.headers
1287
+ body = self.call("DescribePorts", params, headers=headers)
1288
+ response = json.loads(body)
1289
+ model = models.DescribePortsResponse()
1290
+ model._deserialize(response["Response"])
1291
+ return model
1292
+ except Exception as e:
1293
+ if isinstance(e, TencentCloudSDKException):
1294
+ raise
1295
+ else:
1296
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1297
+
1298
+
1276
1299
  def DescribeRuleLimit(self, request):
1277
1300
  """获取各个模块具体的规格限制
1278
1301
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.977
3
+ Version: 3.0.979
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.979
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.977