tencentcloud-sdk-vclm 3.0.1128 → 3.0.1159
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240523/client.rb +48 -0
- data/lib/v20240523/models.rb +107 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e30866d879e09403dbc6ab891870dac46442a185
         | 
| 4 | 
            +
              data.tar.gz: 13fbdf499a9b06156cc66b755c3d8d09a6b62497
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8469bbcd46aca88a4fbab4c3eeb1c1ba4336dee38a87e0ab8214e0d7a95f005325d6a212c65ff5bc2ae83218564f9f26b72e3f47fa0c6e9bcc3456362ccbe528
         | 
| 7 | 
            +
              data.tar.gz: 3c7e4a30719998da9d32561f2100eabe1ad00d3d2c66f5cbb8e204326e0f16037fd5a54cafdbca22163ae3eedd9cb48681850e547b57768ef3c64ddbd9b1e894
         | 
    
        data/lib/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            3.0. | 
| 1 | 
            +
            3.0.1159
         | 
    
        data/lib/v20240523/client.rb
    CHANGED
    
    | @@ -77,6 +77,30 @@ module TencentCloud | |
| 77 77 | 
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 78 78 | 
             
                    end
         | 
| 79 79 |  | 
| 80 | 
            +
                    # 查询图生视频通用能力任务接口
         | 
| 81 | 
            +
             | 
| 82 | 
            +
                    # @param request: Request instance for DescribeImageToVideoGeneralJob.
         | 
| 83 | 
            +
                    # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeImageToVideoGeneralJobRequest`
         | 
| 84 | 
            +
                    # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeImageToVideoGeneralJobResponse`
         | 
| 85 | 
            +
                    def DescribeImageToVideoGeneralJob(request)
         | 
| 86 | 
            +
                      body = send_request('DescribeImageToVideoGeneralJob', request.serialize)
         | 
| 87 | 
            +
                      response = JSON.parse(body)
         | 
| 88 | 
            +
                      if response['Response'].key?('Error') == false
         | 
| 89 | 
            +
                        model = DescribeImageToVideoGeneralJobResponse.new
         | 
| 90 | 
            +
                        model.deserialize(response['Response'])
         | 
| 91 | 
            +
                        model
         | 
| 92 | 
            +
                      else
         | 
| 93 | 
            +
                        code = response['Response']['Error']['Code']
         | 
| 94 | 
            +
                        message = response['Response']['Error']['Message']
         | 
| 95 | 
            +
                        reqid = response['Response']['RequestId']
         | 
| 96 | 
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         | 
| 97 | 
            +
                      end
         | 
| 98 | 
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         | 
| 99 | 
            +
                      raise e
         | 
| 100 | 
            +
                    rescue StandardError => e
         | 
| 101 | 
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 102 | 
            +
                    end
         | 
| 103 | 
            +
             | 
| 80 104 | 
             
                    # 用于查询图片唱演任务。
         | 
| 81 105 | 
             
                    # 支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
         | 
| 82 106 |  | 
| @@ -174,6 +198,30 @@ module TencentCloud | |
| 174 198 | 
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 175 199 | 
             
                    end
         | 
| 176 200 |  | 
| 201 | 
            +
                    # 图生视频通用能力接口
         | 
| 202 | 
            +
             | 
| 203 | 
            +
                    # @param request: Request instance for SubmitImageToVideoGeneralJob.
         | 
| 204 | 
            +
                    # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitImageToVideoGeneralJobRequest`
         | 
| 205 | 
            +
                    # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitImageToVideoGeneralJobResponse`
         | 
| 206 | 
            +
                    def SubmitImageToVideoGeneralJob(request)
         | 
| 207 | 
            +
                      body = send_request('SubmitImageToVideoGeneralJob', request.serialize)
         | 
| 208 | 
            +
                      response = JSON.parse(body)
         | 
| 209 | 
            +
                      if response['Response'].key?('Error') == false
         | 
| 210 | 
            +
                        model = SubmitImageToVideoGeneralJobResponse.new
         | 
| 211 | 
            +
                        model.deserialize(response['Response'])
         | 
| 212 | 
            +
                        model
         | 
| 213 | 
            +
                      else
         | 
| 214 | 
            +
                        code = response['Response']['Error']['Code']
         | 
| 215 | 
            +
                        message = response['Response']['Error']['Message']
         | 
| 216 | 
            +
                        reqid = response['Response']['RequestId']
         | 
| 217 | 
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         | 
| 218 | 
            +
                      end
         | 
| 219 | 
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         | 
| 220 | 
            +
                      raise e
         | 
| 221 | 
            +
                    rescue StandardError => e
         | 
| 222 | 
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 223 | 
            +
                    end
         | 
| 224 | 
            +
             | 
| 177 225 | 
             
                    # 用于提交图片唱演任务。
         | 
| 178 226 | 
             
                    # 支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
         | 
| 179 227 |  | 
    
        data/lib/v20240523/models.rb
    CHANGED
    
    | @@ -134,6 +134,54 @@ module TencentCloud | |
| 134 134 | 
             
                    end
         | 
