tencentcloud-sdk-python-hai 3.0.1470__tar.gz → 3.1.40__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 (19) hide show
  1. tencentcloud_sdk_python_hai-3.1.40/PKG-INFO +46 -0
  2. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/setup.py +2 -1
  3. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud/hai/v20230812/errorcodes.py +12 -0
  5. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud/hai/v20230812/hai_client.py +23 -0
  6. tencentcloud_sdk_python_hai-3.1.40/tencentcloud/hai/v20230812/hai_client_async.py +334 -0
  7. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud/hai/v20230812/models.py +109 -0
  8. tencentcloud_sdk_python_hai-3.1.40/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +46 -0
  9. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +1 -0
  10. tencentcloud_sdk_python_hai-3.1.40/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
  11. tencentcloud-sdk-python-hai-3.0.1470/PKG-INFO +0 -45
  12. tencentcloud-sdk-python-hai-3.0.1470/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +0 -45
  13. tencentcloud-sdk-python-hai-3.0.1470/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
  14. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/README.rst +0 -0
  15. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/setup.cfg +0 -0
  16. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud/hai/__init__.py +0 -0
  17. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud/hai/v20230812/__init__.py +0 -0
  18. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
  19. {tencentcloud-sdk-python-hai-3.0.1470 → tencentcloud_sdk_python_hai-3.1.40}/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.40
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.40
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.0.1470,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.40,<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(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1470'
17
+ __version__ = '3.1.40'
@@ -98,18 +98,27 @@ INVALIDPARAMETERVALUE_INVALIDPASSWORD = 'InvalidParameterValue.InvalidPassword'
98
98
  # 场景ID格式非法
99
99
  INVALIDPARAMETERVALUE_INVALIDSCENEIDMALFORMED = 'InvalidParameterValue.InvalidSceneIdMalformed'
100
100
 
101
+ # 服务ID格式错误
102
+ INVALIDPARAMETERVALUE_INVALIDSERVICEIDMALFORMED = 'InvalidParameterValue.InvalidServiceIdMalformed'
103
+
101
104
  # 地域非法
102
105
  INVALIDPARAMETERVALUE_REGIONINVALID = 'InvalidParameterValue.RegionInvalid'
103
106
 
104
107
  # 无法找到指定的安全组
105
108
  INVALIDPARAMETERVALUE_SECURITYGROUPNOTFOUND = 'InvalidParameterValue.SecurityGroupNotFound'
106
109
 
110
+ # 服务ID不存在
111
+ INVALIDPARAMETERVALUE_SERVICEIDNOTFOUND = 'InvalidParameterValue.ServiceIdNotFound'
112
+
107
113
  # 入参中若存在子网ID,则必须同时存在VPC ID。
108
114
  INVALIDPARAMETERVALUE_SUBNETMUSTCOEXISTWITHVPC = 'InvalidParameterValue.SubnetMustCoexistWithVpc'
109
115
 
110
116
  # 无法找到指定的子网,或该子网不属于指定的VPC
111
117
  INVALIDPARAMETERVALUE_SUBNETNOTFOUND = 'InvalidParameterValue.SubnetNotFound'
112
118
 
119
+ # 目标副本数不能与运行中副本数相同
120
+ INVALIDPARAMETERVALUE_TARGETREPLICASMUSTDIFFERFROMRUNNINGREPLICAS = 'InvalidParameterValue.TargetReplicasMustDifferFromRunningReplicas'
121
+
113
122
  # 无法找到指定的VPC
114
123
  INVALIDPARAMETERVALUE_VPCNOTFOUND = 'InvalidParameterValue.VpcNotFound'
115
124
 
@@ -122,6 +131,9 @@ LIMITEXCEEDED_VPCLIMITEXCEEDED = 'LimitExceeded.VpcLimitExceeded'
122
131
  # 指定实例有正在执行的操作,不能执行新的操作
123
132
  OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = 'OperationDenied.InstanceOperationInProgress'
124
133
 
134
+ # 指定服务有正在执行的操作,不能执行新的操作
135
+ OPERATIONDENIED_SERVICEOPERATIONINPROGRESS = 'OperationDenied.ServiceOperationInProgress'
136
+
125
137
  # 指定的算力套餐库存不足
126
138
  RESOURCEINSUFFICIENT_BUNDLEINVENTORYSHORTAGE = 'ResourceInsufficient.BundleInventoryShortage'
127
139
 
@@ -389,6 +389,29 @@ class HaiClient(AbstractClient):
389
389
  model = models.TerminateInstancesResponse()
390
390
  model._deserialize(response["Response"])
391
391
  return model
392
+ except Exception as e:
393
+ if isinstance(e, TencentCloudSDKException):
394
+ raise
395
+ else:
396
+ raise TencentCloudSDKException(type(e).__name__, str(e))
397
+
398
+
399
+ def UpdateServiceConfigs(self, request):
400
+ r"""本接口(UpdateServiceConfigs)用于更新服务配置
401
+
402
+ :param request: Request instance for UpdateServiceConfigs.
403
+ :type request: :class:`tencentcloud.hai.v20230812.models.UpdateServiceConfigsRequest`
404
+ :rtype: :class:`tencentcloud.hai.v20230812.models.UpdateServiceConfigsResponse`
405
+
406
+ """
407
+ try:
408
+ params = request._serialize()
409
+ headers = request.headers
410
+ body = self.call("UpdateServiceConfigs", params, headers=headers)
411
+ response = json.loads(body)
412
+ model = models.UpdateServiceConfigsResponse()
413
+ model._deserialize(response["Response"])
414
+ return model
392
415
  except Exception as e:
393
416
  if isinstance(e, TencentCloudSDKException):
394
417
  raise
@@ -0,0 +1,334 @@
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)
317
+
318
+ async def UpdateServiceConfigs(
319
+ self,
320
+ request: models.UpdateServiceConfigsRequest,
321
+ opts: Dict = None,
322
+ ) -> models.UpdateServiceConfigsResponse:
323
+ """
324
+ 本接口(UpdateServiceConfigs)用于更新服务配置
325
+ """
326
+
327
+ kwargs = {}
328
+ kwargs["action"] = "UpdateServiceConfigs"
329
+ kwargs["params"] = request._serialize()
330
+ kwargs["resp_cls"] = models.UpdateServiceConfigsResponse
331
+ kwargs["headers"] = request.headers
332
+ kwargs["opts"] = opts or {}
333
+
334
+ 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:]
@@ -3413,5 +3443,84 @@ class TerminateInstancesResponse(AbstractModel):
3413
3443
  self._RequestId = RequestId
