tencentcloud-sdk-python 3.1.87__py2.py3-none-any.whl → 3.1.89__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/antiddos/v20250903/__init__.py +0 -0
- tencentcloud/antiddos/v20250903/antiddos_client.py +72 -0
- tencentcloud/antiddos/v20250903/antiddos_client_async.py +62 -0
- tencentcloud/antiddos/v20250903/errorcodes.py +21 -0
- tencentcloud/antiddos/v20250903/models.py +461 -0
- tencentcloud/apis/v20240801/models.py +250 -0
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdwch/v20200915/models.py +24 -46
- tencentcloud/cfw/v20190904/models.py +35 -20
- tencentcloud/cvm/v20170312/cvm_client.py +29 -0
- tencentcloud/cvm/v20170312/cvm_client_async.py +24 -0
- tencentcloud/cvm/v20170312/errorcodes.py +6 -0
- tencentcloud/cvm/v20170312/models.py +79 -0
- tencentcloud/cynosdb/v20190107/models.py +247 -128
- tencentcloud/dataagent/v20250513/models.py +145 -68
- tencentcloud/dts/v20211206/models.py +24 -24
- tencentcloud/emr/v20190103/emr_client.py +92 -0
- tencentcloud/emr/v20190103/emr_client_async.py +72 -0
- tencentcloud/emr/v20190103/errorcodes.py +3 -0
- tencentcloud/emr/v20190103/models.py +2384 -0
- tencentcloud/es/v20180416/models.py +44 -44
- tencentcloud/ess/v20201111/ess_client.py +46 -0
- tencentcloud/ess/v20201111/ess_client_async.py +36 -0
- tencentcloud/ess/v20201111/models.py +553 -0
- tencentcloud/essbasic/v20210526/errorcodes.py +3 -0
- tencentcloud/ioa/v20220601/errorcodes.py +42 -0
- tencentcloud/ioa/v20220601/ioa_client.py +230 -0
- tencentcloud/ioa/v20220601/ioa_client_async.py +180 -0
- tencentcloud/ioa/v20220601/models.py +5726 -2718
- tencentcloud/iotexplorer/v20190423/models.py +42 -4
- tencentcloud/mps/v20190612/models.py +299 -4
- tencentcloud/ocr/v20181119/models.py +879 -388
- tencentcloud/ocr/v20181119/ocr_client.py +46 -50
- tencentcloud/ocr/v20181119/ocr_client_async.py +36 -40
- tencentcloud/organization/v20210331/models.py +79 -0
- tencentcloud/organization/v20210331/organization_client.py +23 -0
- tencentcloud/organization/v20210331/organization_client_async.py +18 -0
- tencentcloud/postgres/v20170312/models.py +27 -37
- tencentcloud/tcr/v20190924/models.py +63 -18
- tencentcloud/tcss/v20201101/models.py +81 -66
- tencentcloud/teo/v20220901/models.py +6 -6
- tencentcloud/tione/v20211111/models.py +1218 -35
- tencentcloud/tione/v20211111/tione_client.py +46 -0
- tencentcloud/tione/v20211111/tione_client_async.py +36 -0
- tencentcloud/vod/v20180717/models.py +73 -68
- tencentcloud/waf/v20180125/waf_client.py +1 -1
- tencentcloud/waf/v20180125/waf_client_async.py +1 -1
- tencentcloud/wimgs/v20251106/models.py +6 -26
- {tencentcloud_sdk_python-3.1.87.dist-info → tencentcloud_sdk_python-3.1.89.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.1.87.dist-info → tencentcloud_sdk_python-3.1.89.dist-info}/RECORD +54 -49
- {tencentcloud_sdk_python-3.1.87.dist-info → tencentcloud_sdk_python-3.1.89.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.1.87.dist-info → tencentcloud_sdk_python-3.1.89.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.1.87.dist-info → tencentcloud_sdk_python-3.1.89.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.antiddos.v20250903 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AntiddosClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2025-09-03'
|
|
25
|
+
_endpoint = 'antiddos.tencentcloudapi.com'
|
|
26
|
+
_service = 'antiddos'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeDDoSBlockRecords(self, request):
|
|
30
|
+
r"""查询封堵解封记录和解封配额信息。
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeDDoSBlockRecords.
|
|
33
|
+
:type request: :class:`tencentcloud.antiddos.v20250903.models.DescribeDDoSBlockRecordsRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.antiddos.v20250903.models.DescribeDDoSBlockRecordsResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeDDoSBlockRecords", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeDDoSBlockRecordsResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def UnblockResources(self, request):
|
|
53
|
+
r"""申请解封资源,可通过 DescribeDDoSBlockRecords 接口获取资源的封堵解封状态。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for UnblockResources.
|
|
56
|
+
:type request: :class:`tencentcloud.antiddos.v20250903.models.UnblockResourcesRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.antiddos.v20250903.models.UnblockResourcesResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("UnblockResources", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.UnblockResourcesResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.antiddos.v20250903 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AntiddosClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2025-09-03'
|
|
25
|
+
_endpoint = 'antiddos.tencentcloudapi.com'
|
|
26
|
+
_service = 'antiddos'
|
|
27
|
+
|
|
28
|
+
async def DescribeDDoSBlockRecords(
|
|
29
|
+
self,
|
|
30
|
+
request: models.DescribeDDoSBlockRecordsRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.DescribeDDoSBlockRecordsResponse:
|
|
33
|
+
"""
|
|
34
|
+
查询封堵解封记录和解封配额信息。
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "DescribeDDoSBlockRecords"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.DescribeDDoSBlockRecordsResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def UnblockResources(
|
|
47
|
+
self,
|
|
48
|
+
request: models.UnblockResourcesRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.UnblockResourcesResponse:
|
|
51
|
+
"""
|
|
52
|
+
申请解封资源,可通过 DescribeDDoSBlockRecords 接口获取资源的封堵解封状态。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "UnblockResources"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.UnblockResourcesResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 操作失败。
|
|
18
|
+
FAILEDOPERATION = 'FailedOperation'
|
|
19
|
+
|
|
20
|
+
# 超过配额限制。
|
|
21
|
+
LIMITEXCEEDED = 'LimitExceeded'
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class DDoSBlockRecord(AbstractModel):
|
|
22
|
+
r"""封堵记录
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Resource: <p>被封堵的资源,公网 IP,示例如下:</p><ul><li> 公网 IP:117.175.94.231。</li></ul>
|
|
29
|
+
:type Resource: str
|
|
30
|
+
:param _BlockTime: <p>被封堵的时间。</p>
|
|
31
|
+
:type BlockTime: str
|
|
32
|
+
:param _Status: <p>封堵解封状态。</p><p>枚举值:</p><ul><li>Blocked:已封堵;</li><li>Unblocking:解封中;</li><li>Unblocked:已解封。</li></ul>
|
|
33
|
+
:type Status: str
|
|
34
|
+
"""
|
|
35
|
+
self._Resource = None
|
|
36
|
+
self._BlockTime = None
|
|
37
|
+
self._Status = None
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def Resource(self):
|
|
41
|
+
r"""<p>被封堵的资源,公网 IP,示例如下:</p><ul><li> 公网 IP:117.175.94.231。</li></ul>
|
|
42
|
+
:rtype: str
|
|
43
|
+
"""
|
|
44
|
+
return self._Resource
|
|
45
|
+
|
|
46
|
+
@Resource.setter
|
|
47
|
+
def Resource(self, Resource):
|
|
48
|
+
self._Resource = Resource
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def BlockTime(self):
|
|
52
|
+
r"""<p>被封堵的时间。</p>
|
|
53
|
+
:rtype: str
|
|
54
|
+
"""
|
|
55
|
+
return self._BlockTime
|
|
56
|
+
|
|
57
|
+
@BlockTime.setter
|
|
58
|
+
def BlockTime(self, BlockTime):
|
|
59
|
+
self._BlockTime = BlockTime
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def Status(self):
|
|
63
|
+
r"""<p>封堵解封状态。</p><p>枚举值:</p><ul><li>Blocked:已封堵;</li><li>Unblocking:解封中;</li><li>Unblocked:已解封。</li></ul>
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._Status
|
|
67
|
+
|
|
68
|
+
@Status.setter
|
|
69
|
+
def Status(self, Status):
|
|
70
|
+
self._Status = Status
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def _deserialize(self, params):
|
|
74
|
+
self._Resource = params.get("Resource")
|
|
75
|
+
self._BlockTime = params.get("BlockTime")
|
|
76
|
+
self._Status = params.get("Status")
|
|
77
|
+
memeber_set = set(params.keys())
|
|
78
|
+
for name, value in vars(self).items():
|
|
79
|
+
property_name = name[1:]
|
|
80
|
+
if property_name in memeber_set:
|
|
81
|
+
memeber_set.remove(property_name)
|
|
82
|
+
if len(memeber_set) > 0:
|
|
83
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class DDoSUnblockQuota(AbstractModel):
|
|
88
|
+
r"""当前账号剩余解封配额信息。购买高防产品的用户默认解封配额为三个资源,系统将在每天零点(UTC+8)时区重置解封配额数,当天未使用的解封配额数不会累计到次日;DDoS 高防包(轻量版)解封配额数为每月三个资源,每月重置。
|
|
89
|
+
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
def __init__(self):
|
|
93
|
+
r"""
|
|
94
|
+
:param _TotalQuota: <p>解封次数配额总数。</p>
|
|
95
|
+
:type TotalQuota: int
|
|
96
|
+
:param _UsedQuota: <p>已使用的配额总数。</p>
|
|
97
|
+
:type UsedQuota: int
|
|
98
|
+
:param _QuotaStartTime: <p>配额生效的起始时间。</p>
|
|
99
|
+
:type QuotaStartTime: str
|
|
100
|
+
:param _QuotaEndTime: <p>配额生效的结束时间。</p>
|
|
101
|
+
:type QuotaEndTime: str
|
|
102
|
+
"""
|
|
103
|
+
self._TotalQuota = None
|
|
104
|
+
self._UsedQuota = None
|
|
105
|
+
self._QuotaStartTime = None
|
|
106
|
+
self._QuotaEndTime = None
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def TotalQuota(self):
|
|
110
|
+
r"""<p>解封次数配额总数。</p>
|
|
111
|
+
:rtype: int
|
|
112
|
+
"""
|
|
113
|
+
return self._TotalQuota
|
|
114
|
+
|
|
115
|
+
@TotalQuota.setter
|
|
116
|
+
def TotalQuota(self, TotalQuota):
|
|
117
|
+
self._TotalQuota = TotalQuota
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def UsedQuota(self):
|
|
121
|
+
r"""<p>已使用的配额总数。</p>
|
|
122
|
+
:rtype: int
|
|
123
|
+
"""
|
|
124
|
+
return self._UsedQuota
|
|
125
|
+
|
|
126
|
+
@UsedQuota.setter
|
|
127
|
+
def UsedQuota(self, UsedQuota):
|
|
128
|
+
self._UsedQuota = UsedQuota
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def QuotaStartTime(self):
|
|
132
|
+
r"""<p>配额生效的起始时间。</p>
|
|
133
|
+
:rtype: str
|
|
134
|
+
"""
|
|
135
|
+
return self._QuotaStartTime
|
|
136
|
+
|
|
137
|
+
@QuotaStartTime.setter
|
|
138
|
+
def QuotaStartTime(self, QuotaStartTime):
|
|
139
|
+
self._QuotaStartTime = QuotaStartTime
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def QuotaEndTime(self):
|
|
143
|
+
r"""<p>配额生效的结束时间。</p>
|
|
144
|
+
:rtype: str
|
|
145
|
+
"""
|
|
146
|
+
return self._QuotaEndTime
|
|
147
|
+
|
|
148
|
+
@QuotaEndTime.setter
|
|
149
|
+
def QuotaEndTime(self, QuotaEndTime):
|
|
150
|
+
self._QuotaEndTime = QuotaEndTime
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def _deserialize(self, params):
|
|
154
|
+
self._TotalQuota = params.get("TotalQuota")
|
|
155
|
+
self._UsedQuota = params.get("UsedQuota")
|
|
156
|
+
self._QuotaStartTime = params.get("QuotaStartTime")
|
|
157
|
+
self._QuotaEndTime = params.get("QuotaEndTime")
|
|
158
|
+
memeber_set = set(params.keys())
|
|
159
|
+
for name, value in vars(self).items():
|
|
160
|
+
property_name = name[1:]
|
|
161
|
+
if property_name in memeber_set:
|
|
162
|
+
memeber_set.remove(property_name)
|
|
163
|
+
if len(memeber_set) > 0:
|
|
164
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class DescribeDDoSBlockRecordsRequest(AbstractModel):
|
|
169
|
+
r"""DescribeDDoSBlockRecords请求参数结构体
|
|
170
|
+
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
def __init__(self):
|
|
174
|
+
r"""
|
|
175
|
+
:param _StartTime: <p>查询的起始时间。最高支持近一年的数据查询。</p><p>参数格式:2026-02-04T11:30:00+08:00。</p>
|
|
176
|
+
:type StartTime: str
|
|
177
|
+
:param _EndTime: <p>查询的结束时间。查询时间范围(EndTime - StartTime)需小于等于 31 天。</p><p>参数格式:2026-03-04T11:30:00+08:00。</p>
|
|
178
|
+
:type EndTime: str
|
|
179
|
+
:param _Filters: <p>过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 appid 下所有被封堵过的资源列表。详细的过滤条件如下:</p><ul><li> Resource:可按照被封堵的 IP 或者被封堵的资源六段式进行过滤;</li><li> Status:可按照被封堵的资源状态进行过滤。</li></ul><p>当 Filters.Name 取值为 Status 时,Filters.Values 取值有:</p><ul><li>Blocked:已封堵;</li><li>Unblocking:解封中;</li><li>Unblocked:已解封。</li></ul>
|
|
180
|
+
:type Filters: list of Filter
|
|
181
|
+
:param _Limit: <p>分页查询限制数,最大值为 100。</p><p>默认值:20</p>
|
|
182
|
+
:type Limit: int
|
|
183
|
+
:param _Offset: <p>分页查询偏移量。</p><p>默认值:0</p>
|
|
184
|
+
:type Offset: int
|
|
185
|
+
"""
|
|
186
|
+
self._StartTime = None
|
|
187
|
+
self._EndTime = None
|
|
188
|
+
self._Filters = None
|
|
189
|
+
self._Limit = None
|
|
190
|
+
self._Offset = None
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def StartTime(self):
|
|
194
|
+
r"""<p>查询的起始时间。最高支持近一年的数据查询。</p><p>参数格式:2026-02-04T11:30:00+08:00。</p>
|
|
195
|
+
:rtype: str
|
|
196
|
+
"""
|
|
197
|
+
return self._StartTime
|
|
198
|
+
|
|
199
|
+
@StartTime.setter
|
|
200
|
+
def StartTime(self, StartTime):
|
|
201
|
+
self._StartTime = StartTime
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def EndTime(self):
|
|
205
|
+
r"""<p>查询的结束时间。查询时间范围(EndTime - StartTime)需小于等于 31 天。</p><p>参数格式:2026-03-04T11:30:00+08:00。</p>
|
|
206
|
+
:rtype: str
|
|
207
|
+
"""
|
|
208
|
+
return self._EndTime
|
|
209
|
+
|
|
210
|
+
@EndTime.setter
|
|
211
|
+
def EndTime(self, EndTime):
|
|
212
|
+
self._EndTime = EndTime
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def Filters(self):
|
|
216
|
+
r"""<p>过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 appid 下所有被封堵过的资源列表。详细的过滤条件如下:</p><ul><li> Resource:可按照被封堵的 IP 或者被封堵的资源六段式进行过滤;</li><li> Status:可按照被封堵的资源状态进行过滤。</li></ul><p>当 Filters.Name 取值为 Status 时,Filters.Values 取值有:</p><ul><li>Blocked:已封堵;</li><li>Unblocking:解封中;</li><li>Unblocked:已解封。</li></ul>
|
|
217
|
+
:rtype: list of Filter
|
|
218
|
+
"""
|
|
219
|
+
return self._Filters
|
|
220
|
+
|
|
221
|
+
@Filters.setter
|
|
222
|
+
def Filters(self, Filters):
|
|
223
|
+
self._Filters = Filters
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def Limit(self):
|
|
227
|
+
r"""<p>分页查询限制数,最大值为 100。</p><p>默认值:20</p>
|
|
228
|
+
:rtype: int
|
|
229
|
+
"""
|
|
230
|
+
return self._Limit
|
|
231
|
+
|
|
232
|
+
@Limit.setter
|
|
233
|
+
def Limit(self, Limit):
|
|
234
|
+
self._Limit = Limit
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def Offset(self):
|
|
238
|
+
r"""<p>分页查询偏移量。</p><p>默认值:0</p>
|
|
239
|
+
:rtype: int
|
|
240
|
+
"""
|
|
241
|
+
return self._Offset
|
|
242
|
+
|
|
243
|
+
@Offset.setter
|
|
244
|
+
def Offset(self, Offset):
|
|
245
|
+
self._Offset = Offset
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
def _deserialize(self, params):
|
|
249
|
+
self._StartTime = params.get("StartTime")
|
|
250
|
+
self._EndTime = params.get("EndTime")
|
|
251
|
+
if params.get("Filters") is not None:
|
|
252
|
+
self._Filters = []
|
|
253
|
+
for item in params.get("Filters"):
|
|
254
|
+
obj = Filter()
|
|
255
|
+
obj._deserialize(item)
|
|
256
|
+
self._Filters.append(obj)
|
|
257
|
+
self._Limit = params.get("Limit")
|
|
258
|
+
self._Offset = params.get("Offset")
|
|
259
|
+
memeber_set = set(params.keys())
|
|
260
|
+
for name, value in vars(self).items():
|
|
261
|
+
property_name = name[1:]
|
|
262
|
+
if property_name in memeber_set:
|
|
263
|
+
memeber_set.remove(property_name)
|
|
264
|
+
if len(memeber_set) > 0:
|
|
265
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class DescribeDDoSBlockRecordsResponse(AbstractModel):
|
|
270
|
+
r"""DescribeDDoSBlockRecords返回参数结构体
|
|
271
|
+
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
def __init__(self):
|
|
275
|
+
r"""
|
|
276
|
+
:param _TotalCount: <p>封堵解封记录总数。</p>
|
|
277
|
+
:type TotalCount: int
|
|
278
|
+
:param _BlockRecords: <p>封堵解封记录。</p>
|
|
279
|
+
:type BlockRecords: list of DDoSBlockRecord
|
|
280
|
+
:param _UnblockQuotaInfo: <p>解封次数配额信息。</p>
|
|
281
|
+
:type UnblockQuotaInfo: :class:`tencentcloud.antiddos.v20250903.models.DDoSUnblockQuota`
|
|
282
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
283
|
+
:type RequestId: str
|
|
284
|
+
"""
|
|
285
|
+
self._TotalCount = None
|
|
286
|
+
self._BlockRecords = None
|
|
287
|
+
self._UnblockQuotaInfo = None
|
|
288
|
+
self._RequestId = None
|
|
289
|
+
|
|
290
|
+
@property
|
|
291
|
+
def TotalCount(self):
|
|
292
|
+
r"""<p>封堵解封记录总数。</p>
|
|
293
|
+
:rtype: int
|
|
294
|
+
"""
|
|
295
|
+
return self._TotalCount
|
|
296
|
+
|
|
297
|
+
@TotalCount.setter
|
|
298
|
+
def TotalCount(self, TotalCount):
|
|
299
|
+
self._TotalCount = TotalCount
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def BlockRecords(self):
|
|
303
|
+
r"""<p>封堵解封记录。</p>
|
|
304
|
+
:rtype: list of DDoSBlockRecord
|
|
305
|
+
"""
|
|
306
|
+
return self._BlockRecords
|
|
307
|
+
|
|
308
|
+
@BlockRecords.setter
|
|
309
|
+
def BlockRecords(self, BlockRecords):
|
|
310
|
+
self._BlockRecords = BlockRecords
|
|
311
|
+
|
|
312
|
+
@property
|
|
313
|
+
def UnblockQuotaInfo(self):
|
|
314
|
+
r"""<p>解封次数配额信息。</p>
|
|
315
|
+
:rtype: :class:`tencentcloud.antiddos.v20250903.models.DDoSUnblockQuota`
|
|
316
|
+
"""
|
|
317
|
+
return self._UnblockQuotaInfo
|
|
318
|
+
|
|
319
|
+
@UnblockQuotaInfo.setter
|
|
320
|
+
def UnblockQuotaInfo(self, UnblockQuotaInfo):
|
|
321
|
+
self._UnblockQuotaInfo = UnblockQuotaInfo
|
|
322
|
+
|
|
323
|
+
@property
|
|
324
|
+
def RequestId(self):
|
|
325
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
326
|
+
:rtype: str
|
|
327
|
+
"""
|
|
328
|
+
return self._RequestId
|
|
329
|
+
|
|
330
|
+
@RequestId.setter
|
|
331
|
+
def RequestId(self, RequestId):
|
|
332
|
+
self._RequestId = RequestId
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
def _deserialize(self, params):
|
|
336
|
+
self._TotalCount = params.get("TotalCount")
|
|
337
|
+
if params.get("BlockRecords") is not None:
|
|
338
|
+
self._BlockRecords = []
|
|
339
|
+
for item in params.get("BlockRecords"):
|
|
340
|
+
obj = DDoSBlockRecord()
|
|
341
|
+
obj._deserialize(item)
|
|
342
|
+
self._BlockRecords.append(obj)
|
|
343
|
+
if params.get("UnblockQuotaInfo") is not None:
|
|
344
|
+
self._UnblockQuotaInfo = DDoSUnblockQuota()
|
|
345
|
+
self._UnblockQuotaInfo._deserialize(params.get("UnblockQuotaInfo"))
|
|
346
|
+
self._RequestId = params.get("RequestId")
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
class Filter(AbstractModel):
|
|
350
|
+
r"""描述键值对过滤器,用于条件过滤查询。例如过滤 ID、名称、状态等。 若存在多个 Filter 时,Filter 间的关系为逻辑与(AND)关系。 若同一个 Filter 存在多个 Values,同一 Filter 下 Values 间的关系为逻辑或(OR)关系。
|
|
351
|
+
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
def __init__(self):
|
|
355
|
+
r"""
|
|
356
|
+
:param _Name: <p>需要过滤的字段;具体可选择值请查看对应的引用接口。</p>
|
|
357
|
+
:type Name: str
|
|
358
|
+
:param _Values: <p>字段的过滤值。</p>
|
|
359
|
+
:type Values: list of str
|
|
360
|
+
"""
|
|
361
|
+
self._Name = None
|
|
362
|
+
self._Values = None
|
|
363
|
+
|
|
364
|
+
@property
|
|
365
|
+
def Name(self):
|
|
366
|
+
r"""<p>需要过滤的字段;具体可选择值请查看对应的引用接口。</p>
|
|
367
|
+
:rtype: str
|
|
368
|
+
"""
|
|
369
|
+
return self._Name
|
|
370
|
+
|
|
371
|
+
@Name.setter
|
|
372
|
+
def Name(self, Name):
|
|
373
|
+
self._Name = Name
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
def Values(self):
|
|
377
|
+
r"""<p>字段的过滤值。</p>
|
|
378
|
+
:rtype: list of str
|
|
379
|
+
"""
|
|
380
|
+
return self._Values
|
|
381
|
+
|
|
382
|
+
@Values.setter
|
|
383
|
+
def Values(self, Values):
|
|
384
|
+
self._Values = Values
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
def _deserialize(self, params):
|
|
388
|
+
self._Name = params.get("Name")
|
|
389
|
+
self._Values = params.get("Values")
|
|
390
|
+
memeber_set = set(params.keys())
|
|
391
|
+
for name, value in vars(self).items():
|
|
392
|
+
property_name = name[1:]
|
|
393
|
+
if property_name in memeber_set:
|
|
394
|
+
memeber_set.remove(property_name)
|
|
395
|
+
if len(memeber_set) > 0:
|
|
396
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
class UnblockResourcesRequest(AbstractModel):
|
|
401
|
+
r"""UnblockResources请求参数结构体
|
|
402
|
+
|
|
403
|
+
"""
|
|
404
|
+
|
|
405
|
+
def __init__(self):
|
|
406
|
+
r"""
|
|
407
|
+
:param _Resources: <p>申请解封的资源列表。支持按照公网 IP 解封;可通过 DescribeDDoSBlockRecords 接口获取被封堵的资源详情。参数示例如下:</p><ul><li>公网 IP:117.175.94.230。</li></ul><p>入参限制:列表长度最大限制 10。</p>
|
|
408
|
+
:type Resources: list of str
|
|
409
|
+
"""
|
|
410
|
+
self._Resources = None
|
|
411
|
+
|
|
412
|
+
@property
|
|
413
|
+
def Resources(self):
|
|
414
|
+
r"""<p>申请解封的资源列表。支持按照公网 IP 解封;可通过 DescribeDDoSBlockRecords 接口获取被封堵的资源详情。参数示例如下:</p><ul><li>公网 IP:117.175.94.230。</li></ul><p>入参限制:列表长度最大限制 10。</p>
|
|
415
|
+
:rtype: list of str
|
|
416
|
+
"""
|
|
417
|
+
return self._Resources
|
|
418
|
+
|
|
419
|
+
@Resources.setter
|
|
420
|
+
def Resources(self, Resources):
|
|
421
|
+
self._Resources = Resources
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
def _deserialize(self, params):
|
|
425
|
+
self._Resources = params.get("Resources")
|
|
426
|
+
memeber_set = set(params.keys())
|
|
427
|
+
for name, value in vars(self).items():
|
|
428
|
+
property_name = name[1:]
|
|
429
|
+
if property_name in memeber_set:
|
|
430
|
+
memeber_set.remove(property_name)
|
|
431
|
+
if len(memeber_set) > 0:
|
|
432
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
class UnblockResourcesResponse(AbstractModel):
|
|
437
|
+
r"""UnblockResources返回参数结构体
|
|
438
|
+
|
|
439
|
+
"""
|
|
440
|
+
|
|
441
|
+
def __init__(self):
|
|
442
|
+
r"""
|
|
443
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
444
|
+
:type RequestId: str
|
|
445
|
+
"""
|
|
446
|
+
self._RequestId = None
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
def RequestId(self):
|
|
450
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
451
|
+
:rtype: str
|
|
452
|
+
"""
|
|
453
|
+
return self._RequestId
|
|
454
|
+
|
|
455
|
+
@RequestId.setter
|
|
456
|
+
def RequestId(self, RequestId):
|
|
457
|
+
self._RequestId = RequestId
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
def _deserialize(self, params):
|
|
461
|
+
self._RequestId = params.get("RequestId")
|