tencentcloud-sdk-python-hai 3.0.1470__tar.gz → 3.1.38__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_hai-3.1.38/PKG-INFO +46 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/setup.py +2 -1
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_hai-3.1.38/tencentcloud/hai/v20230812/hai_client_async.py +316 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud/hai/v20230812/models.py +30 -0
- tencentcloud_sdk_python_hai-3.1.38/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_hai-3.1.38/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-hai-3.0.1470/PKG-INFO +0 -45
- tencentcloud-sdk-python-hai-3.0.1470/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-hai-3.0.1470/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/README.rst +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/setup.cfg +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud/hai/v20230812/errorcodes.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud/hai/v20230812/hai_client.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.38}/tencentcloud_sdk_python_hai.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-hai
|
|
3
|
+
Version: 3.1.38
|
|
4
|
+
Summary: Tencent Cloud Hai 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.38
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Hai 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-hai
|
|
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 hai
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-hai',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.38,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Hai SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -0,0 +1,316 @@
|
|
|
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.hai.v20230812 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class HaiClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2023-08-12'
|
|
25
|
+
_endpoint = 'hai.tencentcloudapi.com'
|
|
26
|
+
_service = 'hai'
|
|
27
|
+
|
|
28
|
+
async def CreateApplication(
|
|
29
|
+
self,
|
|
30
|
+
request: models.CreateApplicationRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.CreateApplicationResponse:
|
|
33
|
+
"""
|
|
34
|
+
本接口(CreateApplication)用于对HAI实例制作自定义应用。
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "CreateApplication"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.CreateApplicationResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def CreateMuskPrompt(
|
|
47
|
+
self,
|
|
48
|
+
request: models.CreateMuskPromptRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.CreateMuskPromptResponse:
|
|
51
|
+
"""
|
|
52
|
+
创建musk prompt 任务
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "CreateMuskPrompt"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.CreateMuskPromptResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeApplications(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeApplicationsRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeApplicationsResponse:
|
|
69
|
+
"""
|
|
70
|
+
本接口(DescribeApplications)用于查询应用
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "DescribeApplications"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.DescribeApplicationsResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def DescribeInstanceNetworkStatus(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DescribeInstanceNetworkStatusRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DescribeInstanceNetworkStatusResponse:
|
|
87
|
+
"""
|
|
88
|
+
本接口(DescribeInstanceNetworkStatus)用于查询实例的网络配置及消耗情况
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DescribeInstanceNetworkStatus"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DescribeInstanceNetworkStatusResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def DescribeInstances(
|
|
101
|
+
self,
|
|
102
|
+
request: models.DescribeInstancesRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.DescribeInstancesResponse:
|
|
105
|
+
"""
|
|
106
|
+
本接口(DescribeInstances)用户查询实例
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "DescribeInstances"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.DescribeInstancesResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
117
|
+
|
|
118
|
+
async def DescribeMuskPrompts(
|
|
119
|
+
self,
|
|
120
|
+
request: models.DescribeMuskPromptsRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.DescribeMuskPromptsResponse:
|
|
123
|
+
"""
|
|
124
|
+
获取prompt任务列表
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "DescribeMuskPrompts"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.DescribeMuskPromptsResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def DescribeRegions(
|
|
137
|
+
self,
|
|
138
|
+
request: models.DescribeRegionsRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.DescribeRegionsResponse:
|
|
141
|
+
"""
|
|
142
|
+
本接口(DescribeRegions)用于查询地域列表
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "DescribeRegions"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.DescribeRegionsResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
154
|
+
async def DescribeScenes(
|
|
155
|
+
self,
|
|
156
|
+
request: models.DescribeScenesRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.DescribeScenesResponse:
|
|
159
|
+
"""
|
|
160
|
+
本接口(DescribeScenes)用于查询场景
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "DescribeScenes"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.DescribeScenesResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
172
|
+
async def DescribeServiceLoginSettings(
|
|
173
|
+
self,
|
|
174
|
+
request: models.DescribeServiceLoginSettingsRequest,
|
|
175
|
+
opts: Dict = None,
|
|
176
|
+
) -> models.DescribeServiceLoginSettingsResponse:
|
|
177
|
+
"""
|
|
178
|
+
本接口(DescribeServiceLoginSettings)用于查询服务登录配置
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
kwargs["action"] = "DescribeServiceLoginSettings"
|
|
183
|
+
kwargs["params"] = request._serialize()
|
|
184
|
+
kwargs["resp_cls"] = models.DescribeServiceLoginSettingsResponse
|
|
185
|
+
kwargs["headers"] = request.headers
|
|
186
|
+
kwargs["opts"] = opts or {}
|
|
187
|
+
|
|
188
|
+
return await self.call_and_deserialize(**kwargs)
|
|
189
|
+
|
|
190
|
+
async def InquirePriceRunInstances(
|
|
191
|
+
self,
|
|
192
|
+
request: models.InquirePriceRunInstancesRequest,
|
|
193
|
+
opts: Dict = None,
|
|
194
|
+
) -> models.InquirePriceRunInstancesResponse:
|
|
195
|
+
"""
|
|
196
|
+
本接口 (InquirePriceRunInstances) 用于实例询价。
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = {}
|
|
200
|
+
kwargs["action"] = "InquirePriceRunInstances"
|
|
201
|
+
kwargs["params"] = request._serialize()
|
|
202
|
+
kwargs["resp_cls"] = models.InquirePriceRunInstancesResponse
|
|
203
|
+
kwargs["headers"] = request.headers
|
|
204
|
+
kwargs["opts"] = opts or {}
|
|
205
|
+
|
|
206
|
+
return await self.call_and_deserialize(**kwargs)
|
|
207
|
+
|
|
208
|
+
async def ResetInstancesPassword(
|
|
209
|
+
self,
|
|
210
|
+
request: models.ResetInstancesPasswordRequest,
|
|
211
|
+
opts: Dict = None,
|
|
212
|
+
) -> models.ResetInstancesPasswordResponse:
|
|
213
|
+
"""
|
|
214
|
+
本接口 (ResetInstancesPassword) 用于重置实例的用户密码。
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = {}
|
|
218
|
+
kwargs["action"] = "ResetInstancesPassword"
|
|
219
|
+
kwargs["params"] = request._serialize()
|
|
220
|
+
kwargs["resp_cls"] = models.ResetInstancesPasswordResponse
|
|
221
|
+
kwargs["headers"] = request.headers
|
|
222
|
+
kwargs["opts"] = opts or {}
|
|
223
|
+
|
|
224
|
+
return await self.call_and_deserialize(**kwargs)
|
|
225
|
+
|
|
226
|
+
async def ResizeInstanceDisk(
|
|
227
|
+
self,
|
|
228
|
+
request: models.ResizeInstanceDiskRequest,
|
|
229
|
+
opts: Dict = None,
|
|
230
|
+
) -> models.ResizeInstanceDiskResponse:
|
|
231
|
+
"""
|
|
232
|
+
本接口(ResizeInstanceDisk)用于对指定HAI实例进行扩容云硬盘操作。
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
kwargs = {}
|
|
236
|
+
kwargs["action"] = "ResizeInstanceDisk"
|
|
237
|
+
kwargs["params"] = request._serialize()
|
|
238
|
+
kwargs["resp_cls"] = models.ResizeInstanceDiskResponse
|
|
239
|
+
kwargs["headers"] = request.headers
|
|
240
|
+
kwargs["opts"] = opts or {}
|
|
241
|
+
|
|
242
|
+
return await self.call_and_deserialize(**kwargs)
|
|
243
|
+
|
|
244
|
+
async def RunInstances(
|
|
245
|
+
self,
|
|
246
|
+
request: models.RunInstancesRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.RunInstancesResponse:
|
|
249
|
+
"""
|
|
250
|
+
本接口 (RunInstances) 用于创建一个或多个指定配置的实例。
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
kwargs = {}
|
|
254
|
+
kwargs["action"] = "RunInstances"
|
|
255
|
+
kwargs["params"] = request._serialize()
|
|
256
|
+
kwargs["resp_cls"] = models.RunInstancesResponse
|
|
257
|
+
kwargs["headers"] = request.headers
|
|
258
|
+
kwargs["opts"] = opts or {}
|
|
259
|
+
|
|
260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
261
|
+
|
|
262
|
+
async def StartInstance(
|
|
263
|
+
self,
|
|
264
|
+
request: models.StartInstanceRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.StartInstanceResponse:
|
|
267
|
+
"""
|
|
268
|
+
本接口 (StartInstance) 用于主动启动实例。
|
|
269
|
+
‘运行中’、‘预付费’的实例不支持启动实例
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
kwargs = {}
|
|
273
|
+
kwargs["action"] = "StartInstance"
|
|
274
|
+
kwargs["params"] = request._serialize()
|
|
275
|
+
kwargs["resp_cls"] = models.StartInstanceResponse
|
|
276
|
+
kwargs["headers"] = request.headers
|
|
277
|
+
kwargs["opts"] = opts or {}
|
|
278
|
+
|
|
279
|
+
return await self.call_and_deserialize(**kwargs)
|
|
280
|
+
|
|
281
|
+
async def StopInstance(
|
|
282
|
+
self,
|
|
283
|
+
request: models.StopInstanceRequest,
|
|
284
|
+
opts: Dict = None,
|
|
285
|
+
) -> models.StopInstanceResponse:
|
|
286
|
+
"""
|
|
287
|
+
本接口 (StopInstance) 用于主动关闭实例。
|
|
288
|
+
‘已关机’、‘预付费’的实例不支持关机
|
|
289
|
+
"""
|
|
290
|
+
|
|
291
|
+
kwargs = {}
|
|
292
|
+
kwargs["action"] = "StopInstance"
|
|
293
|
+
kwargs["params"] = request._serialize()
|
|
294
|
+
kwargs["resp_cls"] = models.StopInstanceResponse
|
|
295
|
+
kwargs["headers"] = request.headers
|
|
296
|
+
kwargs["opts"] = opts or {}
|
|
297
|
+
|
|
298
|
+
return await self.call_and_deserialize(**kwargs)
|
|
299
|
+
|
|
300
|
+
async def TerminateInstances(
|
|
301
|
+
self,
|
|
302
|
+
request: models.TerminateInstancesRequest,
|
|
303
|
+
opts: Dict = None,
|
|
304
|
+
) -> models.TerminateInstancesResponse:
|
|
305
|
+
"""
|
|
306
|
+
本接口 (TerminateInstances) 用于主动退还实例。
|
|
307
|
+
"""
|
|
308
|
+
|
|
309
|
+
kwargs = {}
|
|
310
|
+
kwargs["action"] = "TerminateInstances"
|
|
311
|
+
kwargs["params"] = request._serialize()
|
|
312
|
+
kwargs["resp_cls"] = models.TerminateInstancesResponse
|
|
313
|
+
kwargs["headers"] = request.headers
|
|
314
|
+
kwargs["opts"] = opts or {}
|
|
315
|
+
|
|
316
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -1973,12 +1973,18 @@ class ItemPrice(AbstractModel):
|
|
|
1973
1973
|
:type ChargeUnit: str
|
|
1974
1974
|
:param _Amount: 商品数量
|
|
1975
1975
|
:type Amount: int
|
|
1976
|
+
:param _OriginPrice: 原价
|
|
1977
|
+
:type OriginPrice: float
|
|
1978
|
+
:param _DiscountPrice: 折扣价
|
|
1979
|
+
:type DiscountPrice: float
|
|
1976
1980
|
"""
|
|
1977
1981
|
self._UnitPrice = None
|
|
1978
1982
|
self._DiscountUnitPrice = None
|
|
1979
1983
|
self._Discount = None
|
|
1980
1984
|
self._ChargeUnit = None
|
|
1981
1985
|
self._Amount = None
|
|
1986
|
+
self._OriginPrice = None
|
|
1987
|
+
self._DiscountPrice = None
|
|
1982
1988
|
|
|
1983
1989
|
@property
|
|
1984
1990
|
def UnitPrice(self):
|
|
@@ -2036,6 +2042,28 @@ class ItemPrice(AbstractModel):
|
|
|
2036
2042
|
def Amount(self, Amount):
|
|
2037
2043
|
self._Amount = Amount
|
|
2038
2044
|
|
|
2045
|
+
@property
|
|
2046
|
+
def OriginPrice(self):
|
|
2047
|
+
r"""原价
|
|
2048
|
+
:rtype: float
|
|
2049
|
+
"""
|
|
2050
|
+
return self._OriginPrice
|
|
2051
|
+
|
|
2052
|
+
@OriginPrice.setter
|
|
2053
|
+
def OriginPrice(self, OriginPrice):
|
|
2054
|
+
self._OriginPrice = OriginPrice
|
|
2055
|
+
|
|
2056
|
+
@property
|
|
2057
|
+
def DiscountPrice(self):
|
|
2058
|
+
r"""折扣价
|
|
2059
|
+
:rtype: float
|
|
2060
|
+
"""
|
|
2061
|
+
return self._DiscountPrice
|
|
2062
|
+
|
|
2063
|
+
@DiscountPrice.setter
|
|
2064
|
+
def DiscountPrice(self, DiscountPrice):
|
|
2065
|
+
self._DiscountPrice = DiscountPrice
|
|
2066
|
+
|
|
2039
2067
|
|
|
2040
2068
|
def _deserialize(self, params):
|
|
2041
2069
|
self._UnitPrice = params.get("UnitPrice")
|
|
@@ -2043,6 +2071,8 @@ class ItemPrice(AbstractModel):
|
|
|
2043
2071
|
self._Discount = params.get("Discount")
|
|
2044
2072
|
self._ChargeUnit = params.get("ChargeUnit")
|
|
2045
2073
|
self._Amount = params.get("Amount")
|
|
2074
|
+
self._OriginPrice = params.get("OriginPrice")
|
|
2075
|
+
self._DiscountPrice = params.get("DiscountPrice")
|
|
2046
2076
|
memeber_set = set(params.keys())
|
|
2047
2077
|
for name, value in vars(self).items():
|
|
2048
2078
|
property_name = name[1:]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-hai
|
|
3
|
+
Version: 3.1.38
|
|
4
|
+
Summary: Tencent Cloud Hai 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.38
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Hai 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-hai
|
|
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 hai
|
|
46
|
+
|
|
@@ -6,6 +6,7 @@ tencentcloud/hai/__init__.py
|
|
|
6
6
|
tencentcloud/hai/v20230812/__init__.py
|
|
7
7
|
tencentcloud/hai/v20230812/errorcodes.py
|
|
8
8
|
tencentcloud/hai/v20230812/hai_client.py
|
|
9
|
+
tencentcloud/hai/v20230812/hai_client_async.py
|
|
9
10
|
tencentcloud/hai/v20230812/models.py
|
|
10
11
|
tencentcloud_sdk_python_hai.egg-info/PKG-INFO
|
|
11
12
|
tencentcloud_sdk_python_hai.egg-info/SOURCES.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.38
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-hai
|
|
3
|
-
Version: 3.0.1470
|
|
4
|
-
Summary: Tencent Cloud Hai 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 Hai 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-hai
|
|
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 hai
|
|
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-hai
|
|
3
|
-
Version: 3.0.1470
|
|
4
|
-
Summary: Tencent Cloud Hai 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 Hai 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-hai
|
|
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 hai
|
|
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.1470
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|