tencentcloud-sdk-ai3d 3.0.1140 → 3.0.1141

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: 507f98d6c5ac50c17181e1c7a3100e49e59942d6
4
- data.tar.gz: 055f7588ceb44d2416c0e9bc5eb7b33031746f9d
3
+ metadata.gz: 045d1689f10859bc9025a9a622deb5fdfffb4db0
4
+ data.tar.gz: 20baaecf66857a8307a7499104add7436d89e704
5
5
  SHA512:
6
- metadata.gz: a3224aec00b766cd7c7c3e6da5bab53f4ef8c9fc3949841d99502ea6d0c2ad7ea90a54c844738aa76a68b8a5638421af590f65acb1839d64bc595da147253c9e
7
- data.tar.gz: 325fdb54bbd750f96fb540f9f22d0a29da5d53234bb002ec2e58965dc909be78be1db9ee535a54c06c4ab1a6158dbd176df2e628b8659eed6f5a81d7383479a3
6
+ metadata.gz: 8ee8b18d2a178e5c7c415bcd2d40007ad10da8b87ef2bd2bfcebd3c53901ca2577c747052b715fac8310bb019df3b700ce3c4e02d5ad6d96fccbbaf507f271a1
7
+ data.tar.gz: 2b448859804bdbbd6b41f934eebd6a73ddc4d998b340287cb454060d746a117a79c2f9dfa39075aaf833503aa21a7bbc05ae3cc328c28b770f2fa9d4b76132e0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1140
1
+ 3.0.1141
@@ -82,6 +82,31 @@ module TencentCloud
82
82
  # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
83
83
  # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
84
84
 
85
+ # @param request: Request instance for QueryHunyuanTo3DRapidJob.
86
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::QueryHunyuanTo3DRapidJobRequest`
87
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::QueryHunyuanTo3DRapidJobResponse`
88
+ def QueryHunyuanTo3DRapidJob(request)
89
+ body = send_request('QueryHunyuanTo3DRapidJob', request.serialize)
90
+ response = JSON.parse(body)
91
+ if response['Response'].key?('Error') == false
92
+ model = QueryHunyuanTo3DRapidJobResponse.new
93
+ model.deserialize(response['Response'])
94
+ model
95
+ else
96
+ code = response['Response']['Error']['Code']
97
+ message = response['Response']['Error']['Message']
98
+ reqid = response['Response']['RequestId']
99
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
100
+ end
101
+ rescue TencentCloud::Common::TencentCloudSDKException => e
102
+ raise e
103
+ rescue StandardError => e
104
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
105
+ end
106
+
107
+ # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
108
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
109
+
85
110
  # @param request: Request instance for SubmitHunyuanTo3DJob.
86
111
  # @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DJobRequest`
87
112
  # @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DJobResponse`
@@ -129,6 +154,31 @@ module TencentCloud
129
154
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
130
155
  end
131
156
 
157
+ # 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
158
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
159
+
160
+ # @param request: Request instance for SubmitHunyuanTo3DRapidJob.
161
+ # @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DRapidJobRequest`
162
+ # @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitHunyuanTo3DRapidJobResponse`
163
+ def SubmitHunyuanTo3DRapidJob(request)
164
+ body = send_request('SubmitHunyuanTo3DRapidJob', request.serialize)
165
+ response = JSON.parse(body)
166
+ if response['Response'].key?('Error') == false
167
+ model = SubmitHunyuanTo3DRapidJobResponse.new
168
+ model.deserialize(response['Response'])
169
+ model
170
+ else
171
+ code = response['Response']['Error']['Code']
172
+ message = response['Response']['Error']['Message']
173
+ reqid = response['Response']['RequestId']
174
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
175
+ end
176
+ rescue TencentCloud::Common::TencentCloudSDKException => e
177
+ raise e
178
+ rescue StandardError => e
179
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
180
+ end
181
+
132
182
 
133
183
  end
134
184
  end
@@ -151,6 +151,61 @@ module TencentCloud
151
151
  end
152
152
  end
153
153
 
