tencentcloud-sdk-python-rce 3.0.1459__tar.gz → 3.1.22__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 (24) hide show
  1. tencentcloud_sdk_python_rce-3.1.22/PKG-INFO +46 -0
  2. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/setup.py +2 -1
  3. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_rce-3.1.22/tencentcloud/rce/v20201103/rce_client_async.py +224 -0
  5. tencentcloud_sdk_python_rce-3.1.22/tencentcloud/rce/v20250425/__init__.py +0 -0
  6. tencentcloud_sdk_python_rce-3.1.22/tencentcloud/rce/v20250425/errorcodes.py +15 -0
  7. tencentcloud_sdk_python_rce-3.1.22/tencentcloud/rce/v20250425/models.py +301 -0
  8. tencentcloud_sdk_python_rce-3.1.22/tencentcloud/rce/v20250425/rce_client.py +49 -0
  9. tencentcloud_sdk_python_rce-3.1.22/tencentcloud/rce/v20250425/rce_client_async.py +44 -0
  10. tencentcloud_sdk_python_rce-3.1.22/tencentcloud_sdk_python_rce.egg-info/PKG-INFO +46 -0
  11. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud_sdk_python_rce.egg-info/SOURCES.txt +6 -0
  12. tencentcloud_sdk_python_rce-3.1.22/tencentcloud_sdk_python_rce.egg-info/requires.txt +1 -0
  13. tencentcloud-sdk-python-rce-3.0.1459/PKG-INFO +0 -45
  14. tencentcloud-sdk-python-rce-3.0.1459/tencentcloud_sdk_python_rce.egg-info/PKG-INFO +0 -45
  15. tencentcloud-sdk-python-rce-3.0.1459/tencentcloud_sdk_python_rce.egg-info/requires.txt +0 -1
  16. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/README.rst +0 -0
  17. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/setup.cfg +0 -0
  18. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud/rce/__init__.py +0 -0
  19. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud/rce/v20201103/__init__.py +0 -0
  20. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud/rce/v20201103/errorcodes.py +0 -0
  21. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud/rce/v20201103/models.py +0 -0
  22. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud/rce/v20201103/rce_client.py +0 -0
  23. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud_sdk_python_rce.egg-info/dependency_links.txt +0 -0
  24. {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.22}/tencentcloud_sdk_python_rce.egg-info/top_level.txt +0 -0
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-rce
3
+ Version: 3.1.22
4
+ Summary: Tencent Cloud Rce SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.22
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Rce SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-rce
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common rce
46
+
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-rce',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1459,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.22,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Rce SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1459'
17
+ __version__ = '3.1.22'
@@ -0,0 +1,224 @@
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.rce.v20201103 import models
20
+ from typing import Dict
21
+
22
+
23
+ class RceClient(AbstractClient):
24
+ _apiVersion = '2020-11-03'
25
+ _endpoint = 'rce.tencentcloudapi.com'
26
+ _service = 'rce'
27
+
28
+ async def CreateNameList(
29
+ self,
30
+ request: models.CreateNameListRequest,
31
+ opts: Dict = None,
32
+ ) -> models.CreateNameListResponse:
33
+ """
34
+ 创建黑白名单,黑白名单数量上限为100
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "CreateNameList"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.CreateNameListResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def DeleteNameList(
47
+ self,
48
+ request: models.DeleteNameListRequest,
49
+ opts: Dict = None,
50
+ ) -> models.DeleteNameListResponse:
51
+ """
52
+ 修改黑白名单状态 关闭 开启 删除
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "DeleteNameList"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.DeleteNameListResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def DeleteNameListData(
65
+ self,
66
+ request: models.DeleteNameListDataRequest,
67
+ opts: Dict = None,
68
+ ) -> models.DeleteNameListDataResponse:
69
+ """
70
+ 删除黑白名单数据
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "DeleteNameListData"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.DeleteNameListDataResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DescribeNameList(
83
+ self,
84
+ request: models.DescribeNameListRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DescribeNameListResponse:
87
+ """
88
+ 列表展示黑白名单列表数据, 包含列表名称, 名单类型, 数据类型, 数据来源, 描述, 状态等
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DescribeNameList"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DescribeNameListResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def DescribeNameListDataList(
101
+ self,
102
+ request: models.DescribeNameListDataListRequest,
103
+ opts: Dict = None,
104
+ ) -> models.DescribeNameListDataListResponse:
105
+ """
106
+ 黑白名单详情数据展示 名单id 客户appid uin 数据内容 开始时间和结束时间 状态 描述
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "DescribeNameListDataList"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.DescribeNameListDataListResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def DescribeNameListDetail(
119
+ self,
120
+ request: models.DescribeNameListDetailRequest,
121
+ opts: Dict = None,
122
+ ) -> models.DescribeNameListDetailResponse:
123
+ """
124
+ 查询黑白名单列表详情
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "DescribeNameListDetail"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.DescribeNameListDetailResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def DescribeUserUsageCnt(
137
+ self,
138
+ request: models.DescribeUserUsageCntRequest,
139
+ opts: Dict = None,
140
+ ) -> models.DescribeUserUsageCntResponse:
141
+ """
142
+ RCE控制台预付费和后付费次数展示
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "DescribeUserUsageCnt"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.DescribeUserUsageCntResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def ImportNameListData(
155
+ self,
156
+ request: models.ImportNameListDataRequest,
157
+ opts: Dict = None,
158
+ ) -> models.ImportNameListDataResponse:
159
+ """
160
+ 新增黑白名单数据,所有黑白名单数据总量上限为10000
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "ImportNameListData"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.ImportNameListDataResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def ManageMarketingRisk(
173
+ self,
174
+ request: models.ManageMarketingRiskRequest,
175
+ opts: Dict = None,
176
+ ) -> models.ManageMarketingRiskResponse:
177
+ """
178
+ 通用业务欺诈保护是基于人工智能技术和腾讯20年风控实战沉淀,依托腾讯海量业务构建的风控引擎,以轻量级的 SaaS 服务方式接入,帮助您快速解决注册、登录、营销活动等关键场景遇到的欺诈问题,实时防御黑灰产作恶。
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "ManageMarketingRisk"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.ManageMarketingRiskResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def ModifyNameList(
191
+ self,
192
+ request: models.ModifyNameListRequest,
193
+ opts: Dict = None,
194
+ ) -> models.ModifyNameListResponse:
195
+ """
196
+ 修改列表数据 列表名称 列表类型 数据类型 状态 备注
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "ModifyNameList"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.ModifyNameListResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def ModifyNameListData(
209
+ self,
210
+ request: models.ModifyNameListDataRequest,
211
+ opts: Dict = None,
212
+ ) -> models.ModifyNameListDataResponse:
213
+ """
214
+ 修改黑白名单列表详情 详情内容 开始和结束时间 状态 备注等
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "ModifyNameListData"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.ModifyNameListDataResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
@@ -0,0 +1,15 @@
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
+
@@ -0,0 +1,301 @@
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 ManageIPPortraitRiskInput(AbstractModel):
22
+ r"""业务入参
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _UserIp: 用户公网ip(仅支持IPv4)
29
+ :type UserIp: str
30
+ :param _Channel: 渠道号
31
+ :type Channel: int
32
+ """
33
+ self._UserIp = None
34
+ self._Channel = None
35
+
36
+ @property
37
+ def UserIp(self):
38
+ r"""用户公网ip(仅支持IPv4)
39
+ :rtype: str
40
+ """
41
+ return self._UserIp
42
+
43
+ @UserIp.setter
44
+ def UserIp(self, UserIp):
45
+ self._UserIp = UserIp
46
+
47
+ @property
48
+ def Channel(self):
49
+ r"""渠道号
50
+ :rtype: int
51
+ """
52
+ return self._Channel
53
+
54
+ @Channel.setter
55
+ def Channel(self, Channel):
56
+ self._Channel = Channel
57
+
58
+
59
+ def _deserialize(self, params):
60
+ self._UserIp = params.get("UserIp")
61
+ self._Channel = params.get("Channel")
62
+ memeber_set = set(params.keys())
63
+ for name, value in vars(self).items():
64
+ property_name = name[1:]
65
+ if property_name in memeber_set:
66
+ memeber_set.remove(property_name)
67
+ if len(memeber_set) > 0:
68
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
69
+
70
+
71
+
72
+ class ManageIPPortraitRiskOutput(AbstractModel):
73
+ r"""IP画像出参
74
+
75
+ """
76
+
77
+ def __init__(self):
78
+ r"""
79
+ :param _Code: 返回码
80
+ :type Code: int
81
+ :param _Message: 返回消息
82
+ :type Message: str
83
+ :param _Value: 结果
84
+ :type Value: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskValueOutput`
85
+ """
86
+ self._Code = None
87
+ self._Message = None
88
+ self._Value = None
89
+
90
+ @property
91
+ def Code(self):
92
+ r"""返回码
93
+ :rtype: int
94
+ """
95
+ return self._Code
96
+
97
+ @Code.setter
98
+ def Code(self, Code):
99
+ self._Code = Code
100
+
101
+ @property
102
+ def Message(self):
103
+ r"""返回消息
104
+ :rtype: str
105
+ """
106
+ return self._Message
107
+
108
+ @Message.setter
109
+ def Message(self, Message):
110
+ self._Message = Message
111
+
112
+ @property
113
+ def Value(self):
114
+ r"""结果
115
+ :rtype: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskValueOutput`
116
+ """
117
+ return self._Value
118
+
119
+ @Value.setter
120
+ def Value(self, Value):
121
+ self._Value = Value
122
+
123
+
124
+ def _deserialize(self, params):
125
+ self._Code = params.get("Code")
126
+ self._Message = params.get("Message")
127
+ if params.get("Value") is not None:
128
+ self._Value = ManageIPPortraitRiskValueOutput()
129
+ self._Value._deserialize(params.get("Value"))
130
+ memeber_set = set(params.keys())
131
+ for name, value in vars(self).items():
132
+ property_name = name[1:]
133
+ if property_name in memeber_set:
134
+ memeber_set.remove(property_name)
135
+ if len(memeber_set) > 0:
136
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
137
+
138
+
139
+
140
+ class ManageIPPortraitRiskRequest(AbstractModel):
141
+ r"""ManageIPPortraitRisk请求参数结构体
142
+
143
+ """
144
+
145
+ def __init__(self):
146
+ r"""
147
+ :param _PostTime: 请求秒级时间戳
148
+ :type PostTime: int
149
+ :param _BusinessSecurityData: 业务入参
150
+ :type BusinessSecurityData: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskInput`
151
+ """
152
+ self._PostTime = None
153
+ self._BusinessSecurityData = None
154
+
155
+ @property
156
+ def PostTime(self):
157
+ r"""请求秒级时间戳
158
+ :rtype: int
159
+ """
160
+ return self._PostTime
161
+
162
+ @PostTime.setter
163
+ def PostTime(self, PostTime):
164
+ self._PostTime = PostTime
165
+
166
+ @property
167
+ def BusinessSecurityData(self):
168
+ r"""业务入参
169
+ :rtype: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskInput`
170
+ """
171
+ return self._BusinessSecurityData
172
+
173
+ @BusinessSecurityData.setter
174
+ def BusinessSecurityData(self, BusinessSecurityData):
175
+ self._BusinessSecurityData = BusinessSecurityData
176
+
177
+
178
+ def _deserialize(self, params):
179
+ self._PostTime = params.get("PostTime")
180
+ if params.get("BusinessSecurityData") is not None:
181
+ self._BusinessSecurityData = ManageIPPortraitRiskInput()
182
+ self._BusinessSecurityData._deserialize(params.get("BusinessSecurityData"))
183
+ memeber_set = set(params.keys())
184
+ for name, value in vars(self).items():
185
+ property_name = name[1:]
186
+ if property_name in memeber_set:
187
+ memeber_set.remove(property_name)
188
+ if len(memeber_set) > 0:
189
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
190
+
191
+
192
+
193
+ class ManageIPPortraitRiskResponse(AbstractModel):
194
+ r"""ManageIPPortraitRisk返回参数结构体
195
+
196
+ """
197
+
198
+ def __init__(self):
199
+ r"""
200
+ :param _Data: 出参
201
+ :type Data: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskOutput`
202
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
203
+ :type RequestId: str
204
+ """
205
+ self._Data = None
206
+ self._RequestId = None
207
+
208
+ @property
209
+ def Data(self):
210
+ r"""出参
211
+ :rtype: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskOutput`
212
+ """
213
+ return self._Data
214
+
215
+ @Data.setter
216
+ def Data(self, Data):
217
+ self._Data = Data
218
+
219
+ @property
220
+ def RequestId(self):
221
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
222
+ :rtype: str
223
+ """
224
+ return self._RequestId
225
+
226
+ @RequestId.setter
227
+ def RequestId(self, RequestId):
228
+ self._RequestId = RequestId
229
+
230
+
231
+ def _deserialize(self, params):
232
+ if params.get("Data") is not None:
233
+ self._Data = ManageIPPortraitRiskOutput()
234
+ self._Data._deserialize(params.get("Data"))
235
+ self._RequestId = params.get("RequestId")
236
+
237
+
238
+ class ManageIPPortraitRiskValueOutput(AbstractModel):
239
+ r"""业务出参
240
+
241
+ """
242
+
243
+ def __init__(self):
244
+ r"""
245
+ :param _UserIp: 对应的IP
246
+ :type UserIp: str
247
+ :param _RiskScore: 返回风险等级, 0 - 4,0代表无风险,数值越大,风险越高
248
+ :type RiskScore: int
249
+ :param _RiskType: 风险类型
250
+ :type RiskType: list of int
251
+ """
252
+ self._UserIp = None
253
+ self._RiskScore = None
254
+ self._RiskType = None
255
+
256
+ @property
257
+ def UserIp(self):
258
+ r"""对应的IP
259
+ :rtype: str
260
+ """
261
+ return self._UserIp
262
+
263
+ @UserIp.setter
264
+ def UserIp(self, UserIp):
265
+ self._UserIp = UserIp
266
+
267
+ @property
268
+ def RiskScore(self):
269
+ r"""返回风险等级, 0 - 4,0代表无风险,数值越大,风险越高
270
+ :rtype: int
271
+ """
272
+ return self._RiskScore
273
+
274
+ @RiskScore.setter
275
+ def RiskScore(self, RiskScore):
276
+ self._RiskScore = RiskScore
277
+
278
+ @property
279
+ def RiskType(self):
280
+ r"""风险类型
281
+ :rtype: list of int
282
+ """
283
+ return self._RiskType
284
+
285
+ @RiskType.setter
286
+ def RiskType(self, RiskType):
287
+ self._RiskType = RiskType
288
+
289
+
290
+ def _deserialize(self, params):
291
+ self._UserIp = params.get("UserIp")
292
+ self._RiskScore = params.get("RiskScore")
293
+ self._RiskType = params.get("RiskType")
294
+ memeber_set = set(params.keys())
295
+ for name, value in vars(self).items():
296
+ property_name = name[1:]
297
+ if property_name in memeber_set:
298
+ memeber_set.remove(property_name)
299
+ if len(memeber_set) > 0:
300
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
301
+
@@ -0,0 +1,49 @@
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.rce.v20250425 import models
21
+
22
+
23
+ class RceClient(AbstractClient):
24
+ _apiVersion = '2025-04-25'
25
+ _endpoint = 'rce.tencentcloudapi.com'
26
+ _service = 'rce'
27
+
28
+
29
+ def ManageIPPortraitRisk(self, request):
30
+ r"""IP画像接口
31
+
32
+ :param request: Request instance for ManageIPPortraitRisk.
33
+ :type request: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskRequest`
34
+ :rtype: :class:`tencentcloud.rce.v20250425.models.ManageIPPortraitRiskResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("ManageIPPortraitRisk", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.ManageIPPortraitRiskResponse()
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))
@@ -0,0 +1,44 @@
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.rce.v20250425 import models
20
+ from typing import Dict
21
+
22
+
23
+ class RceClient(AbstractClient):
24
+ _apiVersion = '2025-04-25'
25
+ _endpoint = 'rce.tencentcloudapi.com'
26
+ _service = 'rce'
27
+
28
+ async def ManageIPPortraitRisk(
29
+ self,
30
+ request: models.ManageIPPortraitRiskRequest,
31
+ opts: Dict = None,
32
+ ) -> models.ManageIPPortraitRiskResponse:
33
+ """
34
+ IP画像接口
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "ManageIPPortraitRisk"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.ManageIPPortraitRiskResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-rce
3
+ Version: 3.1.22
4
+ Summary: Tencent Cloud Rce SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.22
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Rce SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-rce
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common rce
46
+
@@ -7,6 +7,12 @@ tencentcloud/rce/v20201103/__init__.py
7
7
  tencentcloud/rce/v20201103/errorcodes.py
8
8
  tencentcloud/rce/v20201103/models.py
9
9
  tencentcloud/rce/v20201103/rce_client.py
10
+ tencentcloud/rce/v20201103/rce_client_async.py
11
+ tencentcloud/rce/v20250425/__init__.py
12
+ tencentcloud/rce/v20250425/errorcodes.py
13
+ tencentcloud/rce/v20250425/models.py
14
+ tencentcloud/rce/v20250425/rce_client.py
15
+ tencentcloud/rce/v20250425/rce_client_async.py
10
16
  tencentcloud_sdk_python_rce.egg-info/PKG-INFO
11
17
  tencentcloud_sdk_python_rce.egg-info/SOURCES.txt
12
18
  tencentcloud_sdk_python_rce.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.22
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-rce
3
- Version: 3.0.1459
4
- Summary: Tencent Cloud Rce SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Rce SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-rce
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common rce
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-rce
3
- Version: 3.0.1459
4
- Summary: Tencent Cloud Rce SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Rce SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-rce
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common rce
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1459