| 135 135 | 
             
                  end
         | 
| 136 136 |  | 
| 137 | 
            +
                  # DescribeImageToVideoGeneralJob请求参数结构体
         | 
| 138 | 
            +
                  class DescribeImageToVideoGeneralJobRequest < TencentCloud::Common::AbstractModel
         | 
| 139 | 
            +
                    # @param JobId: 任务ID
         | 
| 140 | 
            +
                    # @type JobId: String
         | 
| 141 | 
            +
             | 
| 142 | 
            +
                    attr_accessor :JobId
         | 
| 143 | 
            +
             | 
| 144 | 
            +
                    def initialize(jobid=nil)
         | 
| 145 | 
            +
                      @JobId = jobid
         | 
| 146 | 
            +
                    end
         | 
| 147 | 
            +
             | 
| 148 | 
            +
                    def deserialize(params)
         | 
| 149 | 
            +
                      @JobId = params['JobId']
         | 
| 150 | 
            +
                    end
         | 
| 151 | 
            +
                  end
         | 
| 152 | 
            +
             | 
| 153 | 
            +
                  # DescribeImageToVideoGeneralJob返回参数结构体
         | 
| 154 | 
            +
                  class DescribeImageToVideoGeneralJobResponse < TencentCloud::Common::AbstractModel
         | 
| 155 | 
            +
                    # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
         | 
| 156 | 
            +
                    # @type Status: String
         | 
| 157 | 
            +
                    # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
         | 
| 158 | 
            +
                    # @type ErrorCode: String
         | 
| 159 | 
            +
                    # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
         | 
| 160 | 
            +
                    # @type ErrorMessage: String
         | 
| 161 | 
            +
                    # @param ResultVideoUrl: 结果视频 URL。有效期 24 小时。
         | 
| 162 | 
            +
                    # @type ResultVideoUrl: String
         | 
| 163 | 
            +
                    # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         | 
| 164 | 
            +
                    # @type RequestId: String
         | 
| 165 | 
            +
             | 
| 166 | 
            +
                    attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
         | 
| 167 | 
            +
             | 
| 168 | 
            +
                    def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
         | 
| 169 | 
            +
                      @Status = status
         | 
| 170 | 
            +
                      @ErrorCode = errorcode
         | 
| 171 | 
            +
                      @ErrorMessage = errormessage
         | 
| 172 | 
            +
                      @ResultVideoUrl = resultvideourl
         | 
| 173 | 
            +
                      @RequestId = requestid
         | 
| 174 | 
            +
                    end
         | 
| 175 | 
            +
             | 
| 176 | 
            +
                    def deserialize(params)
         | 
| 177 | 
            +
                      @Status = params['Status']
         | 
| 178 | 
            +
                      @ErrorCode = params['ErrorCode']
         | 
| 179 | 
            +
                      @ErrorMessage = params['ErrorMessage']
         | 
| 180 | 
            +
                      @ResultVideoUrl = params['ResultVideoUrl']
         | 
| 181 | 
            +
                      @RequestId = params['RequestId']
         | 
| 182 | 
            +
                    end
         | 
| 183 | 
            +
                  end
         | 
| 184 | 
            +
             | 
| 137 185 | 
             
                  # DescribePortraitSingJob请求参数结构体
         | 
| 138 186 | 
             
                  class DescribePortraitSingJobRequest < TencentCloud::Common::AbstractModel
         | 
| 139 187 | 
             
                    # @param JobId: 任务ID
         | 
| @@ -466,6 +514,64 @@ module TencentCloud | |
| 466 514 | 
             
                    end
         | 
| 467 515 | 
             
                  end
         | 
| 468 516 |  | 
| 517 | 
            +
                  # SubmitImageToVideoGeneralJob请求参数结构体
         | 
| 518 | 
            +
                  class SubmitImageToVideoGeneralJobRequest < TencentCloud::Common::AbstractModel
         | 
| 519 | 
            +
                    # @param Image: 输入图片
         | 
| 520 | 
            +
                    # Base64 和 Url 必须提供一个,如果都提供以ImageUrl为准。
         | 
| 521 | 
            +
                    # 上传图url大小不超过 8M
         | 
| 522 | 
            +
                    # 支持jpg,png,jpeg,webp,bmp,tiff 格式
         | 
| 523 | 
            +
                    # 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
         | 
| 524 | 
            +
                    # @type Image: :class:`Tencentcloud::Vclm.v20240523.models.Image`
         | 
| 525 | 
            +
                    # @param Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
         | 
| 526 | 
            +
                    # @type Prompt: String
         | 
| 527 | 
            +
                    # @param LogoAdd: 为生成视频添加标识的开关,默认为1,0 需前往 控制台 申请开启显示标识自主完成方可生效。  1:添加标识;  0:不添加标识;  其他数值:默认按1处理。
         | 
| 528 | 
            +
                    # @type LogoAdd: Integer
         | 
| 529 | 
            +
                    # @param LogoParam: 默认在生成视频的右下角添加“ AI 生成”字样,如需替换为其他的标识图片,需前往 控制台 申请开启显示标识自主完成。
         | 
