tencentcloud-sdk-python-hai 3.0.1297__tar.gz → 3.0.1299__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 (16) hide show
  1. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/setup.py +1 -1
  3. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud/hai/v20230812/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud/hai/v20230812/hai_client.py +23 -0
  6. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud/hai/v20230812/models.py +109 -0
  7. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-hai-3.0.1299/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-hai-3.0.1297/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/README.rst +0 -0
  11. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud/hai/__init__.py +0 -0
  13. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud/hai/v20230812/__init__.py +0 -0
  14. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-hai-3.0.1297 → tencentcloud-sdk-python-hai-3.0.1299}/tencentcloud_sdk_python_hai.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-hai
3
- Version: 3.0.1297
3
+ Version: 3.0.1299
4
4
  Summary: Tencent Cloud Hai SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ 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.1297"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1299"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Hai SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1297'
17
+ __version__ = '3.0.1299'
@@ -14,6 +14,9 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
+ # 操作失败。
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
17
20
  # 欠费账户不能创建实例
18
21
  FAILEDOPERATION_ARREARSACCOUNTCANNOTRUNINSTANCES = 'FailedOperation.ArrearsAccountCannotRunInstances'
19
22
 
@@ -26,6 +29,9 @@ FAILEDOPERATION_OPERATEINSTANCEREPEATEDLY = 'FailedOperation.OperateInstanceRepe
26
29
  # 内部错误。
27
30
  INTERNALERROR = 'InternalError'
28
31
 
32
+ # 参数错误。
33
+ INVALIDPARAMETER = 'InvalidParameter'
34
+
29
35
  # 两个指定的入参每次只能使用其中一个
30
36
  INVALIDPARAMETER_ATMOSTONE = 'InvalidParameter.AtMostOne'
31
37
 
@@ -26,6 +26,29 @@ class HaiClient(AbstractClient):
26
26
  _service = 'hai'
27
27
 
28
28
 
29
+ def CreateMuskPrompt(self, request):
30
+ """创建musk prompt 任务
31
+
32
+ :param request: Request instance for CreateMuskPrompt.
33
+ :type request: :class:`tencentcloud.hai.v20230812.models.CreateMuskPromptRequest`
34
+ :rtype: :class:`tencentcloud.hai.v20230812.models.CreateMuskPromptResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateMuskPrompt", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateMuskPromptResponse()
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))
50
+
51
+
29
52
  def DescribeApplications(self, request):
30
53
  """查询应用
31
54
 
@@ -198,6 +198,115 @@ class ApplicationInfo(AbstractModel):
198
198
 
199
199
 
200
200
 
201
+ class CreateMuskPromptRequest(AbstractModel):
202
+ """CreateMuskPrompt请求参数结构体
203
+
204
+ """
205
+
206
+ def __init__(self):
207
+ r"""
208
+ :param _WorkgroupId: workgroup id
209
+ :type WorkgroupId: str
210
+ :param _WorkflowId: workflow id
211
+ :type WorkflowId: str
212
+ :param _PromptParams: prompt 参数
213
+ :type PromptParams: str
214
+ """
215
+ self._WorkgroupId = None
216
+ self._WorkflowId = None
217
+ self._PromptParams = None
218
+
219
+ @property
220
+ def WorkgroupId(self):
221
+ """workgroup id
222
+ :rtype: str
223
+ """
224
+ return self._WorkgroupId
225
+
226
+ @WorkgroupId.setter
227
+ def WorkgroupId(self, WorkgroupId):
228
+ self._WorkgroupId = WorkgroupId
229
+
230
+ @property
231
+ def WorkflowId(self):
232
+ """workflow id
233
+ :rtype: str
234
+ """
235
+ return self._WorkflowId
236
+
237
+ @WorkflowId.setter
238
+ def WorkflowId(self, WorkflowId):
239
+ self._WorkflowId = WorkflowId
240
+
241
+ @property
242
+ def PromptParams(self):
243
+ """prompt 参数
244
+ :rtype: str
245
+ """
246
+ return self._PromptParams
247
+
248
+ @PromptParams.setter
249
+ def PromptParams(self, PromptParams):
250
+ self._PromptParams = PromptParams
251
+
252
+
253
+ def _deserialize(self, params):
254
+ self._WorkgroupId = params.get("WorkgroupId")
255
+ self._WorkflowId = params.get("WorkflowId")
256
+ self._PromptParams = params.get("PromptParams")
257
+ memeber_set = set(params.keys())
258
+ for name, value in vars(self).items():
259
+ property_name = name[1:]
260
+ if property_name in memeber_set:
261
+ memeber_set.remove(property_name)
262
+ if len(memeber_set) > 0:
263
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
264
+
265
+
266
+
267
+ class CreateMuskPromptResponse(AbstractModel):
268
+ """CreateMuskPrompt返回参数结构体
269
+
270
+ """
271
+
272
+ def __init__(self):
273
+ r"""
274
+ :param _PromptId: prompt id
275
+ :type PromptId: str
276
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
277
+ :type RequestId: str
278
+ """
279
+ self._PromptId = None
280
+ self._RequestId = None
281
+
282
+ @property
283
+ def PromptId(self):
284
+ """prompt id
285
+ :rtype: str
286
+ """
287
+ return self._PromptId
288
+
289
+ @PromptId.setter
290
+ def PromptId(self, PromptId):
291
+ self._PromptId = PromptId
292
+
293
+ @property
294
+ def RequestId(self):
295
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
296
+ :rtype: str
297
+ """
298
+ return self._RequestId
299
+
300
+ @RequestId.setter
301
+ def RequestId(self, RequestId):
302
+ self._RequestId = RequestId
303
+
304
+
305
+ def _deserialize(self, params):
306
+ self._PromptId = params.get("PromptId")
307
+ self._RequestId = params.get("RequestId")
308
+
309
+
201
310
  class DescribeApplicationsRequest(AbstractModel):
202
311
  """DescribeApplications请求参数结构体
203
312
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-hai
3
- Version: 3.0.1297
3
+ Version: 3.0.1299
4
4
  Summary: Tencent Cloud Hai SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1299
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1297