154
+ # QueryHunyuanTo3DRapidJob请求参数结构体
155
+ class QueryHunyuanTo3DRapidJobRequest < TencentCloud::Common::AbstractModel
156
+ # @param JobId: 任务ID。
157
+ # @type JobId: String
158
+
159
+ attr_accessor :JobId
160
+
161
+ def initialize(jobid=nil)
162
+ @JobId = jobid
163
+ end
164
+
165
+ def deserialize(params)
166
+ @JobId = params['JobId']
167
+ end
168
+ end
169
+
170
+ # QueryHunyuanTo3DRapidJob返回参数结构体
171
+ class QueryHunyuanTo3DRapidJobResponse < TencentCloud::Common::AbstractModel
172
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
173
+ # @type Status: String
174
+ # @param ErrorCode: 错误码
175
+ # @type ErrorCode: String
176
+ # @param ErrorMessage: 错误信息
177
+ # @type ErrorMessage: String
178
+ # @param ResultFile3Ds: 生成的3D文件数组。
179
+ # @type ResultFile3Ds: Array
180
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
181
+ # @type RequestId: String
182
+
183
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
184
+
185
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
186
+ @Status = status
187
+ @ErrorCode = errorcode
188
+ @ErrorMessage = errormessage
189
+ @ResultFile3Ds = resultfile3ds
190
+ @RequestId = requestid
191
+ end
192
+
193
+ def deserialize(params)
194
+ @Status = params['Status']
195
+ @ErrorCode = params['ErrorCode']
196
+ @ErrorMessage = params['ErrorMessage']
197
+ unless params['ResultFile3Ds'].nil?
198
+ @ResultFile3Ds = []
199
+ params['ResultFile3Ds'].each do |i|
200
+ file3d_tmp = File3D.new
201
+ file3d_tmp.deserialize(i)
202
+ @ResultFile3Ds << file3d_tmp
203
+ end
204
+ end
205
+ @RequestId = params['RequestId']
206
+ end
207
+ end
208
+
154
209
  # SubmitHunyuanTo3DJob请求参数结构体
155
210
  class SubmitHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
156
211
  # @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
@@ -320,6 +375,68 @@ module TencentCloud
320
375
  end
321
376
  end
322
377
 
378
+ # SubmitHunyuanTo3DRapidJob请求参数结构体
379
+ class SubmitHunyuanTo3DRapidJobRequest < TencentCloud::Common::AbstractModel
380
+ # @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
381
+ # 最多支持200个 utf-8 字符。
382
+ # 文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。
383
+ # @type Prompt: String
384
+ # @param ImageBase64: 输入图 Base64 数据。
385
+ # 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
386
+ # 格式:jpg,png,jpeg,webp。
387
+ # ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
388
+ # @type ImageBase64: String
389
+ # @param ImageUrl: 输入图Url。
390
+ # 大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
391
+ # 格式:jpg,png,jpeg,webp。
392
+ # ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
393
+ # @type ImageUrl: String
394
+ # @param ResultFormat: 生成模型的格式,仅限制生成一种格式。
395
+ # 生成模型文件组默认返回obj格式。
396
+ # 可选值:OBJ,GLB,STL,USDZ,FBX,MP4。
397
+ # @type ResultFormat: String
398
+ # @param EnablePBR: 是否开启 PBR材质生成,默认 false。
399
+ # @type EnablePBR: Boolean
400
+
401
+ attr_accessor :Prompt, :ImageBase64, :ImageUrl, :ResultFormat, :EnablePBR
402
+
403
+ def initialize(prompt=nil, imagebase64=nil, imageurl=nil, resultformat=nil, enablepbr=nil)
404
+ @Prompt = prompt
405
+ @ImageBase64 = imagebase64
406
+ @ImageUrl = imageurl
407
+ @ResultFormat = resultformat
408
+ @EnablePBR = enablepbr
409
+ end
410
+
411
+ def deserialize(params)
412
+ @Prompt = params['Prompt']
413
+ @ImageBase64 = params['ImageBase64']
414
+ @ImageUrl = params['ImageUrl']
415
+ @ResultFormat = params['ResultFormat']
416
+ @EnablePBR = params['EnablePBR']
417
+ end
418
+ end
419
+
420
+ # SubmitHunyuanTo3DRapidJob返回参数结构体
421
+ class SubmitHunyuanTo3DRapidJobResponse < TencentCloud::Common::AbstractModel
422
+ # @param JobId: 任务ID(有效期24小时)
423
+ # @type JobId: String
424
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
425
+ # @type RequestId: String
426
+
427
+ attr_accessor :JobId, :RequestId
428
+
429
+ def initialize(jobid=nil, requestid=nil)
430
+ @JobId = jobid
431
+ @RequestId = requestid
432
+ end
433
+
434
+ def deserialize(params)
435
+ @JobId = params['JobId']
436
+ @RequestId = params['RequestId']
437
+ end
438
+ end
439
+
323
440
  # 多视角图片
324
441
  class ViewImage < TencentCloud::Common::AbstractModel
325
442
  # @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.1140
4
+ version: 3.0.1141
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-09-15 00:00:00.000000000 Z
11
+ date: 2025-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common