tencentcloud-sdk-python 3.0.1417__py2.py3-none-any.whl → 3.0.1419__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ai3d/__init__.py +0 -0
- tencentcloud/ai3d/v20250513/__init__.py +0 -0
- tencentcloud/ai3d/v20250513/ai3d_client.py +74 -0
- tencentcloud/ai3d/v20250513/errorcodes.py +15 -0
- tencentcloud/ai3d/v20250513/models.py +461 -0
- tencentcloud/autoscaling/v20180419/errorcodes.py +3 -0
- tencentcloud/batch/v20170312/models.py +120 -0
- tencentcloud/cdb/v20170320/models.py +2 -2
- tencentcloud/cdn/v20180606/cdn_client.py +1 -1
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cfs/v20190719/models.py +20 -20
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +472 -0
- tencentcloud/csip/v20221121/csip_client.py +299 -0
- tencentcloud/csip/v20221121/models.py +3240 -47
- tencentcloud/cvm/v20170312/models.py +156 -0
- tencentcloud/cwp/v20180228/models.py +15 -0
- tencentcloud/es/v20250101/models.py +30 -0
- tencentcloud/ess/v20201111/models.py +19 -0
- tencentcloud/essbasic/v20210526/models.py +12 -3
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +99 -0
- tencentcloud/live/v20180801/models.py +382 -0
- tencentcloud/ocr/v20181119/models.py +158 -0
- tencentcloud/redis/v20180412/models.py +20 -12
- tencentcloud/ses/v20201002/models.py +19 -0
- tencentcloud/teo/v20220901/models.py +439 -8
- tencentcloud/teo/v20220901/teo_client.py +1 -1
- tencentcloud/tke/v20220501/models.py +94 -0
- tencentcloud/tke/v20220501/tke_client.py +23 -0
- tencentcloud/tmt/v20180321/errorcodes.py +1 -1
- tencentcloud/tmt/v20180321/models.py +8 -8
- tencentcloud/vclm/v20240523/models.py +2 -28
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- {tencentcloud_sdk_python-3.0.1417.dist-info → tencentcloud_sdk_python-3.0.1419.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1417.dist-info → tencentcloud_sdk_python-3.0.1419.dist-info}/RECORD +40 -35
- {tencentcloud_sdk_python-3.0.1417.dist-info → tencentcloud_sdk_python-3.0.1419.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1417.dist-info → tencentcloud_sdk_python-3.0.1419.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1417.dist-info → tencentcloud_sdk_python-3.0.1419.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
File without changes
|
File without changes
|
@@ -0,0 +1,74 @@
|
|
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.ai3d.v20250513 import models
|
21
|
+
|
22
|
+
|
23
|
+
class Ai3dClient(AbstractClient):
|
24
|
+
_apiVersion = '2025-05-13'
|
25
|
+
_endpoint = 'ai3d.tencentcloudapi.com'
|
26
|
+
_service = 'ai3d'
|
27
|
+
|
28
|
+
|
29
|
+
def QueryHunyuanTo3DJob(self, request):
|
30
|
+
"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
31
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
32
|
+
|
33
|
+
:param request: Request instance for QueryHunyuanTo3DJob.
|
34
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DJobRequest`
|
35
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DJobResponse`
|
36
|
+
|
37
|
+
"""
|
38
|
+
try:
|
39
|
+
params = request._serialize()
|
40
|
+
headers = request.headers
|
41
|
+
body = self.call("QueryHunyuanTo3DJob", params, headers=headers)
|
42
|
+
response = json.loads(body)
|
43
|
+
model = models.QueryHunyuanTo3DJobResponse()
|
44
|
+
model._deserialize(response["Response"])
|
45
|
+
return model
|
46
|
+
except Exception as e:
|
47
|
+
if isinstance(e, TencentCloudSDKException):
|
48
|
+
raise
|
49
|
+
else:
|
50
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
51
|
+
|
52
|
+
|
53
|
+
def SubmitHunyuanTo3DJob(self, request):
|
54
|
+
"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
55
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
56
|
+
|
57
|
+
:param request: Request instance for SubmitHunyuanTo3DJob.
|
58
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DJobRequest`
|
59
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DJobResponse`
|
60
|
+
|
61
|
+
"""
|
62
|
+
try:
|
63
|
+
params = request._serialize()
|
64
|
+
headers = request.headers
|
65
|
+
body = self.call("SubmitHunyuanTo3DJob", params, headers=headers)
|
66
|
+
response = json.loads(body)
|
67
|
+
model = models.SubmitHunyuanTo3DJobResponse()
|
68
|
+
model._deserialize(response["Response"])
|
69
|
+
return model
|
70
|
+
except Exception as e:
|
71
|
+
if isinstance(e, TencentCloudSDKException):
|
72
|
+
raise
|
73
|
+
else:
|
74
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
@@ -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,461 @@
|
|
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 File3D(AbstractModel):
|
22
|
+
"""3D文件
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Type: 3D文件的格式。取值范围:OBJ
|
29
|
+
:type Type: str
|
30
|
+
:param _Url: 文件的Url(有效期24小时)
|
31
|
+
:type Url: str
|
32
|
+
:param _PreviewImageUrl: 预览图片Url
|
33
|
+
:type PreviewImageUrl: str
|
34
|
+
"""
|
35
|
+
self._Type = None
|
36
|
+
self._Url = None
|
37
|
+
self._PreviewImageUrl = None
|
38
|
+
|
39
|
+
@property
|
40
|
+
def Type(self):
|
41
|
+
"""3D文件的格式。取值范围:OBJ
|
42
|
+
:rtype: str
|
43
|
+
"""
|
44
|
+
return self._Type
|
45
|
+
|
46
|
+
@Type.setter
|
47
|
+
def Type(self, Type):
|
48
|
+
self._Type = Type
|
49
|
+
|
50
|
+
@property
|
51
|
+
def Url(self):
|
52
|
+
"""文件的Url(有效期24小时)
|
53
|
+
:rtype: str
|
54
|
+
"""
|
55
|
+
return self._Url
|
56
|
+
|
57
|
+
@Url.setter
|
58
|
+
def Url(self, Url):
|
59
|
+
self._Url = Url
|
60
|
+
|
61
|
+
@property
|
62
|
+
def PreviewImageUrl(self):
|
63
|
+
"""预览图片Url
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._PreviewImageUrl
|
67
|
+
|
68
|
+
@PreviewImageUrl.setter
|
69
|
+
def PreviewImageUrl(self, PreviewImageUrl):
|
70
|
+
self._PreviewImageUrl = PreviewImageUrl
|
71
|
+
|
72
|
+
|
73
|
+
def _deserialize(self, params):
|
74
|
+
self._Type = params.get("Type")
|
75
|
+
self._Url = params.get("Url")
|
76
|
+
self._PreviewImageUrl = params.get("PreviewImageUrl")
|
77
|
+
memeber_set = set(params.keys())
|
78
|
+
for name, value in vars(self).items():
|
79
|
+
property_name = name[1:]
|
80
|
+
if property_name in memeber_set:
|
81
|
+
memeber_set.remove(property_name)
|
82
|
+
if len(memeber_set) > 0:
|
83
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
class QueryHunyuanTo3DJobRequest(AbstractModel):
|
88
|
+
"""QueryHunyuanTo3DJob请求参数结构体
|
89
|
+
|
90
|
+
"""
|
91
|
+
|
92
|
+
def __init__(self):
|
93
|
+
r"""
|
94
|
+
:param _JobId: 任务ID。
|
95
|
+
:type JobId: str
|
96
|
+
"""
|
97
|
+
self._JobId = None
|
98
|
+
|
99
|
+
@property
|
100
|
+
def JobId(self):
|
101
|
+
"""任务ID。
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._JobId
|
105
|
+
|
106
|
+
@JobId.setter
|
107
|
+
def JobId(self, JobId):
|
108
|
+
self._JobId = JobId
|
109
|
+
|
110
|
+
|
111
|
+
def _deserialize(self, params):
|
112
|
+
self._JobId = params.get("JobId")
|
113
|
+
memeber_set = set(params.keys())
|
114
|
+
for name, value in vars(self).items():
|
115
|
+
property_name = name[1:]
|
116
|
+
if property_name in memeber_set:
|
117
|
+
memeber_set.remove(property_name)
|
118
|
+
if len(memeber_set) > 0:
|
119
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
class QueryHunyuanTo3DJobResponse(AbstractModel):
|
124
|
+
"""QueryHunyuanTo3DJob返回参数结构体
|
125
|
+
|
126
|
+
"""
|
127
|
+
|
128
|
+
def __init__(self):
|
129
|
+
r"""
|
130
|
+
:param _Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
131
|
+
:type Status: str
|
132
|
+
:param _ErrorCode: 错误码
|
133
|
+
:type ErrorCode: str
|
134
|
+
:param _ErrorMessage: 错误信息
|
135
|
+
:type ErrorMessage: str
|
136
|
+
:param _ResultFile3Ds: 生成的3D文件数组。
|
137
|
+
:type ResultFile3Ds: list of File3D
|
138
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
139
|
+
:type RequestId: str
|
140
|
+
"""
|
141
|
+
self._Status = None
|
142
|
+
self._ErrorCode = None
|
143
|
+
self._ErrorMessage = None
|
144
|
+
self._ResultFile3Ds = None
|
145
|
+
self._RequestId = None
|
146
|
+
|
147
|
+
@property
|
148
|
+
def Status(self):
|
149
|
+
"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._Status
|
153
|
+
|
154
|
+
@Status.setter
|
155
|
+
def Status(self, Status):
|
156
|
+
self._Status = Status
|
157
|
+
|
158
|
+
@property
|
159
|
+
def ErrorCode(self):
|
160
|
+
"""错误码
|
161
|
+
:rtype: str
|
162
|
+
"""
|
163
|
+
return self._ErrorCode
|
164
|
+
|
165
|
+
@ErrorCode.setter
|
166
|
+
def ErrorCode(self, ErrorCode):
|
167
|
+
self._ErrorCode = ErrorCode
|
168
|
+
|
169
|
+
@property
|
170
|
+
def ErrorMessage(self):
|
171
|
+
"""错误信息
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._ErrorMessage
|
175
|
+
|
176
|
+
@ErrorMessage.setter
|
177
|
+
def ErrorMessage(self, ErrorMessage):
|
178
|
+
self._ErrorMessage = ErrorMessage
|
179
|
+
|
180
|
+
@property
|
181
|
+
def ResultFile3Ds(self):
|
182
|
+
"""生成的3D文件数组。
|
183
|
+
:rtype: list of File3D
|
184
|
+
"""
|
185
|
+
return self._ResultFile3Ds
|
186
|
+
|
187
|
+
@ResultFile3Ds.setter
|
188
|
+
def ResultFile3Ds(self, ResultFile3Ds):
|
189
|
+
self._ResultFile3Ds = ResultFile3Ds
|
190
|
+
|
191
|
+
@property
|
192
|
+
def RequestId(self):
|
193
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._RequestId
|
197
|
+
|
198
|
+
@RequestId.setter
|
199
|
+
def RequestId(self, RequestId):
|
200
|
+
self._RequestId = RequestId
|
201
|
+
|
202
|
+
|
203
|
+
def _deserialize(self, params):
|
204
|
+
self._Status = params.get("Status")
|
205
|
+
self._ErrorCode = params.get("ErrorCode")
|
206
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
207
|
+
if params.get("ResultFile3Ds") is not None:
|
208
|
+
self._ResultFile3Ds = []
|
209
|
+
for item in params.get("ResultFile3Ds"):
|
210
|
+
obj = File3D()
|
211
|
+
obj._deserialize(item)
|
212
|
+
self._ResultFile3Ds.append(obj)
|
213
|
+
self._RequestId = params.get("RequestId")
|
214
|
+
|
215
|
+
|
216
|
+
class SubmitHunyuanTo3DJobRequest(AbstractModel):
|
217
|
+
"""SubmitHunyuanTo3DJob请求参数结构体
|
218
|
+
|
219
|
+
"""
|
220
|
+
|
221
|
+
def __init__(self):
|
222
|
+
r"""
|
223
|
+
:param _Prompt: 文生3D,3D内容的描述,中文正向提示词。
|
224
|
+
最多支持200个 utf-8 字符。
|
225
|
+
文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
|
226
|
+
:type Prompt: str
|
227
|
+
:param _ImageBase64: 输入图 Base64 数据。
|
228
|
+
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
229
|
+
格式:jpg,png,jpeg,webp。
|
230
|
+
ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
231
|
+
:type ImageBase64: str
|
232
|
+
:param _ImageUrl: 输入图Url。
|
233
|
+
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
234
|
+
格式:jpg,png,jpeg,webp。
|
235
|
+
ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
236
|
+
:type ImageUrl: str
|
237
|
+
:param _MultiViewImages: 多视角的模型图片,视角参考值:
|
238
|
+
left:左视图;
|
239
|
+
right:右视图;
|
240
|
+
back:后视图;
|
241
|
+
|
242
|
+
每个视角仅限制一张图片。
|
243
|
+
●图片大小限制:编码后大小不可超过8M。
|
244
|
+
●图片分辨率限制:单边分辨率小于5000且大于128。
|
245
|
+
●支持图片格式:支持jpg或png
|
246
|
+
:type MultiViewImages: list of ViewImage
|
247
|
+
:param _ResultFormat: 生成模型的格式,仅限制生成一种格式。
|
248
|
+
生成模型文件组默认返回obj格式。
|
249
|
+
可选值:OBJ,GLB,STL,USDZ,FBX,MP4。
|
250
|
+
:type ResultFormat: str
|
251
|
+
:param _EnablePBR: 是否开启 PBR材质生成,默认 false。
|
252
|
+
:type EnablePBR: bool
|
253
|
+
"""
|
254
|
+
self._Prompt = None
|
255
|
+
self._ImageBase64 = None
|
256
|
+
self._ImageUrl = None
|
257
|
+
self._MultiViewImages = None
|
258
|
+
self._ResultFormat = None
|
259
|
+
self._EnablePBR = None
|
260
|
+
|
261
|
+
@property
|
262
|
+
def Prompt(self):
|
263
|
+
"""文生3D,3D内容的描述,中文正向提示词。
|
264
|
+
最多支持200个 utf-8 字符。
|
265
|
+
文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
|
266
|
+
:rtype: str
|
267
|
+
"""
|
268
|
+
return self._Prompt
|
269
|
+
|
270
|
+
@Prompt.setter
|
271
|
+
def Prompt(self, Prompt):
|
272
|
+
self._Prompt = Prompt
|
273
|
+
|
274
|
+
@property
|
275
|
+
def ImageBase64(self):
|
276
|
+
"""输入图 Base64 数据。
|
277
|
+
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
278
|
+
格式:jpg,png,jpeg,webp。
|
279
|
+
ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
280
|
+
:rtype: str
|
281
|
+
"""
|
282
|
+
return self._ImageBase64
|
283
|
+
|
284
|
+
@ImageBase64.setter
|
285
|
+
def ImageBase64(self, ImageBase64):
|
286
|
+
self._ImageBase64 = ImageBase64
|
287
|
+
|
288
|
+
@property
|
289
|
+
def ImageUrl(self):
|
290
|
+
"""输入图Url。
|
291
|
+
大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
292
|
+
格式:jpg,png,jpeg,webp。
|
293
|
+
ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
294
|
+
:rtype: str
|
295
|
+
"""
|
296
|
+
return self._ImageUrl
|
297
|
+
|
298
|
+
@ImageUrl.setter
|
299
|
+
def ImageUrl(self, ImageUrl):
|
300
|
+
self._ImageUrl = ImageUrl
|
301
|
+
|
302
|
+
@property
|
303
|
+
def MultiViewImages(self):
|
304
|
+
"""多视角的模型图片,视角参考值:
|
305
|
+
left:左视图;
|
306
|
+
right:右视图;
|
307
|
+
back:后视图;
|
308
|
+
|
309
|
+
每个视角仅限制一张图片。
|
310
|
+
●图片大小限制:编码后大小不可超过8M。
|
311
|
+
●图片分辨率限制:单边分辨率小于5000且大于128。
|
312
|
+
●支持图片格式:支持jpg或png
|
313
|
+
:rtype: list of ViewImage
|
314
|
+
"""
|
315
|
+
return self._MultiViewImages
|
316
|
+
|
317
|
+
@MultiViewImages.setter
|
318
|
+
def MultiViewImages(self, MultiViewImages):
|
319
|
+
self._MultiViewImages = MultiViewImages
|
320
|
+
|
321
|
+
@property
|
322
|
+
def ResultFormat(self):
|
323
|
+
"""生成模型的格式,仅限制生成一种格式。
|
324
|
+
生成模型文件组默认返回obj格式。
|
325
|
+
可选值:OBJ,GLB,STL,USDZ,FBX,MP4。
|
326
|
+
:rtype: str
|
327
|
+
"""
|
328
|
+
return self._ResultFormat
|
329
|
+
|
330
|
+
@ResultFormat.setter
|
331
|
+
def ResultFormat(self, ResultFormat):
|
332
|
+
self._ResultFormat = ResultFormat
|
333
|
+
|
334
|
+
@property
|
335
|
+
def EnablePBR(self):
|
336
|
+
"""是否开启 PBR材质生成,默认 false。
|
337
|
+
:rtype: bool
|
338
|
+
"""
|
339
|
+
return self._EnablePBR
|
340
|
+
|
341
|
+
@EnablePBR.setter
|
342
|
+
def EnablePBR(self, EnablePBR):
|
343
|
+
self._EnablePBR = EnablePBR
|
344
|
+
|
345
|
+
|
346
|
+
def _deserialize(self, params):
|
347
|
+
self._Prompt = params.get("Prompt")
|
348
|
+
self._ImageBase64 = params.get("ImageBase64")
|
349
|
+
self._ImageUrl = params.get("ImageUrl")
|
350
|
+
if params.get("MultiViewImages") is not None:
|
351
|
+
self._MultiViewImages = []
|
352
|
+
for item in params.get("MultiViewImages"):
|
353
|
+
obj = ViewImage()
|
354
|
+
obj._deserialize(item)
|
355
|
+
self._MultiViewImages.append(obj)
|
356
|
+
self._ResultFormat = params.get("ResultFormat")
|
357
|
+
self._EnablePBR = params.get("EnablePBR")
|
358
|
+
memeber_set = set(params.keys())
|
359
|
+
for name, value in vars(self).items():
|
360
|
+
property_name = name[1:]
|
361
|
+
if property_name in memeber_set:
|
362
|
+
memeber_set.remove(property_name)
|
363
|
+
if len(memeber_set) > 0:
|
364
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
class SubmitHunyuanTo3DJobResponse(AbstractModel):
|
369
|
+
"""SubmitHunyuanTo3DJob返回参数结构体
|
370
|
+
|
371
|
+
"""
|
372
|
+
|
373
|
+
def __init__(self):
|
374
|
+
r"""
|
375
|
+
:param _JobId: 任务ID(有效期24小时)
|
376
|
+
:type JobId: str
|
377
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
378
|
+
:type RequestId: str
|
379
|
+
"""
|
380
|
+
self._JobId = None
|
381
|
+
self._RequestId = None
|
382
|
+
|
383
|
+
@property
|
384
|
+
def JobId(self):
|
385
|
+
"""任务ID(有效期24小时)
|
386
|
+
:rtype: str
|
387
|
+
"""
|
388
|
+
return self._JobId
|
389
|
+
|
390
|
+
@JobId.setter
|
391
|
+
def JobId(self, JobId):
|
392
|
+
self._JobId = JobId
|
393
|
+
|
394
|
+
@property
|
395
|
+
def RequestId(self):
|
396
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
397
|
+
:rtype: str
|
398
|
+
"""
|
399
|
+
return self._RequestId
|
400
|
+
|
401
|
+
@RequestId.setter
|
402
|
+
def RequestId(self, RequestId):
|
403
|
+
self._RequestId = RequestId
|
404
|
+
|
405
|
+
|
406
|
+
def _deserialize(self, params):
|
407
|
+
self._JobId = params.get("JobId")
|
408
|
+
self._RequestId = params.get("RequestId")
|
409
|
+
|
410
|
+
|
411
|
+
class ViewImage(AbstractModel):
|
412
|
+
"""多视角图片
|
413
|
+
|
414
|
+
"""
|
415
|
+
|
416
|
+
def __init__(self):
|
417
|
+
r"""
|
418
|
+
:param _ViewType: 视角类型。
|
419
|
+
取值:back、left、right
|
420
|
+
:type ViewType: str
|
421
|
+
:param _ViewImageUrl: 图片Url地址
|
422
|
+
:type ViewImageUrl: str
|
423
|
+
"""
|
424
|
+
self._ViewType = None
|
425
|
+
self._ViewImageUrl = None
|
426
|
+
|
427
|
+
@property
|
428
|
+
def ViewType(self):
|
429
|
+
"""视角类型。
|
430
|
+
取值:back、left、right
|
431
|
+
:rtype: str
|
432
|
+
"""
|
433
|
+
return self._ViewType
|
434
|
+
|
435
|
+
@ViewType.setter
|
436
|
+
def ViewType(self, ViewType):
|
437
|
+
self._ViewType = ViewType
|
438
|
+
|
439
|
+
@property
|
440
|
+
def ViewImageUrl(self):
|
441
|
+
"""图片Url地址
|
442
|
+
:rtype: str
|
443
|
+
"""
|
444
|
+
return self._ViewImageUrl
|
445
|
+
|
446
|
+
@ViewImageUrl.setter
|
447
|
+
def ViewImageUrl(self, ViewImageUrl):
|
448
|
+
self._ViewImageUrl = ViewImageUrl
|
449
|
+
|
450
|
+
|
451
|
+
def _deserialize(self, params):
|
452
|
+
self._ViewType = params.get("ViewType")
|
453
|
+
self._ViewImageUrl = params.get("ViewImageUrl")
|
454
|
+
memeber_set = set(params.keys())
|
455
|
+
for name, value in vars(self).items():
|
456
|
+
property_name = name[1:]
|
457
|
+
if property_name in memeber_set:
|
458
|
+
memeber_set.remove(property_name)
|
459
|
+
if len(memeber_set) > 0:
|
460
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
461
|
+
|
@@ -401,6 +401,9 @@ RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = 'ResourceNotFound.AutoScaling
|
|
401
401
|
# 指定的带宽包ID不存在。
|
402
402
|
RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = 'ResourceNotFound.BandwidthPackageIdNotFound'
|
403
403
|
|
404
|
+
# 指定的传统型负载均衡器ID不存在。
|
405
|
+
RESOURCENOTFOUND_CLASSICLOADBALANCERNOTFOUND = 'ResourceNotFound.ClassicLoadBalancerNotFound'
|
406
|
+
|
404
407
|
# 指定的 CMQ queue 不存在。
|
405
408
|
RESOURCENOTFOUND_CMQQUEUENOTFOUND = 'ResourceNotFound.CmqQueueNotFound'
|
406
409
|
|