3414
3444
 
3415
3445
 
3446
+ def _deserialize(self, params):
3447
+ self._RequestId = params.get("RequestId")
3448
+
3449
+
3450
+ class UpdateServiceConfigsRequest(AbstractModel):
3451
+ r"""UpdateServiceConfigs请求参数结构体
3452
+
3453
+ """
3454
+
3455
+ def __init__(self):
3456
+ r"""
3457
+ :param _ServiceId: 服务ID
3458
+ :type ServiceId: str
3459
+ :param _TargetReplicas: 期望副本数
3460
+ :type TargetReplicas: int
3461
+ """
3462
+ self._ServiceId = None
3463
+ self._TargetReplicas = None
3464
+
3465
+ @property
3466
+ def ServiceId(self):
3467
+ r"""服务ID
3468
+ :rtype: str
3469
+ """
3470
+ return self._ServiceId
3471
+
3472
+ @ServiceId.setter
3473
+ def ServiceId(self, ServiceId):
3474
+ self._ServiceId = ServiceId
3475
+
3476
+ @property
3477
+ def TargetReplicas(self):
3478
+ r"""期望副本数
3479
+ :rtype: int
3480
+ """
3481
+ return self._TargetReplicas
3482
+
3483
+ @TargetReplicas.setter
3484
+ def TargetReplicas(self, TargetReplicas):
3485
+ self._TargetReplicas = TargetReplicas
3486
+
3487
+
3488
+ def _deserialize(self, params):
3489
+ self._ServiceId = params.get("ServiceId")
3490
+ self._TargetReplicas = params.get("TargetReplicas")
3491
+ memeber_set = set(params.keys())
3492
+ for name, value in vars(self).items():
3493
+ property_name = name[1:]
3494
+ if property_name in memeber_set:
3495
+ memeber_set.remove(property_name)
3496
+ if len(memeber_set) > 0:
3497
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3498
+
3499
+
3500
+
3501
+ class UpdateServiceConfigsResponse(AbstractModel):
3502
+ r"""UpdateServiceConfigs返回参数结构体
3503
+
3504
+ """
3505
+
3506
+ def __init__(self):
3507
+ r"""
3508
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3509
+ :type RequestId: str
3510
+ """
3511
+ self._RequestId = None
3512
+
3513
+ @property
3514
+ def RequestId(self):
3515
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3516
+ :rtype: str
3517
+ """
3518
+ return self._RequestId
3519
+
3520
+ @RequestId.setter
3521
+ def RequestId(self, RequestId):
3522
+ self._RequestId = RequestId
3523
+
3524
+
3416
3525
  def _deserialize(self, params):
3417
3526
  self._RequestId = params.get("RequestId")
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-hai
3
+ Version: 3.1.40
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.40
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.40
@@ -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