| 530 | 
            +
                    # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
         | 
| 531 | 
            +
             | 
| 532 | 
            +
                    attr_accessor :Image, :Prompt, :LogoAdd, :LogoParam
         | 
| 533 | 
            +
             | 
| 534 | 
            +
                    def initialize(image=nil, prompt=nil, logoadd=nil, logoparam=nil)
         | 
| 535 | 
            +
                      @Image = image
         | 
| 536 | 
            +
                      @Prompt = prompt
         | 
| 537 | 
            +
                      @LogoAdd = logoadd
         | 
| 538 | 
            +
                      @LogoParam = logoparam
         | 
| 539 | 
            +
                    end
         | 
| 540 | 
            +
             | 
| 541 | 
            +
                    def deserialize(params)
         | 
| 542 | 
            +
                      unless params['Image'].nil?
         | 
| 543 | 
            +
                        @Image = Image.new
         | 
| 544 | 
            +
                        @Image.deserialize(params['Image'])
         | 
| 545 | 
            +
                      end
         | 
| 546 | 
            +
                      @Prompt = params['Prompt']
         | 
| 547 | 
            +
                      @LogoAdd = params['LogoAdd']
         | 
| 548 | 
            +
                      unless params['LogoParam'].nil?
         | 
| 549 | 
            +
                        @LogoParam = LogoParam.new
         | 
| 550 | 
            +
                        @LogoParam.deserialize(params['LogoParam'])
         | 
| 551 | 
            +
                      end
         | 
| 552 | 
            +
                    end
         | 
| 553 | 
            +
                  end
         | 
| 554 | 
            +
             | 
| 555 | 
            +
                  # SubmitImageToVideoGeneralJob返回参数结构体
         | 
| 556 | 
            +
                  class SubmitImageToVideoGeneralJobResponse < TencentCloud::Common::AbstractModel
         | 
| 557 | 
            +
                    # @param JobId: 任务ID
         | 
| 558 | 
            +
                    # @type JobId: String
         | 
| 559 | 
            +
                    # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         | 
| 560 | 
            +
                    # @type RequestId: String
         | 
| 561 | 
            +
             | 
| 562 | 
            +
                    attr_accessor :JobId, :RequestId
         | 
| 563 | 
            +
             | 
| 564 | 
            +
                    def initialize(jobid=nil, requestid=nil)
         | 
| 565 | 
            +
                      @JobId = jobid
         | 
| 566 | 
            +
                      @RequestId = requestid
         | 
| 567 | 
            +
                    end
         | 
| 568 | 
            +
             | 
| 569 | 
            +
                    def deserialize(params)
         | 
| 570 | 
            +
                      @JobId = params['JobId']
         | 
| 571 | 
            +
                      @RequestId = params['RequestId']
         | 
| 572 | 
            +
                    end
         | 
| 573 | 
            +
                  end
         | 
| 574 | 
            +
             | 
| 469 575 | 
             
                  # SubmitPortraitSingJob请求参数结构体
         | 
| 470 576 | 
             
                  class SubmitPortraitSingJobRequest < TencentCloud::Common::AbstractModel
         | 
| 471 577 | 
             
                    # @param AudioUrl: 传入音频URL地址,音频要求:
         | 
| @@ -549,7 +655,7 @@ module TencentCloud | |
| 549 655 |  | 
| 550 656 | 
             
                  # SubmitTemplateToVideoJob请求参数结构体
         | 
| 551 657 | 
             
                  class SubmitTemplateToVideoJobRequest < TencentCloud::Common::AbstractModel
         | 
| 552 | 
            -
                    # @param Template: 特效模板名称。请在 [ | 
| 658 | 
            +
                    # @param Template: 特效模板名称。请在 [视频特效模板列表](https://cloud.tencent.com/document/product/1616/119194)  中选择想要生成的特效对应的 template 名称。
         | 
| 553 659 | 
             
                    # @type Template: String
         | 
| 554 660 | 
             
                    # @param Images: 参考图像,最多输入2张图。
         | 
| 555 661 | 
             
                    # - 支持传入图片Base64编码或图片URL(确保可访问)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: tencentcloud-sdk-vclm
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.0. | 
| 4 | 
            +
              version: 3.0.1159
         | 
| 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- | 
| 11 | 
            +
            date: 2025-10-22 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: tencentcloud-sdk-common
         | 
| @@ -33,8 +33,8 @@ executables: [] | |
| 33 33 | 
             
            extensions: []
         | 
| 34 34 | 
             
            extra_rdoc_files: []
         | 
| 35 35 | 
             
            files:
         | 
| 36 | 
            -
            - lib/v20240523/client.rb
         | 
| 37 36 | 
             
            - lib/v20240523/models.rb
         | 
| 37 | 
            +
            - lib/v20240523/client.rb
         | 
| 38 38 | 
             
            - lib/tencentcloud-sdk-vclm.rb
         | 
| 39 39 | 
             
            - lib/VERSION
         | 
| 40 40 | 
             
            homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
         |