tencentcloud-sdk-python-rce 3.0.1459__tar.gz → 3.1.17__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.
- tencentcloud_sdk_python_rce-3.1.17/PKG-INFO +46 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/setup.py +2 -1
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud/rce/v20201103/rce_client_async.py +224 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud/rce/v20250425/__init__.py +0 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud/rce/v20250425/errorcodes.py +15 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud/rce/v20250425/models.py +52 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud/rce/v20250425/rce_client.py +49 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud/rce/v20250425/rce_client_async.py +44 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud_sdk_python_rce.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud_sdk_python_rce.egg-info/SOURCES.txt +6 -0
- tencentcloud_sdk_python_rce-3.1.17/tencentcloud_sdk_python_rce.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-rce-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-rce-3.0.1459/tencentcloud_sdk_python_rce.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-rce-3.0.1459/tencentcloud_sdk_python_rce.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/README.rst +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/setup.cfg +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud/rce/__init__.py +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud/rce/v20201103/__init__.py +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud/rce/v20201103/errorcodes.py +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud/rce/v20201103/models.py +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud/rce/v20201103/rce_client.py +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/tencentcloud_sdk_python_rce.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-rce-3.0.1459 → tencentcloud_sdk_python_rce-3.1.17}/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.17
|
|
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.17
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.17,<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(),
|
|
@@ -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)
|
|
File without changes
|
|
@@ -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,52 @@
|
|
|
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 ManageIPPortraitRiskRequest(AbstractModel):
|
|
22
|
+
r"""ManageIPPortraitRisk请求参数结构体
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ManageIPPortraitRiskResponse(AbstractModel):
|
|
28
|
+
r"""ManageIPPortraitRisk返回参数结构体
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self):
|
|
33
|
+
r"""
|
|
34
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
35
|
+
:type RequestId: str
|
|
36
|
+
"""
|
|
37
|
+
self._RequestId = None
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def RequestId(self):
|
|
41
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
42
|
+
:rtype: str
|
|
43
|
+
"""
|
|
44
|
+
return self._RequestId
|
|
45
|
+
|
|
46
|
+
@RequestId.setter
|
|
47
|
+
def RequestId(self, RequestId):
|
|
48
|
+
self._RequestId = RequestId
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _deserialize(self, params):
|
|
52
|
+
self._RequestId = params.get("RequestId")
|
|
@@ -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.17
|
|
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.17
|
|
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.17
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|