tencentcloud-sdk-python-trp 3.0.1459__tar.gz → 3.1.58__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_trp-3.1.58/PKG-INFO +46 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/setup.py +2 -1
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud/trp/v20210515/models.py +278 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud/trp/v20210515/trp_client.py +23 -0
- tencentcloud_sdk_python_trp-3.1.58/tencentcloud/trp/v20210515/trp_client_async.py +1020 -0
- tencentcloud_sdk_python_trp-3.1.58/tencentcloud_sdk_python_trp.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud_sdk_python_trp.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_trp-3.1.58/tencentcloud_sdk_python_trp.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trp-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-trp-3.0.1459/tencentcloud_sdk_python_trp.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-trp-3.0.1459/tencentcloud_sdk_python_trp.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/README.rst +0 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud/trp/__init__.py +0 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud/trp/v20210515/__init__.py +0 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud/trp/v20210515/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud_sdk_python_trp.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trp-3.0.1459 → tencentcloud_sdk_python_trp-3.1.58}/tencentcloud_sdk_python_trp.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-trp
|
|
3
|
+
Version: 3.1.58
|
|
4
|
+
Summary: Tencent Cloud Trp 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.58
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Trp 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-trp
|
|
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 trp
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-trp',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.58,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Trp SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -10975,6 +10975,284 @@ class ReportBatchCallbackStatusResponse(AbstractModel):
|
|
|
10975
10975
|
self._RequestId = params.get("RequestId")
|
|
10976
10976
|
|
|
10977
10977
|
|
|
10978
|
+
class ReportScanDetailRequest(AbstractModel):
|
|
10979
|
+
r"""ReportScanDetail请求参数结构体
|
|
10980
|
+
|
|
10981
|
+
"""
|
|
10982
|
+
|
|
10983
|
+
def __init__(self):
|
|
10984
|
+
r"""
|
|
10985
|
+
:param _ScanDetails: <p>请求参数</p>
|
|
10986
|
+
:type ScanDetails: list of ScanDetailItem
|
|
10987
|
+
"""
|
|
10988
|
+
self._ScanDetails = None
|
|
10989
|
+
|
|
10990
|
+
@property
|
|
10991
|
+
def ScanDetails(self):
|
|
10992
|
+
r"""<p>请求参数</p>
|
|
10993
|
+
:rtype: list of ScanDetailItem
|
|
10994
|
+
"""
|
|
10995
|
+
return self._ScanDetails
|
|
10996
|
+
|
|
10997
|
+
@ScanDetails.setter
|
|
10998
|
+
def ScanDetails(self, ScanDetails):
|
|
10999
|
+
self._ScanDetails = ScanDetails
|
|
11000
|
+
|
|
11001
|
+
|
|
11002
|
+
def _deserialize(self, params):
|
|
11003
|
+
if params.get("ScanDetails") is not None:
|
|
11004
|
+
self._ScanDetails = []
|
|
11005
|
+
for item in params.get("ScanDetails"):
|
|
11006
|
+
obj = ScanDetailItem()
|
|
11007
|
+
obj._deserialize(item)
|
|
11008
|
+
self._ScanDetails.append(obj)
|
|
11009
|
+
memeber_set = set(params.keys())
|
|
11010
|
+
for name, value in vars(self).items():
|
|
11011
|
+
property_name = name[1:]
|
|
11012
|
+
if property_name in memeber_set:
|
|
11013
|
+
memeber_set.remove(property_name)
|
|
11014
|
+
if len(memeber_set) > 0:
|
|
11015
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11016
|
+
|
|
11017
|
+
|
|
11018
|
+
|
|
11019
|
+
class ReportScanDetailResponse(AbstractModel):
|
|
11020
|
+
r"""ReportScanDetail返回参数结构体
|
|
11021
|
+
|
|
11022
|
+
"""
|
|
11023
|
+
|
|
11024
|
+
def __init__(self):
|
|
11025
|
+
r"""
|
|
11026
|
+
:param _Data: <p>结果返回,成功数</p>
|
|
11027
|
+
:type Data: :class:`tencentcloud.trp.v20210515.models.ReportScanDetailResult`
|
|
11028
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11029
|
+
:type RequestId: str
|
|
11030
|
+
"""
|
|
11031
|
+
self._Data = None
|
|
11032
|
+
self._RequestId = None
|
|
11033
|
+
|
|
11034
|
+
@property
|
|
11035
|
+
def Data(self):
|
|
11036
|
+
r"""<p>结果返回,成功数</p>
|
|
11037
|
+
:rtype: :class:`tencentcloud.trp.v20210515.models.ReportScanDetailResult`
|
|
11038
|
+
"""
|
|
11039
|
+
return self._Data
|
|
11040
|
+
|
|
11041
|
+
@Data.setter
|
|
11042
|
+
def Data(self, Data):
|
|
11043
|
+
self._Data = Data
|
|
11044
|
+
|
|
11045
|
+
@property
|
|
11046
|
+
def RequestId(self):
|
|
11047
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11048
|
+
:rtype: str
|
|
11049
|
+
"""
|
|
11050
|
+
return self._RequestId
|
|
11051
|
+
|
|
11052
|
+
@RequestId.setter
|
|
11053
|
+
def RequestId(self, RequestId):
|
|
11054
|
+
self._RequestId = RequestId
|
|
11055
|
+
|
|
11056
|
+
|
|
11057
|
+
def _deserialize(self, params):
|
|
11058
|
+
if params.get("Data") is not None:
|
|
11059
|
+
self._Data = ReportScanDetailResult()
|
|
11060
|
+
self._Data._deserialize(params.get("Data"))
|
|
11061
|
+
self._RequestId = params.get("RequestId")
|
|
11062
|
+
|
|
11063
|
+
|
|
11064
|
+
class ReportScanDetailResult(AbstractModel):
|
|
11065
|
+
r"""扫码明细上报响应,成功数
|
|
11066
|
+
|
|
11067
|
+
"""
|
|
11068
|
+
|
|
11069
|
+
def __init__(self):
|
|
11070
|
+
r"""
|
|
11071
|
+
:param _Count: <p>成功数量</p>
|
|
11072
|
+
:type Count: int
|
|
11073
|
+
"""
|
|
11074
|
+
self._Count = None
|
|
11075
|
+
|
|
11076
|
+
@property
|
|
11077
|
+
def Count(self):
|
|
11078
|
+
r"""<p>成功数量</p>
|
|
11079
|
+
:rtype: int
|
|
11080
|
+
"""
|
|
11081
|
+
return self._Count
|
|
11082
|
+
|
|
11083
|
+
@Count.setter
|
|
11084
|
+
def Count(self, Count):
|
|
11085
|
+
self._Count = Count
|
|
11086
|
+
|
|
11087
|
+
|
|
11088
|
+
def _deserialize(self, params):
|
|
11089
|
+
self._Count = params.get("Count")
|
|
11090
|
+
memeber_set = set(params.keys())
|
|
11091
|
+
for name, value in vars(self).items():
|
|
11092
|
+
property_name = name[1:]
|
|
11093
|
+
if property_name in memeber_set:
|
|
11094
|
+
memeber_set.remove(property_name)
|
|
11095
|
+
if len(memeber_set) > 0:
|
|
11096
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11097
|
+
|
|
11098
|
+
|
|
11099
|
+
|
|
11100
|
+
class ScanDetailItem(AbstractModel):
|
|
11101
|
+
r"""扫码信息
|
|
11102
|
+
|
|
11103
|
+
"""
|
|
11104
|
+
|
|
11105
|
+
def __init__(self):
|
|
11106
|
+
r"""
|
|
11107
|
+
:param _Uid: <p>用户ID,也可以为手机号</p>
|
|
11108
|
+
:type Uid: str
|
|
11109
|
+
:param _Time: <p>时间</p><p>参数格式:YYYYMMDDHHMMSS</p>
|
|
11110
|
+
:type Time: str
|
|
11111
|
+
:param _ProvinceName: <p>省</p>
|
|
11112
|
+
:type ProvinceName: str
|
|
11113
|
+
:param _CityName: <p>市</p>
|
|
11114
|
+
:type CityName: str
|
|
11115
|
+
:param _RegionName: <p>区</p>
|
|
11116
|
+
:type RegionName: str
|
|
11117
|
+
:param _BrandName: <p>品牌</p>
|
|
11118
|
+
:type BrandName: str
|
|
11119
|
+
:param _SpecName: <p>品规</p>
|
|
11120
|
+
:type SpecName: str
|
|
11121
|
+
:param _IP: <p>IP,可选,需符合IP格式</p>
|
|
11122
|
+
:type IP: str
|
|
11123
|
+
:param _Code: <p>码</p>
|
|
11124
|
+
:type Code: str
|
|
11125
|
+
"""
|
|
11126
|
+
self._Uid = None
|
|
11127
|
+
self._Time = None
|
|
11128
|
+
self._ProvinceName = None
|
|
11129
|
+
self._CityName = None
|
|
11130
|
+
self._RegionName = None
|
|
11131
|
+
self._BrandName = None
|
|
11132
|
+
self._SpecName = None
|
|
11133
|
+
self._IP = None
|
|
11134
|
+
self._Code = None
|
|
11135
|
+
|
|
11136
|
+
@property
|
|
11137
|
+
def Uid(self):
|
|
11138
|
+
r"""<p>用户ID,也可以为手机号</p>
|
|
11139
|
+
:rtype: str
|
|
11140
|
+
"""
|
|
11141
|
+
return self._Uid
|
|
11142
|
+
|
|
11143
|
+
@Uid.setter
|
|
11144
|
+
def Uid(self, Uid):
|
|
11145
|
+
self._Uid = Uid
|
|
11146
|
+
|
|
11147
|
+
@property
|
|
11148
|
+
def Time(self):
|
|
11149
|
+
r"""<p>时间</p><p>参数格式:YYYYMMDDHHMMSS</p>
|
|
11150
|
+
:rtype: str
|
|
11151
|
+
"""
|
|
11152
|
+
return self._Time
|
|
11153
|
+
|
|
11154
|
+
@Time.setter
|
|
11155
|
+
def Time(self, Time):
|
|
11156
|
+
self._Time = Time
|
|
11157
|
+
|
|
11158
|
+
@property
|
|
11159
|
+
def ProvinceName(self):
|
|
11160
|
+
r"""<p>省</p>
|
|
11161
|
+
:rtype: str
|
|
11162
|
+
"""
|
|
11163
|
+
return self._ProvinceName
|
|
11164
|
+
|
|
11165
|
+
@ProvinceName.setter
|
|
11166
|
+
def ProvinceName(self, ProvinceName):
|
|
11167
|
+
self._ProvinceName = ProvinceName
|
|
11168
|
+
|
|
11169
|
+
@property
|
|
11170
|
+
def CityName(self):
|
|
11171
|
+
r"""<p>市</p>
|
|
11172
|
+
:rtype: str
|
|
11173
|
+
"""
|
|
11174
|
+
return self._CityName
|
|
11175
|
+
|
|
11176
|
+
@CityName.setter
|
|
11177
|
+
def CityName(self, CityName):
|
|
11178
|
+
self._CityName = CityName
|
|
11179
|
+
|
|
11180
|
+
@property
|
|
11181
|
+
def RegionName(self):
|
|
11182
|
+
r"""<p>区</p>
|
|
11183
|
+
:rtype: str
|
|
11184
|
+
"""
|
|
11185
|
+
return self._RegionName
|
|
11186
|
+
|
|
11187
|
+
@RegionName.setter
|
|
11188
|
+
def RegionName(self, RegionName):
|
|
11189
|
+
self._RegionName = RegionName
|
|
11190
|
+
|
|
11191
|
+
@property
|
|
11192
|
+
def BrandName(self):
|
|
11193
|
+
r"""<p>品牌</p>
|
|
11194
|
+
:rtype: str
|
|
11195
|
+
"""
|
|
11196
|
+
return self._BrandName
|
|
11197
|
+
|
|
11198
|
+
@BrandName.setter
|
|
11199
|
+
def BrandName(self, BrandName):
|
|
11200
|
+
self._BrandName = BrandName
|
|
11201
|
+
|
|
11202
|
+
@property
|
|
11203
|
+
def SpecName(self):
|
|
11204
|
+
r"""<p>品规</p>
|
|
11205
|
+
:rtype: str
|
|
11206
|
+
"""
|
|
11207
|
+
return self._SpecName
|
|
11208
|
+
|
|
11209
|
+
@SpecName.setter
|
|
11210
|
+
def SpecName(self, SpecName):
|
|
11211
|
+
self._SpecName = SpecName
|
|
11212
|
+
|
|
11213
|
+
@property
|
|
11214
|
+
def IP(self):
|
|
11215
|
+
r"""<p>IP,可选,需符合IP格式</p>
|
|
11216
|
+
:rtype: str
|
|
11217
|
+
"""
|
|
11218
|
+
return self._IP
|
|
11219
|
+
|
|
11220
|
+
@IP.setter
|
|
11221
|
+
def IP(self, IP):
|
|
11222
|
+
self._IP = IP
|
|
11223
|
+
|
|
11224
|
+
@property
|
|
11225
|
+
def Code(self):
|
|
11226
|
+
r"""<p>码</p>
|
|
11227
|
+
:rtype: str
|
|
11228
|
+
"""
|
|
11229
|
+
return self._Code
|
|
11230
|
+
|
|
11231
|
+
@Code.setter
|
|
11232
|
+
def Code(self, Code):
|
|
11233
|
+
self._Code = Code
|
|
11234
|
+
|
|
11235
|
+
|
|
11236
|
+
def _deserialize(self, params):
|
|
11237
|
+
self._Uid = params.get("Uid")
|
|
11238
|
+
self._Time = params.get("Time")
|
|
11239
|
+
self._ProvinceName = params.get("ProvinceName")
|
|
11240
|
+
self._CityName = params.get("CityName")
|
|
11241
|
+
self._RegionName = params.get("RegionName")
|
|
11242
|
+
self._BrandName = params.get("BrandName")
|
|
11243
|
+
self._SpecName = params.get("SpecName")
|
|
11244
|
+
self._IP = params.get("IP")
|
|
11245
|
+
self._Code = params.get("Code")
|
|
11246
|
+
memeber_set = set(params.keys())
|
|
11247
|
+
for name, value in vars(self).items():
|
|
11248
|
+
property_name = name[1:]
|
|
11249
|
+
if property_name in memeber_set:
|
|
11250
|
+
memeber_set.remove(property_name)
|
|
11251
|
+
if len(memeber_set) > 0:
|
|
11252
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11253
|
+
|
|
11254
|
+
|
|
11255
|
+
|
|
10978
11256
|
class ScanLog(AbstractModel):
|
|
10979
11257
|
r"""扫码明细
|
|
10980
11258
|
|
|
@@ -1265,6 +1265,29 @@ class TrpClient(AbstractClient):
|
|
|
1265
1265
|
model = models.ReportBatchCallbackStatusResponse()
|
|
1266
1266
|
model._deserialize(response["Response"])
|
|
1267
1267
|
return model
|
|
1268
|
+
except Exception as e:
|
|
1269
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1270
|
+
raise
|
|
1271
|
+
else:
|
|
1272
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
def ReportScanDetail(self, request):
|
|
1276
|
+
r"""扫码数据上报
|
|
1277
|
+
|
|
1278
|
+
:param request: Request instance for ReportScanDetail.
|
|
1279
|
+
:type request: :class:`tencentcloud.trp.v20210515.models.ReportScanDetailRequest`
|
|
1280
|
+
:rtype: :class:`tencentcloud.trp.v20210515.models.ReportScanDetailResponse`
|
|
1281
|
+
|
|
1282
|
+
"""
|
|
1283
|
+
try:
|
|
1284
|
+
params = request._serialize()
|
|
1285
|
+
headers = request.headers
|
|
1286
|
+
body = self.call("ReportScanDetail", params, headers=headers)
|
|
1287
|
+
response = json.loads(body)
|
|
1288
|
+
model = models.ReportScanDetailResponse()
|
|
1289
|
+
model._deserialize(response["Response"])
|
|
1290
|
+
return model
|
|
1268
1291
|
except Exception as e:
|
|
1269
1292
|
if isinstance(e, TencentCloudSDKException):
|
|
1270
1293
|
raise
|