tencentcloud-sdk-ai3d 3.0.1178 → 3.0.1182

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83bfa94064325e9db7057e98e9ad03b0143487d7
4
- data.tar.gz: d39c53f67408162b36b841479886b95500fa8db1
3
+ metadata.gz: a87d03f77d5d2c36499f27c8a7086d5506433891
4
+ data.tar.gz: f9fd28a6c3a64223159f145297dc8e62add1bdf7
5
5
  SHA512:
6
- metadata.gz: 026ae349f5da3e0bdb6e71e5952372952013c6e8c39f745d0e9af0d38a4ecc619c8c31fd05ab98dbb5f8fd722a64ecd6049ac367a93723267d93dbaa471151d9
7
- data.tar.gz: 4678238ea84e432453f15dedff02e426b332e4914eecbe9f3305859f21ddaf7a1cefb6e6d3485261a4b165bbbcc395892ca4a3909208fe3a7edfac35db037248
6
+ metadata.gz: fb4237cb830549b9167e61c22afe7ceeed6b08fdb99fe416d3f685447cde225ff60f633fdca06b2d8787e7178c5248624dbeda7aa36cbfeb1c2f214b2396559c
7
+ data.tar.gz: b4cd30b17cce0e7d0a6d0c97323f89f510d1213f7838bda8930e24554837771a989874c68fc1f790e3d3117f363b402ece2baa3614fcd548b4b56d4ebb1d857d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1178
1
+ 3.0.1182
@@ -29,6 +29,128 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 输入3D模型文件后,可进行3D模型文件格式转换。
33
+
34
+ # @param request: Request instance for Convert3DFormat.
35
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::Convert3DFormatRequest`
36
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::Convert3DFormatResponse`
37
+ def Convert3DFormat(request)
38
+ body = send_request('Convert3DFormat', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = Convert3DFormatResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 查询组件拆分任务。
57
+
58
+ # @param request: Request instance for DescribeHunyuanTo3DUVJob.
59
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::DescribeHunyuanTo3DUVJobRequest`
60
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::DescribeHunyuanTo3DUVJobResponse`
61
+ def DescribeHunyuanTo3DUVJob(request)
62
+ body = send_request('DescribeHunyuanTo3DUVJob', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeHunyuanTo3DUVJobResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
81
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
82
+
83
+ # @param request: Request instance for DescribeReduceFaceJob.
84
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::DescribeReduceFaceJobRequest`
85
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::DescribeReduceFaceJobResponse`
86
+ def DescribeReduceFaceJob(request)
87
+ body = send_request('DescribeReduceFaceJob', request.serialize)
88
+ response = JSON.parse(body)
89
+ if response['Response'].key?('Error') == false
90
+ model = DescribeReduceFaceJobResponse.new
91
+ model.deserialize(response['Response'])
92
+ model
93
+ else
94
+ code = response['Response']['Error']['Code']
95
+ message = response['Response']['Error']['Message']
96
+ reqid = response['Response']['RequestId']
97
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
98
+ end
99
+ rescue TencentCloud::Common::TencentCloudSDKException => e
100
+ raise e
101
+ rescue StandardError => e
102
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
103
+ end
104
+
105
+ # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
106
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
107
+
108
+ # @param request: Request instance for DescribeTextureTo3DJob.
109
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::DescribeTextureTo3DJobRequest`
110
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::DescribeTextureTo3DJobResponse`
111
+ def DescribeTextureTo3DJob(request)
112
+ body = send_request('DescribeTextureTo3DJob', request.serialize)
113
+ response = JSON.parse(body)
114
+ if response['Response'].key?('Error') == false
115
+ model = DescribeTextureTo3DJobResponse.new
116
+ model.deserialize(response['Response'])
117
+ model
118
+ else
119
+ code = response['Response']['Error']['Code']
120
+ message = response['Response']['Error']['Message']
121
+ reqid = response['Response']['RequestId']
122
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
123
+ end
124
+ rescue TencentCloud::Common::TencentCloudSDKException => e
125
+ raise e
126
+ rescue StandardError => e
127
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
128
+ end
129
+
130
+ # 查询组件生成任务。
131
+
132
+ # @param request: Request instance for QueryHunyuan3DPartJob.
133
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::QueryHunyuan3DPartJobRequest`
134
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::QueryHunyuan3DPartJobResponse`
135
+ def QueryHunyuan3DPartJob(request)
136
+ body = send_request('QueryHunyuan3DPartJob', request.serialize)
137
+ response = JSON.parse(body)
138
+ if response['Response'].key?('Error') == false
139
+ model = QueryHunyuan3DPartJobResponse.new
140
+ model.deserialize(response['Response'])
141
+ model
142
+ else
143
+ code = response['Response']['Error']['Code']
144
+ message = response['Response']['Error']['Message']
145
+ reqid = response['Response']['RequestId']
146
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
147
+ end
148
+ rescue TencentCloud::Common::TencentCloudSDKException => e
149
+ raise e
150
+ rescue StandardError => e
151
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
152
+ end
153
+
32
154
  # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
33
155
  # 默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
34
156
 
@@ -79,6 +201,30 @@ module TencentCloud
79
201
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
80
202
  end
81
203
 
204
+ # 输入3D模型文件后,根据模型结构自动进行组件识别生成。
205
+
206
+ # @param request: Request instance for SubmitHunyuan3DPartJob.
207
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuan3DPartJobRequest`
208
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuan3DPartJobResponse`
209
+ def SubmitHunyuan3DPartJob(request)
210
+ body = send_request('SubmitHunyuan3DPartJob', request.serialize)
211
+ response = JSON.parse(body)
212
+ if response['Response'].key?('Error') == false
213
+ model = SubmitHunyuan3DPartJobResponse.new
214
+ model.deserialize(response['Response'])
215
+ model
216
+ else
217
+ code = response['Response']['Error']['Code']
218
+ message = response['Response']['Error']['Message']
219
+ reqid = response['Response']['RequestId']
220
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
221
+ end
222
+ rescue TencentCloud::Common::TencentCloudSDKException => e
223
+ raise e
224
+ rescue StandardError => e
225
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
226
+ end
227
+
82
228
  # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
83
229
  # 默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
84
230
 
@@ -129,6 +275,80 @@ module TencentCloud
129
275
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
130
276
  end
131
277
 
278
+ # 输入模型后,可根据模型纹理进行UV展开,输出对应UV贴图。
279
+
280
+ # @param request: Request instance for SubmitHunyuanTo3DUVJob.
281
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DUVJobRequest`
282
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DUVJobResponse`
283
+ def SubmitHunyuanTo3DUVJob(request)
284
+ body = send_request('SubmitHunyuanTo3DUVJob', request.serialize)
285
+ response = JSON.parse(body)
286
+ if response['Response'].key?('Error') == false
287
+ model = SubmitHunyuanTo3DUVJobResponse.new
288
+ model.deserialize(response['Response'])
289
+ model
290
+ else
291
+ code = response['Response']['Error']['Code']
292
+ message = response['Response']['Error']['Message']
293
+ reqid = response['Response']['RequestId']
294
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
295
+ end
296
+ rescue TencentCloud::Common::TencentCloudSDKException => e
297
+ raise e
298
+ rescue StandardError => e
299
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
300
+ end
301
+
302
+ # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
303
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
304
+
305
+ # @param request: Request instance for SubmitReduceFaceJob.
306
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitReduceFaceJobRequest`
307
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitReduceFaceJobResponse`
308
+ def SubmitReduceFaceJob(request)
309
+ body = send_request('SubmitReduceFaceJob', request.serialize)
310
+ response = JSON.parse(body)
311
+ if response['Response'].key?('Error') == false
312
+ model = SubmitReduceFaceJobResponse.new
313
+ model.deserialize(response['Response'])
314
+ model
315
+ else
316
+ code = response['Response']['Error']['Code']
317
+ message = response['Response']['Error']['Message']
318
+ reqid = response['Response']['RequestId']
319
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
320
+ end
321
+ rescue TencentCloud::Common::TencentCloudSDKException => e
322
+ raise e
323
+ rescue StandardError => e
324
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
325
+ end
326
+
327
+ # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
328
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
329
+
330
+ # @param request: Request instance for SubmitTextureTo3DJob.
331
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitTextureTo3DJobRequest`
332
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitTextureTo3DJobResponse`
333
+ def SubmitTextureTo3DJob(request)
334
+ body = send_request('SubmitTextureTo3DJob', request.serialize)
335
+ response = JSON.parse(body)
336
+ if response['Response'].key?('Error') == false
337
+ model = SubmitTextureTo3DJobResponse.new
338
+ model.deserialize(response['Response'])
339
+ model
340
+ else
341
+ code = response['Response']['Error']['Code']
342
+ message = response['Response']['Error']['Message']
343
+ reqid = response['Response']['RequestId']
344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
345
+ end
346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
347
+ raise e
348
+ rescue StandardError => e
349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
350
+ end
351
+
132
352
 
133
353
  end
134
354
  end
@@ -17,6 +17,211 @@
17
17
  module TencentCloud
18
18
  module Ai3d
19
19
  module V20250513
20
+ # Convert3DFormat请求参数结构体
21
+ class Convert3DFormatRequest < TencentCloud::Common::AbstractModel
22
+ # @param File3D: 3D文件url地址。
23
+ # @type File3D: String
24
+ # @param Format: 返回的3D文件格式,参考值:STL, USDZ, FBX, MP4, GIF。
25
+ # @type Format: String
26
+
27
+ attr_accessor :File3D, :Format
28
+
29
+ def initialize(file3d=nil, format=nil)
30
+ @File3D = file3d
31
+ @Format = format
32
+ end
33
+
34
+ def deserialize(params)
35
+ @File3D = params['File3D']
36
+ @Format = params['Format']
37
+ end
38
+ end
39
+
40
+ # Convert3DFormat返回参数结构体
41
+ class Convert3DFormatResponse < TencentCloud::Common::AbstractModel
42
+ # @param ResultFile3D: 3D文件地址
43
+ # @type ResultFile3D: String
44
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
45
+ # @type RequestId: String
46
+
47
+ attr_accessor :ResultFile3D, :RequestId
48
+
49
+ def initialize(resultfile3d=nil, requestid=nil)
50
+ @ResultFile3D = resultfile3d
51
+ @RequestId = requestid
52
+ end
53
+
54
+ def deserialize(params)
55
+ @ResultFile3D = params['ResultFile3D']
56
+ @RequestId = params['RequestId']
57
+ end
58
+ end
59
+
60
+ # DescribeHunyuanTo3DUVJob请求参数结构体
61
+ class DescribeHunyuanTo3DUVJobRequest < TencentCloud::Common::AbstractModel
62
+ # @param JobId: 任务ID。
63
+ # @type JobId: String
64
+
65
+ attr_accessor :JobId
66
+
67
+ def initialize(jobid=nil)
68
+ @JobId = jobid
69
+ end
70
+
71
+ def deserialize(params)
72
+ @JobId = params['JobId']
73
+ end
74
+ end
75
+
76
+ # DescribeHunyuanTo3DUVJob返回参数结构体
77
+ class DescribeHunyuanTo3DUVJobResponse < TencentCloud::Common::AbstractModel
78
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。
79
+ # @type Status: String
80
+ # @param ErrorCode: 错误码。
81
+ # @type ErrorCode: String
82
+ # @param ErrorMessage: 错误信息。
83
+ # @type ErrorMessage: String
84
+ # @param ResultFile3Ds: 生成文件的URL地址,有效期1天。
85
+ # @type ResultFile3Ds: Array
86
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
87
+ # @type RequestId: String
88
+
89
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
90
+
91
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
92
+ @Status = status
93
+ @ErrorCode = errorcode
94
+ @ErrorMessage = errormessage
95
+ @ResultFile3Ds = resultfile3ds
96
+ @RequestId = requestid
97
+ end
98
+
99
+ def deserialize(params)
100
+ @Status = params['Status']
101
+ @ErrorCode = params['ErrorCode']
102
+ @ErrorMessage = params['ErrorMessage']
103
+ unless params['ResultFile3Ds'].nil?
104
+ @ResultFile3Ds = []
105
+ params['ResultFile3Ds'].each do |i|
106
+ file3d_tmp = File3D.new
107
+ file3d_tmp.deserialize(i)
108
+ @ResultFile3Ds << file3d_tmp
109
+ end
110
+ end
111
+ @RequestId = params['RequestId']
112
+ end
113
+ end
114
+
115
+ # DescribeReduceFaceJob请求参数结构体
116
+ class DescribeReduceFaceJobRequest < TencentCloud::Common::AbstractModel
117
+ # @param JobId: 任务ID。
118
+ # @type JobId: String
119
+
120
+ attr_accessor :JobId
121
+
122
+ def initialize(jobid=nil)
123
+ @JobId = jobid
124
+ end
125
+
126
+ def deserialize(params)
127
+ @JobId = params['JobId']
128
+ end
129
+ end
130
+
131
+ # DescribeReduceFaceJob返回参数结构体
132
+ class DescribeReduceFaceJobResponse < TencentCloud::Common::AbstractModel
133
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
134
+ # @type Status: String
135
+ # @param ErrorCode: 错误码
136
+ # @type ErrorCode: String
137
+ # @param ErrorMessage: 错误信息
138
+ # @type ErrorMessage: String
139
+ # @param ResultFile3Ds: 生成的3D文件数组。
140
+ # @type ResultFile3Ds: Array
141
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
142
+ # @type RequestId: String
143
+
144
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
145
+
146
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
147
+ @Status = status
148
+ @ErrorCode = errorcode
149
+ @ErrorMessage = errormessage
150
+ @ResultFile3Ds = resultfile3ds
151
+ @RequestId = requestid
152
+ end
153
+
154
+ def deserialize(params)
155
+ @Status = params['Status']
156
+ @ErrorCode = params['ErrorCode']
157
+ @ErrorMessage = params['ErrorMessage']
158
+ unless params['ResultFile3Ds'].nil?
159
+ @ResultFile3Ds = []
160
+ params['ResultFile3Ds'].each do |i|
161
+ file3d_tmp = File3D.new
162
+ file3d_tmp.deserialize(i)
163
+ @ResultFile3Ds << file3d_tmp
164
+ end
165
+ end
166
+ @RequestId = params['RequestId']
167
+ end
168
+ end
169
+
170
+ # DescribeTextureTo3DJob请求参数结构体
171
+ class DescribeTextureTo3DJobRequest < TencentCloud::Common::AbstractModel
172
+ # @param JobId: 任务ID。
173
+ # @type JobId: String
174
+
175
+ attr_accessor :JobId
176
+
177
+ def initialize(jobid=nil)
178
+ @JobId = jobid
179
+ end
180
+
181
+ def deserialize(params)
182
+ @JobId = params['JobId']
183
+ end
184
+ end
185
+
186
+ # DescribeTextureTo3DJob返回参数结构体
187
+ class DescribeTextureTo3DJobResponse < TencentCloud::Common::AbstractModel
188
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
189
+ # @type Status: String
190
+ # @param ErrorCode: 错误码
191
+ # @type ErrorCode: String
192
+ # @param ErrorMessage: 错误信息
193
+ # @type ErrorMessage: String
194
+ # @param ResultFile3Ds: 生成的3D文件数组。
195
+ # @type ResultFile3Ds: Array
196
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
197
+ # @type RequestId: String
198
+
199
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
200
+
201
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
202
+ @Status = status
203
+ @ErrorCode = errorcode
204
+ @ErrorMessage = errormessage
205
+ @ResultFile3Ds = resultfile3ds
206
+ @RequestId = requestid
207
+ end
208
+
209
+ def deserialize(params)
210
+ @Status = params['Status']
211
+ @ErrorCode = params['ErrorCode']
212
+ @ErrorMessage = params['ErrorMessage']
213
+ unless params['ResultFile3Ds'].nil?
214
+ @ResultFile3Ds = []
215
+ params['ResultFile3Ds'].each do |i|
216
+ file3d_tmp = File3D.new
217
+ file3d_tmp.deserialize(i)
218
+ @ResultFile3Ds << file3d_tmp
219
+ end
220
+ end
221
+ @RequestId = params['RequestId']
222
+ end
223
+ end
224
+
20
225
  # 3D文件
21
226
  class File3D < TencentCloud::Common::AbstractModel
22
227
  # @param Type: 文件格式
@@ -41,6 +246,101 @@ module TencentCloud
41
246
  end
42
247
  end
43
248
 
249
+ # 图片
250
+ class Image < TencentCloud::Common::AbstractModel
251
+ # @param Base64: 图片base64
252
+ # @type Base64: String
253
+ # @param Url: 图片url
254
+ # @type Url: String
255
+
256
+ attr_accessor :Base64, :Url
257
+
258
+ def initialize(base64=nil, url=nil)
259
+ @Base64 = base64
260
+ @Url = url
261
+ end
262
+
263
+ def deserialize(params)
264
+ @Base64 = params['Base64']
265
+ @Url = params['Url']
266
+ end
267
+ end
268
+
269
+ # 3D文件
270
+ class InputFile3D < TencentCloud::Common::AbstractModel
271
+ # @param Url: 文件的Url(有效期24小时)
272
+ # @type Url: String
273
+ # @param Type: 文件格式
274
+ # @type Type: String
275
+
276
+ attr_accessor :Url, :Type
277
+
278
+ def initialize(url=nil, type=nil)
279
+ @Url = url
280
+ @Type = type
281
+ end
282
+
283
+ def deserialize(params)
284
+ @Url = params['Url']
285
+ @Type = params['Type']
286
+ end
287
+ end
288
+
289
+ # QueryHunyuan3DPartJob请求参数结构体
290
+ class QueryHunyuan3DPartJobRequest < TencentCloud::Common::AbstractModel
291
+ # @param JobId: 任务ID。
292
+ # @type JobId: String
293
+
294
+ attr_accessor :JobId
295
+
296
+ def initialize(jobid=nil)
297
+ @JobId = jobid
298
+ end
299
+
300
+ def deserialize(params)
301
+ @JobId = params['JobId']
302
+ end
303
+ end
304
+
305
+ # QueryHunyuan3DPartJob返回参数结构体
306
+ class QueryHunyuan3DPartJobResponse < TencentCloud::Common::AbstractModel
307
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。
308
+ # @type Status: String
309
+ # @param ErrorCode: 错误码。
310
+ # @type ErrorCode: String
311
+ # @param ErrorMessage: 错误信息。
312
+ # @type ErrorMessage: String
313
+ # @param ResultFile3Ds: 生成文件的URL地址,有效期1天。
314
+ # @type ResultFile3Ds: Array
315
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
316
+ # @type RequestId: String
317
+
318
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
319
+
320
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
321
+ @Status = status
322
+ @ErrorCode = errorcode
323
+ @ErrorMessage = errormessage
324
+ @ResultFile3Ds = resultfile3ds
325
+ @RequestId = requestid
326
+ end
327
+
328
+ def deserialize(params)
329
+ @Status = params['Status']
330
+ @ErrorCode = params['ErrorCode']
331
+ @ErrorMessage = params['ErrorMessage']
332
+ unless params['ResultFile3Ds'].nil?
333
+ @ResultFile3Ds = []
334
+ params['ResultFile3Ds'].each do |i|
335
+ file3d_tmp = File3D.new
336
+ file3d_tmp.deserialize(i)
337
+ @ResultFile3Ds << file3d_tmp
338
+ end
339
+ end
340
+ @RequestId = params['RequestId']
341
+ end
342
+ end
343
+
44
344
  # QueryHunyuanTo3DProJob请求参数结构体
45
345
  class QueryHunyuanTo3DProJobRequest < TencentCloud::Common::AbstractModel
46
346
  # @param JobId: 任务ID。
@@ -151,6 +451,45 @@ module TencentCloud
151
451
  end
152
452
  end
153
453
 
454
+ # SubmitHunyuan3DPartJob请求参数结构体
455
+ class SubmitHunyuan3DPartJobRequest < TencentCloud::Common::AbstractModel
456
+ # @param File: 需进行组件生成的3D模型文件,仅支持FBX格式。
457
+ # @type File: :class:`Tencentcloud::Ai3d.v20250513.models.InputFile3D`
458
+
459
+ attr_accessor :File
460
+
461
+ def initialize(file=nil)
462
+ @File = file
463
+ end
464
+
465
+ def deserialize(params)
466
+ unless params['File'].nil?
467
+ @File = InputFile3D.new
468
+ @File.deserialize(params['File'])
469
+ end
470
+ end
471
+ end
472
+
473
+ # SubmitHunyuan3DPartJob返回参数结构体
474
+ class SubmitHunyuan3DPartJobResponse < TencentCloud::Common::AbstractModel
475
+ # @param JobId: 任务ID。
476
+ # @type JobId: String
477
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
478
+ # @type RequestId: String
479
+
480
+ attr_accessor :JobId, :RequestId
481
+
482
+ def initialize(jobid=nil, requestid=nil)
483
+ @JobId = jobid
484
+ @RequestId = requestid
485
+ end
486
+
487
+ def deserialize(params)
488
+ @JobId = params['JobId']
489
+ @RequestId = params['RequestId']
490
+ end
491
+ end
492
+
154
493
  # SubmitHunyuanTo3DProJob请求参数结构体
155
494
  class SubmitHunyuanTo3DProJobRequest < TencentCloud::Common::AbstractModel
156
495
  # @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
@@ -313,6 +652,154 @@ module TencentCloud
313
652
  end
314
653
  end
315
654
 
655
+ # SubmitHunyuanTo3DUVJob请求参数结构体
656
+ class SubmitHunyuanTo3DUVJobRequest < TencentCloud::Common::AbstractModel
657
+ # @param File: 需进行UV展开的3D文件URL,可支持FBX,OBJ,GLB格式。
658
+ # @type File: :class:`Tencentcloud::Ai3d.v20250513.models.InputFile3D`
659
+
660
+ attr_accessor :File
661
+
662
+ def initialize(file=nil)
663
+ @File = file
664
+ end
665
+
666
+ def deserialize(params)
667
+ unless params['File'].nil?
668
+ @File = InputFile3D.new
669
+ @File.deserialize(params['File'])
670
+ end
671
+ end
672
+ end
673
+
674
+ # SubmitHunyuanTo3DUVJob返回参数结构体
675
+ class SubmitHunyuanTo3DUVJobResponse < TencentCloud::Common::AbstractModel
676
+ # @param JobId: 任务ID。
677
+ # @type JobId: String
678
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
679
+ # @type RequestId: String
680
+
681
+ attr_accessor :JobId, :RequestId
682
+
683
+ def initialize(jobid=nil, requestid=nil)
684
+ @JobId = jobid
685
+ @RequestId = requestid
686
+ end
687
+
688
+ def deserialize(params)
689
+ @JobId = params['JobId']
690
+ @RequestId = params['RequestId']
691
+ end
692
+ end
693
+
694
+ # SubmitReduceFaceJob请求参数结构体
695
+ class SubmitReduceFaceJobRequest < TencentCloud::Common::AbstractModel
696
+ # @param File3D: 源3D模型文件。其中参数 Type 和 Url 必填,参数 PreviewImageUrl 无意义,可忽略。
697
+ # Type可选值:OBJ,GLB
698
+ # @type File3D: :class:`Tencentcloud::Ai3d.v20250513.models.File3D`
699
+ # @param PolygonType: 多边形类型,表示模型的表面由几边形网格构成,默认为triangle,参考值:
700
+ # triangle:三角形面。
701
+ # quadrilateral:四边形面。
702
+ # @type PolygonType: String
703
+ # @param FaceLevel: 减面后面数档位类型,可选值:high,medium, low。
704
+ # @type FaceLevel: String
705
+
706
+ attr_accessor :File3D, :PolygonType, :FaceLevel
707
+
708
+ def initialize(file3d=nil, polygontype=nil, facelevel=nil)
709
+ @File3D = file3d
710
+ @PolygonType = polygontype
711
+ @FaceLevel = facelevel
712
+ end
713
+
714
+ def deserialize(params)
715
+ unless params['File3D'].nil?
716
+ @File3D = File3D.new
717
+ @File3D.deserialize(params['File3D'])
718
+ end
719
+ @PolygonType = params['PolygonType']
720
+ @FaceLevel = params['FaceLevel']
721
+ end
722
+ end
723
+
724
+ # SubmitReduceFaceJob返回参数结构体
725
+ class SubmitReduceFaceJobResponse < TencentCloud::Common::AbstractModel
726
+ # @param JobId: 任务ID(有效期24小时)
727
+ # @type JobId: String
728
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
729
+ # @type RequestId: String
730
+
731
+ attr_accessor :JobId, :RequestId
732
+
733
+ def initialize(jobid=nil, requestid=nil)
734
+ @JobId = jobid
735
+ @RequestId = requestid
736
+ end
737
+
738
+ def deserialize(params)
739
+ @JobId = params['JobId']
740
+ @RequestId = params['RequestId']
741
+ end
742
+ end
743
+
744
+ # SubmitTextureTo3DJob请求参数结构体
745
+ class SubmitTextureTo3DJobRequest < TencentCloud::Common::AbstractModel
746
+ # @param File3D: 源3D模型文件。
747
+ # Type可选值:OBJ,GLB
748
+ # @type File3D: :class:`Tencentcloud::Ai3d.v20250513.models.File3D`
749
+ # @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
750
+ # 最多支持200个 utf-8 字符。
751
+ # 文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
752
+ # @type Prompt: String
753
+ # @param Image: 3D模型纹理参考图 Base64 数据和参考图图 Url。
754
+ # - Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
755
+ # - 图片限制:单边分辨率小于4096且大于128,转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png。
756
+ # @type Image: :class:`Tencentcloud::Ai3d.v20250513.models.Image`
757
+ # @param EnablePBR: 是否开启 PBR材质生成,默认 false。
758
+ # @type EnablePBR: Boolean
759
+
760
+ attr_accessor :File3D, :Prompt, :Image, :EnablePBR
761
+
762
+ def initialize(file3d=nil, prompt=nil, image=nil, enablepbr=nil)
763
+ @File3D = file3d
764
+ @Prompt = prompt
765
+ @Image = image
766
+ @EnablePBR = enablepbr
767
+ end
768
+
769
+ def deserialize(params)
770
+ unless params['File3D'].nil?
771
+ @File3D = File3D.new
772
+ @File3D.deserialize(params['File3D'])
773
+ end
774
+ @Prompt = params['Prompt']
775
+ unless params['Image'].nil?
776
+ @Image = Image.new
777
+ @Image.deserialize(params['Image'])
778
+ end
779
+ @EnablePBR = params['EnablePBR']
780
+ end
781
+ end
782
+
783
+ # SubmitTextureTo3DJob返回参数结构体
784
+ class SubmitTextureTo3DJobResponse < TencentCloud::Common::AbstractModel
785
+ # @param JobId: 任务ID(有效期24小时)
786
+ # @type JobId: String
787
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
788
+ # @type RequestId: String
789
+
790
+ attr_accessor :JobId, :RequestId
791
+
792
+ def initialize(jobid=nil, requestid=nil)
793
+ @JobId = jobid
794
+ @RequestId = requestid
795
+ end
796
+
797
+ def deserialize(params)
798
+ @JobId = params['JobId']
799
+ @RequestId = params['RequestId']
800
+ end
801
+ end
802
+
316
803
  # 多视角图片
317
804
  class ViewImage < TencentCloud::Common::AbstractModel
318
805
  # @param ViewType: 视角类型。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ai3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1178
4
+ version: 3.0.1182
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-08 00:00:00.000000000 Z
11
+ date: 2025-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common