# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'json' module TencentCloud module Vod module V20180717 class Client < TencentCloud::Common::AbstractClient def initialize(credential, region, profile = nil) api_version = '2018-07-17' api_endpoint = 'vod.tencentcloudapi.com' sdk_version = 'VOD_' + File.read(File.expand_path('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end # * 我们强烈建议您使用云点播提供的 [服务端上传 SDK](/document/product/266/9759#1.-.E5.8F.91.E8.B5.B7.E4.B8.8A.E4.BC.A0) 来上传文件。直接调用 API 进行上传的难度和工作量都显著大于使用 SDK。 # * 该接口用于申请媒体文件(和封面文件)的上传,获取文件上传到云点播的元信息(包括上传路径、上传签名等),用于后续上传接口。 # * 上传流程请参考 [服务端上传综述](/document/product/266/9759)。 # @param request: Request instance for ApplyUpload. # @type request: :class:`Tencentcloud::vod::V20180717::ApplyUploadRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ApplyUploadResponse` def ApplyUpload(request) body = send_request('ApplyUpload', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplyUploadResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 关联媒资字幕,将指定的字幕关联到转自适应码流模板号对应的媒体输出文件中(或解除关联)。 # @param request: Request instance for AttachMediaSubtitles. # @type request: :class:`Tencentcloud::vod::V20180717::AttachMediaSubtitlesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::AttachMediaSubtitlesResponse` def AttachMediaSubtitles(request) body = send_request('AttachMediaSubtitles', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachMediaSubtitlesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于确认媒体文件(和封面文件)上传到腾讯云点播的结果,并存储媒体信息,返回文件的播放地址和文件 ID。 # @param request: Request instance for CommitUpload. # @type request: :class:`Tencentcloud::vod::V20180717::CommitUploadRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CommitUploadResponse` def CommitUpload(request) body = send_request('CommitUpload', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CommitUploadResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于合成媒体文件,可以达到以下效果: # 1. **画面旋转**:对视频、图片的画面旋转一定角度,或按照某个方向翻转。 # 2. **声音控制**:升高降低视频、音频中声音的音量,或者对视频静音。 # 3. **画面叠加**:将视频、图片中的画面依序叠加在一起,如实现“画中画”的效果。 # 4. **声音混合**:将视频、音频中的声音混合在一起(混音)。 # 5. **声音提取**:将视频中的音频提取出来(不保留画面)。 # 6. **裁剪**:对视频、音频裁剪出指定时间段。 # 7. **拼接**:对视频、音频、图片按时间顺序前后拼接。 # 8. **转场**:将多段视频或图片拼接时,可以在段落之间添加转场效果。 # 合成后的媒体封装格式可以是 MP4(视频)或 MP3(音频)。如使用事件通知,事件通知的类型为 [视频合成完成](https://cloud.tencent.com/document/product/266/43000)。 # @param request: Request instance for ComposeMedia. # @type request: :class:`Tencentcloud::vod::V20180717::ComposeMediaRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ComposeMediaResponse` def ComposeMedia(request) body = send_request('ComposeMedia', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ComposeMediaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 开发者调用拉取事件通知,获取到事件后,必须调用该接口来确认消息已经收到; # * 开发者获取到事件句柄后,等待确认的有效时间为 30 秒,超出 30 秒会报参数错误(4000); # * 更多参考事件通知的[可靠回调](https://cloud.tencent.com/document/product/266/33779#.E5.8F.AF.E9.9D.A0.E5.9B.9E.E8.B0.83)。 # @param request: Request instance for ConfirmEvents. # @type request: :class:`Tencentcloud::vod::V20180717::ConfirmEventsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ConfirmEventsResponse` def ConfirmEvents(request) body = send_request('ConfirmEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ConfirmEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义音视频内容分析模板,数量上限:50。 # @param request: Request instance for CreateAIAnalysisTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateAIAnalysisTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateAIAnalysisTemplateResponse` def CreateAIAnalysisTemplate(request) body = send_request('CreateAIAnalysisTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAIAnalysisTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义音视频内容识别模板,数量上限:50。 # @param request: Request instance for CreateAIRecognitionTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateAIRecognitionTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateAIRecognitionTemplateResponse` def CreateAIRecognitionTemplate(request) body = send_request('CreateAIRecognitionTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAIRecognitionTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建转自适应码流模板,数量上限:100。 # @param request: Request instance for CreateAdaptiveDynamicStreamingTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateAdaptiveDynamicStreamingTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateAdaptiveDynamicStreamingTemplateResponse` def CreateAdaptiveDynamicStreamingTemplate(request) body = send_request('CreateAdaptiveDynamicStreamingTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAdaptiveDynamicStreamingTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义转动图模板,数量上限:16。 # @param request: Request instance for CreateAnimatedGraphicsTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateAnimatedGraphicsTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateAnimatedGraphicsTemplateResponse` def CreateAnimatedGraphicsTemplate(request) body = send_request('CreateAnimatedGraphicsTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAnimatedGraphicsTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 由 VOD 创建新的日志集。 # @param request: Request instance for CreateCLSLogset. # @type request: :class:`Tencentcloud::vod::V20180717::CreateCLSLogsetRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateCLSLogsetResponse` def CreateCLSLogset(request) body = send_request('CreateCLSLogset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCLSLogsetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建 VOD 下新的 CLS 日志主题 # @param request: Request instance for CreateCLSTopic. # @type request: :class:`Tencentcloud::vod::V20180717::CreateCLSTopicRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateCLSTopicResponse` def CreateCLSTopic(request) body = send_request('CreateCLSTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCLSTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 用于对媒体进行分类管理; # * 该接口不影响既有媒体的分类,如需修改媒体分类,请调用[修改媒体文件属性](/document/product/266/31762)接口。 # * 分类层次不可超过 4 层。 # * 每个分类的子类数量不可超过 500 个。 # @param request: Request instance for CreateClass. # @type request: :class:`Tencentcloud::vod::V20180717::CreateClassRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateClassResponse` def CreateClass(request) body = send_request('CreateClass', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateClassResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 发起复杂自适应码流处理任务,功能包括: # 1. 按指定的自适应码流模板输出 HLS、DASH 自适应码流; # 2. 自适应码流的内容保护方案可选择无加密、Widevine 或 FairPlay; # 3. 支持添加片头片尾; # 4. 输出的自适应码流可包含多语言音频流,每种语言分别来自不同的媒体文件; # 5. 输出的自适应码流可包含多语言字幕流。 # 注意事项: # 1. 当使用片头时,片头媒体中的视频流需要和音频流对齐,否则将导致输出的内容音画不同步; # 2. 如果输出的自适应码流需要包含主媒体的音频,那么需要在 AudioSet 参数中指定主媒体的 FileId; # 3. 使用字幕时,需要先将字幕添加到主媒体,可通过 ModifyMediaInfo 接口或控制台的音视频详情页进行添加; # 4. 暂不支持极速高清、水印。 # @param request: Request instance for CreateComplexAdaptiveDynamicStreamingTask. # @type request: :class:`Tencentcloud::vod::V20180717::CreateComplexAdaptiveDynamicStreamingTaskRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateComplexAdaptiveDynamicStreamingTaskResponse` def CreateComplexAdaptiveDynamicStreamingTask(request) body = send_request('CreateComplexAdaptiveDynamicStreamingTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateComplexAdaptiveDynamicStreamingTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版审核模板支持音视频审核和图片审核,详细请参考 [创建审核模板](https://cloud.tencent.com/document/api/266/84391)。 # 创建用户自定义音视频内容审核模板,数量上限:50。 # @param request: Request instance for CreateContentReviewTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateContentReviewTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateContentReviewTemplateResponse` def CreateContentReviewTemplate(request) body = send_request('CreateContentReviewTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateContentReviewTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于生成一条子域名解析,提示客户添加到域名解析上,用于泛域名及域名取回校验归属权。 # @param request: Request instance for CreateDomainVerifyRecord. # @type request: :class:`Tencentcloud::vod::V20180717::CreateDomainVerifyRecordRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateDomainVerifyRecordResponse` def CreateDomainVerifyRecord(request) body = send_request('CreateDomainVerifyRecord', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDomainVerifyRecordResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版 [音画质重生](https://cloud.tencent.com/document/product/266/102571) 接口使用预置模板,详情请参见 [音画质重生模板](https://cloud.tencent.com/document/product/266/102586#50604b3f-0286-4a10-a3f7-18218116aff7)。 # 创建音画质重生模板。 # @param request: Request instance for CreateEnhanceMediaTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateEnhanceMediaTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateEnhanceMediaTemplateResponse` def CreateEnhanceMediaTemplate(request) body = send_request('CreateEnhanceMediaTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateEnhanceMediaTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建片头片尾模板。 # - 最大支持模板数量为 100 个。 # @param request: Request instance for CreateHeadTailTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateHeadTailTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateHeadTailTemplateResponse` def CreateHeadTailTemplate(request) body = send_request('CreateHeadTailTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateHeadTailTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建一个用户自定义的图片处理模板,数量上限:16。最多支持十次操作,例如:裁剪-缩略-裁剪-模糊-缩略-裁剪-缩略-裁剪-模糊-缩略。 # @param request: Request instance for CreateImageProcessingTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateImageProcessingTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateImageProcessingTemplateResponse` def CreateImageProcessingTemplate(request) body = send_request('CreateImageProcessingTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateImageProcessingTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义雪碧图模板,数量上限:16。 # @param request: Request instance for CreateImageSpriteTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateImageSpriteTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateImageSpriteTemplateResponse` def CreateImageSpriteTemplate(request) body = send_request('CreateImageSpriteTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateImageSpriteTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建即时转码模板。 # @param request: Request instance for CreateJustInTimeTranscodeTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateJustInTimeTranscodeTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateJustInTimeTranscodeTemplateResponse` def CreateJustInTimeTranscodeTemplate(request) body = send_request('CreateJustInTimeTranscodeTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateJustInTimeTranscodeTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于创建素材样本,用于通过五官定位等技术,进行内容识别、不适宜视频识别等视频处理。 # @param request: Request instance for CreatePersonSample. # @type request: :class:`Tencentcloud::vod::V20180717::CreatePersonSampleRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreatePersonSampleResponse` def CreatePersonSample(request) body = send_request('CreatePersonSample', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreatePersonSampleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义的任务流模板,模板上限:50。 # @param request: Request instance for CreateProcedureTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateProcedureTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateProcedureTemplateResponse` def CreateProcedureTemplate(request) body = send_request('CreateProcedureTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateProcedureTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建音画质检测模板。 # @param request: Request instance for CreateQualityInspectTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateQualityInspectTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateQualityInspectTemplateResponse` def CreateQualityInspectTemplate(request) body = send_request('CreateQualityInspectTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateQualityInspectTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版 [音画质重生](https://cloud.tencent.com/document/product/266/102571) 接口使用预置模板,详情请参见 [音画质重生模板](https://cloud.tencent.com/document/product/266/102586#50604b3f-0286-4a10-a3f7-18218116aff7)。 # 创建视频重生模板。 # @param request: Request instance for CreateRebuildMediaTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateRebuildMediaTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateRebuildMediaTemplateResponse` def CreateRebuildMediaTemplate(request) body = send_request('CreateRebuildMediaTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateRebuildMediaTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义审核模板,数量上限:50。 # >模板仅适用于 [音视频审核(ReviewAudioVideo)](https://cloud.tencent.com/document/api/266/80283) 和 [图片审核(ReviewImage)](https://cloud.tencent.com/document/api/266/73217) 接口。 # @param request: Request instance for CreateReviewTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateReviewTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateReviewTemplateResponse` def CreateReviewTemplate(request) body = send_request('CreateReviewTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateReviewTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于创建轮播播单,数量上限:100。 # 轮播播单的每个文件可以指定源文件,也可以指定某个转码文件。 # 指定的文件必须是hls格式,所有的播单文件最好保持相同的码率和分辨率。 # @param request: Request instance for CreateRoundPlay. # @type request: :class:`Tencentcloud::vod::V20180717::CreateRoundPlayRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateRoundPlayResponse` def CreateRoundPlay(request) body = send_request('CreateRoundPlay', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateRoundPlayResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义采样截图模板,数量上限:16。 # @param request: Request instance for CreateSampleSnapshotTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateSampleSnapshotTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateSampleSnapshotTemplateResponse` def CreateSampleSnapshotTemplate(request) body = send_request('CreateSampleSnapshotTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSampleSnapshotTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义指定时间点截图模板,数量上限:16。 # @param request: Request instance for CreateSnapshotByTimeOffsetTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateSnapshotByTimeOffsetTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateSnapshotByTimeOffsetTemplateResponse` def CreateSnapshotByTimeOffsetTemplate(request) body = send_request('CreateSnapshotByTimeOffsetTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSnapshotByTimeOffsetTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于开通某地域的存储。 # 1. 用户开通点播业务时,系统默认为用户开通了部分地域的存储,用户如果需要开通其它地域的存储,可以通过该接口进行开通。 # 2. 通过 DescribeStorageRegions 接口可以查询到所有存储地域及已经开通的地域。 # @param request: Request instance for CreateStorageRegion. # @type request: :class:`Tencentcloud::vod::V20180717::CreateStorageRegionRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateStorageRegionResponse` def CreateStorageRegion(request) body = send_request('CreateStorageRegion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateStorageRegionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于创建点播应用。 # @param request: Request instance for CreateSubAppId. # @type request: :class:`Tencentcloud::vod::V20180717::CreateSubAppIdRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateSubAppIdResponse` def CreateSubAppId(request) body = send_request('CreateSubAppId', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSubAppIdResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版播放器签名不再使用播放器配置模板,详细请参考 [播放器签名](https://cloud.tencent.com/document/product/266/45554)。 # 创建播放器配置,数量上限:100。 # @param request: Request instance for CreateSuperPlayerConfig. # @type request: :class:`Tencentcloud::vod::V20180717::CreateSuperPlayerConfigRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateSuperPlayerConfigResponse` def CreateSuperPlayerConfig(request) body = send_request('CreateSuperPlayerConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSuperPlayerConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义转码模板,数量上限:100。 # @param request: Request instance for CreateTranscodeTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateTranscodeTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateTranscodeTemplateResponse` def CreateTranscodeTemplate(request) body = send_request('CreateTranscodeTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTranscodeTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于将加速域名添加到点播,一个用户最多添加20个加速域名。 # 1.域名添加成功后点播会进行域名的部署,域名由部署状态变为在线状态大概需要2分钟的时间。 # @param request: Request instance for CreateVodDomain. # @type request: :class:`Tencentcloud::vod::V20180717::CreateVodDomainRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateVodDomainResponse` def CreateVodDomain(request) body = send_request('CreateVodDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateVodDomainResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建用户自定义水印模板,数量上限:1000。 # @param request: Request instance for CreateWatermarkTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::CreateWatermarkTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateWatermarkTemplateResponse` def CreateWatermarkTemplate(request) body = send_request('CreateWatermarkTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateWatermarkTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于批量创建关键词样本,样本用于通过OCR、ASR技术,进行不适宜内容识别、内容识别等视频处理。 # @param request: Request instance for CreateWordSamples. # @type request: :class:`Tencentcloud::vod::V20180717::CreateWordSamplesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::CreateWordSamplesResponse` def CreateWordSamples(request) body = send_request('CreateWordSamples', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateWordSamplesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义音视频内容分析模板。 # 注意:模板 ID 为 10000 以下的为系统预置模板,不允许删除。 # @param request: Request instance for DeleteAIAnalysisTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteAIAnalysisTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteAIAnalysisTemplateResponse` def DeleteAIAnalysisTemplate(request) body = send_request('DeleteAIAnalysisTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAIAnalysisTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义音视频内容识别模板。 # @param request: Request instance for DeleteAIRecognitionTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteAIRecognitionTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteAIRecognitionTemplateResponse` def DeleteAIRecognitionTemplate(request) body = send_request('DeleteAIRecognitionTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAIRecognitionTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除转自适应码流模板 # @param request: Request instance for DeleteAdaptiveDynamicStreamingTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteAdaptiveDynamicStreamingTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteAdaptiveDynamicStreamingTemplateResponse` def DeleteAdaptiveDynamicStreamingTemplate(request) body = send_request('DeleteAdaptiveDynamicStreamingTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAdaptiveDynamicStreamingTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义转动图模板。 # @param request: Request instance for DeleteAnimatedGraphicsTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteAnimatedGraphicsTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteAnimatedGraphicsTemplateResponse` def DeleteAnimatedGraphicsTemplate(request) body = send_request('DeleteAnimatedGraphicsTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAnimatedGraphicsTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除点播开通的日志主题。 # @param request: Request instance for DeleteCLSTopic. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteCLSTopicRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteCLSTopicResponse` def DeleteCLSTopic(request) body = send_request('DeleteCLSTopic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCLSTopicResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 仅当待删分类无子分类且无媒体关联情况下,可删除分类; # * 否则,请先执行[删除媒体](/document/product/266/31764)及子分类,再删除该分类; # @param request: Request instance for DeleteClass. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteClassRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteClassResponse` def DeleteClass(request) body = send_request('DeleteClass', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteClassResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版审核模板支持音视频审核和图片审核,详细请参考 [删除审核模板](https://cloud.tencent.com/document/api/266/84390)。 # 删除用户自定义音视频内容审核模板。 # @param request: Request instance for DeleteContentReviewTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteContentReviewTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteContentReviewTemplateResponse` def DeleteContentReviewTemplate(request) body = send_request('DeleteContentReviewTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteContentReviewTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版 [音画质重生](https://cloud.tencent.com/document/product/266/102571) 接口使用预置模板,详情请参见 [音画质重生模板](https://cloud.tencent.com/document/product/266/102586#50604b3f-0286-4a10-a3f7-18218116aff7)。 # 删除音画质重生模板。 # @param request: Request instance for DeleteEnhanceMediaTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteEnhanceMediaTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteEnhanceMediaTemplateResponse` def DeleteEnhanceMediaTemplate(request) body = send_request('DeleteEnhanceMediaTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteEnhanceMediaTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除片头片尾模板。 # @param request: Request instance for DeleteHeadTailTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteHeadTailTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteHeadTailTemplateResponse` def DeleteHeadTailTemplate(request) body = send_request('DeleteHeadTailTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteHeadTailTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义图片处理模板。 # @param request: Request instance for DeleteImageProcessingTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteImageProcessingTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteImageProcessingTemplateResponse` def DeleteImageProcessingTemplate(request) body = send_request('DeleteImageProcessingTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteImageProcessingTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除雪碧图模板。 # @param request: Request instance for DeleteImageSpriteTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteImageSpriteTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteImageSpriteTemplateResponse` def DeleteImageSpriteTemplate(request) body = send_request('DeleteImageSpriteTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteImageSpriteTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除即时转码模板。 # @param request: Request instance for DeleteJustInTimeTranscodeTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteJustInTimeTranscodeTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteJustInTimeTranscodeTemplateResponse` def DeleteJustInTimeTranscodeTemplate(request) body = send_request('DeleteJustInTimeTranscodeTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteJustInTimeTranscodeTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 删除媒体及其对应的视频处理文件(原始文件、如转码视频、雪碧图、截图、微信发布视频等); # * 可单独删除指定 ID 的视频文件下的原文件、转码视频、微信发布视频等; # * 注意:原文件删除后,无法发起转码、微信发布等任何视频处理操作。 # @param request: Request instance for DeleteMedia. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteMediaRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteMediaResponse` def DeleteMedia(request) body = send_request('DeleteMedia', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMediaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于根据人物 ID,删除素材样本。 # @param request: Request instance for DeletePersonSample. # @type request: :class:`Tencentcloud::vod::V20180717::DeletePersonSampleRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeletePersonSampleResponse` def DeletePersonSample(request) body = send_request('DeletePersonSample', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeletePersonSampleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义的任务流模板。 # @param request: Request instance for DeleteProcedureTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteProcedureTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteProcedureTemplateResponse` def DeleteProcedureTemplate(request) body = send_request('DeleteProcedureTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteProcedureTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除音画质检测模板。 # @param request: Request instance for DeleteQualityInspectTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteQualityInspectTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteQualityInspectTemplateResponse` def DeleteQualityInspectTemplate(request) body = send_request('DeleteQualityInspectTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteQualityInspectTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版 [音画质重生](https://cloud.tencent.com/document/product/266/102571) 接口使用预置模板,详情请参见 [音画质重生模板](https://cloud.tencent.com/document/product/266/102586#50604b3f-0286-4a10-a3f7-18218116aff7)。 # 删除视频重生模板。 # @param request: Request instance for DeleteRebuildMediaTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteRebuildMediaTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteRebuildMediaTemplateResponse` def DeleteRebuildMediaTemplate(request) body = send_request('DeleteRebuildMediaTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteRebuildMediaTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义审核模板。 # >模板仅适用于 [音视频审核(ReviewAudioVideo)](https://cloud.tencent.com/document/api/266/80283) 和 [图片审核(ReviewImage)](https://cloud.tencent.com/document/api/266/73217) 接口。 # @param request: Request instance for DeleteReviewTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteReviewTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteReviewTemplateResponse` def DeleteReviewTemplate(request) body = send_request('DeleteReviewTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteReviewTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于删除轮播播单。 # @param request: Request instance for DeleteRoundPlay. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteRoundPlayRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteRoundPlayResponse` def DeleteRoundPlay(request) body = send_request('DeleteRoundPlay', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteRoundPlayResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义采样截图模板。 # @param request: Request instance for DeleteSampleSnapshotTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteSampleSnapshotTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteSampleSnapshotTemplateResponse` def DeleteSampleSnapshotTemplate(request) body = send_request('DeleteSampleSnapshotTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSampleSnapshotTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义指定时间点截图模板。 # @param request: Request instance for DeleteSnapshotByTimeOffsetTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteSnapshotByTimeOffsetTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteSnapshotByTimeOffsetTemplateResponse` def DeleteSnapshotByTimeOffsetTemplate(request) body = send_request('DeleteSnapshotByTimeOffsetTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSnapshotByTimeOffsetTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版播放器签名不再使用播放器配置模板,详细请参考 [播放器签名](https://cloud.tencent.com/document/product/266/45554)。 # 删除播放器配置。 # *注:系统预置播放器配置不允许删除。* # @param request: Request instance for DeleteSuperPlayerConfig. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteSuperPlayerConfigRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteSuperPlayerConfigResponse` def DeleteSuperPlayerConfig(request) body = send_request('DeleteSuperPlayerConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSuperPlayerConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义转码模板。 # @param request: Request instance for DeleteTranscodeTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteTranscodeTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteTranscodeTemplateResponse` def DeleteTranscodeTemplate(request) body = send_request('DeleteTranscodeTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTranscodeTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于删除点播加速域名。 # 1、域名删除前需要先关闭所有区域的加速。 # @param request: Request instance for DeleteVodDomain. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteVodDomainRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteVodDomainResponse` def DeleteVodDomain(request) body = send_request('DeleteVodDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteVodDomainResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除用户自定义水印模板。 # @param request: Request instance for DeleteWatermarkTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteWatermarkTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteWatermarkTemplateResponse` def DeleteWatermarkTemplate(request) body = send_request('DeleteWatermarkTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteWatermarkTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于批量删除关键词样本。 # @param request: Request instance for DeleteWordSamples. # @type request: :class:`Tencentcloud::vod::V20180717::DeleteWordSamplesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DeleteWordSamplesResponse` def DeleteWordSamples(request) body = send_request('DeleteWordSamples', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteWordSamplesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据音视频内容分析模板唯一标识,获取音视频内容分析模板详情列表。返回结果包含符合条件的所有用户自定义音视频内容分析模板及[系统预置音视频内容分析模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.A7.86.E9.A2.91.E5.86.85.E5.AE.B9.E5.88.86.E6.9E.90.E6.A8.A1.E6.9D.BF)。 # @param request: Request instance for DescribeAIAnalysisTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeAIAnalysisTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeAIAnalysisTemplatesResponse` def DescribeAIAnalysisTemplates(request) body = send_request('DescribeAIAnalysisTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAIAnalysisTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据音视频内容识别模板唯一标识,获取音视频内容识别模板详情列表。返回结果包含符合条件的所有用户自定义音视频内容识别模板及[系统预置音视频内容识别模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.A7.86.E9.A2.91.E5.86.85.E5.AE.B9.E8.AF.86.E5.88.AB.E6.A8.A1.E6.9D.BF)。 # @param request: Request instance for DescribeAIRecognitionTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeAIRecognitionTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeAIRecognitionTemplatesResponse` def DescribeAIRecognitionTemplates(request) body = send_request('DescribeAIRecognitionTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAIRecognitionTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询转自适应码流模板,支持根据条件,分页查询。 # @param request: Request instance for DescribeAdaptiveDynamicStreamingTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeAdaptiveDynamicStreamingTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeAdaptiveDynamicStreamingTemplatesResponse` def DescribeAdaptiveDynamicStreamingTemplates(request) body = send_request('DescribeAdaptiveDynamicStreamingTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAdaptiveDynamicStreamingTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 获得用户的所有分类信息。 # @param request: Request instance for DescribeAllClass. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeAllClassRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeAllClassResponse` def DescribeAllClass(request) body = send_request('DescribeAllClass', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAllClassResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询转动图模板列表,支持根据条件,分页查询。 # @param request: Request instance for DescribeAnimatedGraphicsTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeAnimatedGraphicsTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeAnimatedGraphicsTemplatesResponse` def DescribeAnimatedGraphicsTemplates(request) body = send_request('DescribeAnimatedGraphicsTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAnimatedGraphicsTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询点播域名的 CDN 带宽、流量等统计数据。 # * 查询的起始时间和结束时间跨度不超过90天。 # * 可以查询不同服务区域的数据。 # * 中国境内的数据支持查询指定地区、运营商的统计数据。 # @param request: Request instance for DescribeCDNStatDetails. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCDNStatDetailsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCDNStatDetailsResponse` def DescribeCDNStatDetails(request) body = send_request('DescribeCDNStatDetails', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCDNStatDetailsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询点播 CDN 的流量、带宽等统计数据。 # 1. 可以查询最近365天内的 CDN 用量数据。 # 2. 查询时间跨度不超过90天。 # 3. 可以指定用量数据的时间粒度,支持5分钟、1小时、1天的时间粒度。 # 4. 流量为查询时间粒度内的总流量,带宽为查询时间粒度内的峰值带宽。 # @param request: Request instance for DescribeCDNUsageData. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCDNUsageDataRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCDNUsageDataResponse` def DescribeCDNUsageData(request) body = send_request('DescribeCDNUsageData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCDNUsageDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询 VOD 创建的 CLS 日志集。 # @param request: Request instance for DescribeCLSLogsets. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCLSLogsetsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCLSLogsetsResponse` def DescribeCLSLogsets(request) body = send_request('DescribeCLSLogsets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCLSLogsetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询点播域名下日志投递的目标主题。 # @param request: Request instance for DescribeCLSPushTargets. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCLSPushTargetsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCLSPushTargetsResponse` def DescribeCLSPushTargets(request) body = send_request('DescribeCLSPushTargets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCLSPushTargetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询 VOD 创建的 CLS 日志主题列表。 # @param request: Request instance for DescribeCLSTopics. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCLSTopicsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCLSTopicsResponse` def DescribeCLSTopics(request) body = send_request('DescribeCLSTopics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCLSTopicsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询点播域名的 CDN 访问日志的下载链接。 # 1. 可以查询最近30天内的 CDN 日志下载链接。 # 2. 默认情况下 CDN 每小时生成一个日志文件,如果某一个小时没有 CDN 访问,不会生成日志文件。 # 3. CDN 日志下载链接的有效期为24小时。 # @param request: Request instance for DescribeCdnLogs. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCdnLogsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCdnLogsResponse` def DescribeCdnLogs(request) body = send_request('DescribeCdnLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCdnLogsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口返回查询时间范围内客户端上传加速统计信息。 # 1. 可以查询最近365天内的客户端上传加速统计数据。 # 2. 查询时间跨度不超过90天。 # 3. 查询时间跨度超过1天的,返回以天为粒度的数据,否则,返回以5分钟为粒度的数据。 # @param request: Request instance for DescribeClientUploadAccelerationUsageData. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeClientUploadAccelerationUsageDataRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeClientUploadAccelerationUsageDataResponse` def DescribeClientUploadAccelerationUsageData(request) body = send_request('DescribeClientUploadAccelerationUsageData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClientUploadAccelerationUsageDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版审核模板支持音视频审核和图片审核,详细请参考 [获取审核模板列表](https://cloud.tencent.com/document/api/266/84389)。 # 根据音视频内容审核模板唯一标识,获取音视频内容审核模板详情列表。返回结果包含符合条件的所有用户自定义模板及[系统预置内容审核模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.A7.86.E9.A2.91.E5.86.85.E5.AE.B9.E5.AE.A1.E6.A0.B8.E6.A8.A1.E6.9D.BF)。 # @param request: Request instance for DescribeContentReviewTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeContentReviewTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeContentReviewTemplatesResponse` def DescribeContentReviewTemplates(request) body = send_request('DescribeContentReviewTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeContentReviewTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询轮播当前播放列表。 # @param request: Request instance for DescribeCurrentPlaylist. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeCurrentPlaylistRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeCurrentPlaylistResponse` def DescribeCurrentPlaylist(request) body = send_request('DescribeCurrentPlaylist', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCurrentPlaylistResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询指定日期范围内每天的播放统计数据。 # * 可以查询最近一年的播放统计数据。 # * 结束日期和起始日期的时间跨度最大为90天。 # @param request: Request instance for DescribeDailyMediaPlayStat. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeDailyMediaPlayStatRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeDailyMediaPlayStatResponse` def DescribeDailyMediaPlayStat(request) body = send_request('DescribeDailyMediaPlayStat', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDailyMediaPlayStatResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询每日播放Top100 的媒体文件的播放统计数据。 # * 可以查询最近一年的播放统计数据。 # * 可以按播放次数或者播放流量查询。 # * 播放次数统计说明: # 1. HLS 文件:访问 M3U8 文件时统计播放次数;访问 TS 文件不统计播放次数。 # 2. 其它文件(如 MP4 文件):播放请求带有 range 参数且 range 的 start 参数不等于0时不统计播放次数,其它情况统计播放次数。 # @param request: Request instance for DescribeDailyMostPlayedStat. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeDailyMostPlayedStatRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeDailyMostPlayedStatResponse` def DescribeDailyMostPlayedStat(request) body = send_request('DescribeDailyMostPlayedStat', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDailyMostPlayedStatResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询播放统计文件的下载地址。 # * 可以查询最近一年的播放统计文件下载地址,查询的起始日期和结束日期的时间跨度不超过90天。 # * 云点播每天对前一天的 CDN 请求日志进行分析处理,生成播放统计文件。 # * 播放统计文件内容包含媒体文件的播放次数、播放流量等统计信息。 # * 播放次数统计说明: # 1. HLS 文件:访问M3U8 文件时统计播放次数;访问TS 文件不统计播放次数。 # 2. 其它文件(如 MP4 文件):播放请求带有 range 参数且 range 的 start 参数不等于0时不统计播放次数,其它情况统计播放次数。 # * 播放设备的统计:播放请求带了 UserAgent 参数,并且 UserAgent 包含 Android 或者 iPhone 等标识,会统计为移动端播放次数,否则统计为 PC 端播放次数。 # @param request: Request instance for DescribeDailyPlayStatFileList. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeDailyPlayStatFileListRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeDailyPlayStatFileListResponse` def DescribeDailyPlayStatFileList(request) body = send_request('DescribeDailyPlayStatFileList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDailyPlayStatFileListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询默认分发配置。 # * 分发域名和分发协议,即媒体文件分发 URL 中的域名和协议。媒体文件按默认分发配置进行分发。 # * 播放密钥,用于计算播放器签名。 # @param request: Request instance for DescribeDefaultDistributionConfig. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeDefaultDistributionConfigRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeDefaultDistributionConfigResponse` def DescribeDefaultDistributionConfig(request) body = send_request('DescribeDefaultDistributionConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDefaultDistributionConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本 API 是 [旧版本加密](https://cloud.tencent.com/document/product/266/9638) 中 [DescribeDrmDataKey 的 API 2017 接口](https://cloud.tencent.com/document/product/266/9643) 的升级版本。 # 如果您是新接入点播加密的用户,不要使用该 API,请参考 [视频加密综述](https://cloud.tencent.com/document/product/266/45552) 使用推荐的加密方式。 # @param request: Request instance for DescribeDrmDataKey. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeDrmDataKeyRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeDrmDataKeyResponse` def DescribeDrmDataKey(request) body = send_request('DescribeDrmDataKey', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDrmDataKeyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询 DRM 密钥提供商信息。 # @param request: Request instance for DescribeDrmKeyProviderInfo. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeDrmKeyProviderInfoRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeDrmKeyProviderInfoResponse` def DescribeDrmKeyProviderInfo(request) body = send_request('DescribeDrmKeyProviderInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDrmKeyProviderInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版 [音画质重生](https://cloud.tencent.com/document/product/266/102571) 接口使用预置模板,详情请参见 [音画质重生模板](https://cloud.tencent.com/document/product/266/102586#50604b3f-0286-4a10-a3f7-18218116aff7)。 # 获取音画质重生模板列表。 # @param request: Request instance for DescribeEnhanceMediaTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeEnhanceMediaTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeEnhanceMediaTemplatesResponse` def DescribeEnhanceMediaTemplates(request) body = send_request('DescribeEnhanceMediaTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEnhanceMediaTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 腾讯云点播为客户提供了媒体上传、媒体管理、媒体处理等等服务,在这些服务执行过程或执行结束时,腾讯云点播也提供各种对应的事件通知,方便开发者感知服务处理状态,并做下一步的业务操作。 # 开发者可以通过本接口来查询当前配置事件通知的接收方式、接收地址以及哪些事件开启了接收回调通知。 # 默认接口请求频率限制:100次/秒。 # @param request: Request instance for DescribeEventConfig. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeEventConfigRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeEventConfigResponse` def DescribeEventConfig(request) body = send_request('DescribeEventConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEventConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 该接口用于业务服务器获取 [可靠回调](https://cloud.tencent.com/document/product/266/33779#.E5.8F.AF.E9.9D.A0.E5.9B.9E.E8.B0.83) 事件通知的状态。 # @param request: Request instance for DescribeEventsState. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeEventsStateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeEventsStateResponse` def DescribeEventsState(request) body = send_request('DescribeEventsState', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEventsStateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于异步获取文件属性。 # - 当前仅支持获取源文件的 Md5、Sha1。 # - 对输入文件为 HLS 或 DASH 的情况,仅获取索引文件的属性。 # @param request: Request instance for DescribeFileAttributes. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeFileAttributesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeFileAttributesResponse` def DescribeFileAttributes(request) body = send_request('DescribeFileAttributes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFileAttributesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取片头片尾模板列表。 # @param request: Request instance for DescribeHeadTailTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeHeadTailTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeHeadTailTemplatesResponse` def DescribeHeadTailTemplates(request) body = send_request('DescribeHeadTailTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHeadTailTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取图片处理模板列表,支持根据条件,分页查询。 # @param request: Request instance for DescribeImageProcessingTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeImageProcessingTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeImageProcessingTemplatesResponse` def DescribeImageProcessingTemplates(request) body = send_request('DescribeImageProcessingTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageProcessingTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口返回查询时间范围内每天使用的图片审核用量信息。 # 1. 可以查询最近365天内的图片审核统计数据。 # 2. 查询时间跨度不超过90天。 # 3. 查询时间跨度超过1天的,返回以天为粒度的数据,否则,返回以5分钟为粒度的数据。 # @param request: Request instance for DescribeImageReviewUsageData. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeImageReviewUsageDataRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeImageReviewUsageDataResponse` def DescribeImageReviewUsageData(request) body = send_request('DescribeImageReviewUsageData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageReviewUsageDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询雪碧图模板,支持根据条件,分页查询。 # @param request: Request instance for DescribeImageSpriteTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeImageSpriteTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeImageSpriteTemplatesResponse` def DescribeImageSpriteTemplates(request) body = send_request('DescribeImageSpriteTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageSpriteTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取即时转码模板列表。 # @param request: Request instance for DescribeJustInTimeTranscodeTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeJustInTimeTranscodeTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeJustInTimeTranscodeTemplatesResponse` def DescribeJustInTimeTranscodeTemplates(request) body = send_request('DescribeJustInTimeTranscodeTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeJustInTimeTranscodeTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口返回查询时间范围内每天 License 请求次数信息。 # 1. 可以查询最近365天内的 License 请求次数统计数据。 # 2. 查询时间跨度不超过90天。 # 3. 查询时间跨度超过1天的,返回以天为粒度的数据,否则,返回以5分钟为粒度的数据。 # @param request: Request instance for DescribeLicenseUsageData. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeLicenseUsageDataRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeLicenseUsageDataResponse` def DescribeLicenseUsageData(request) body = send_request('DescribeLicenseUsageData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLicenseUsageDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 1. 该接口可以获取多个媒体文件的多种信息,包括: # 1. 基础信息(basicInfo):包括媒体名称、分类、播放地址、封面图片等。 # 2. 元信息(metaData):包括大小、时长、视频流信息、音频流信息等。 # 3. 转码结果信息(transcodeInfo):包括该媒体转码生成的各种规格的媒体地址、视频流参数、音频流参数等。 # 4. 转动图结果信息(animatedGraphicsInfo):对视频转动图(如 gif)后的动图信息。 # 5. 采样截图信息(sampleSnapshotInfo):对视频采样截图后的截图信息。 # 6. 雪碧图信息(imageSpriteInfo):对视频截取雪碧图后的雪碧图信息。 # 7. 指定时间点截图信息(snapshotByTimeOffsetInfo):对视频依照指定时间点截图后,的截图信息。 # 8. 视频打点信息(keyFrameDescInfo):对视频设置的打点信息。 # 9. 转自适应码流信息(adaptiveDynamicStreamingInfo):包括规格、加密类型、打包格式等相关信息。 # 10. 审核信息(reviewInfo):包括媒体审核及媒体封面审核信息。 # 2. 可以指定回包只返回部分信息。 # @param request: Request instance for DescribeMediaInfos. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeMediaInfosRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeMediaInfosResponse` def DescribeMediaInfos(request) body = send_request('DescribeMediaInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMediaInfosResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询媒体文件按指定时间粒度统计的播放数据 # * 可以查询最近一年的播放统计数据。 # * 时间粒度为小时,结束时间和起始时间的跨度最大为7天。 # * 时间粒度为天,结束时间和起始时间的跨度最大为90天。 # @param request: Request instance for DescribeMediaPlayStatDetails. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeMediaPlayStatDetailsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeMediaPlayStatDetailsResponse` def DescribeMediaPlayStatDetails(request) body = send_request('DescribeMediaPlayStatDetails', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMediaPlayStatDetailsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口返回查询时间范围内每天使用的视频处理用量信息。 # 1. 可以查询最近365天内的视频处理统计数据。 # 2. 查询时间跨度不超过90天。 # @param request: Request instance for DescribeMediaProcessUsageData. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeMediaProcessUsageDataRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeMediaProcessUsageDataResponse` def DescribeMediaProcessUsageData(request) body = send_request('DescribeMediaProcessUsageData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMediaProcessUsageDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询素材样本信息,支持根据素材 ID、名称、标签,分页查询。 # @param request: Request instance for DescribePersonSamples. # @type request: :class:`Tencentcloud::vod::V20180717::DescribePersonSamplesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribePersonSamplesResponse` def DescribePersonSamples(request) body = send_request('DescribePersonSamples', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePersonSamplesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口可以查询用户已经购买的预付费商品的信息,包括: # 1. 商品的类型、生效和失效日期。 # 2. 商品中每种资源的额度和剩余额度。 # @param request: Request instance for DescribePrepaidProducts. # @type request: :class:`Tencentcloud::vod::V20180717::DescribePrepaidProductsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribePrepaidProductsResponse` def DescribePrepaidProducts(request) body = send_request('DescribePrepaidProducts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePrepaidProductsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据任务流模板名字,获取任务流模板详情列表。 # @param request: Request instance for DescribeProcedureTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeProcedureTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeProcedureTemplatesResponse` def DescribeProcedureTemplates(request) body = send_request('DescribeProcedureTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProcedureTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取音画质检测模板列表。 # @param request: Request instance for DescribeQualityInspectTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeQualityInspectTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeQualityInspectTemplatesResponse` def DescribeQualityInspectTemplates(request) body = send_request('DescribeQualityInspectTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeQualityInspectTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版 [音画质重生](https://cloud.tencent.com/document/product/266/102571) 接口使用预置模板,详情请参见 [音画质重生模板](https://cloud.tencent.com/document/product/266/102586#50604b3f-0286-4a10-a3f7-18218116aff7)。 # 获取视频重生模板列表。 # @param request: Request instance for DescribeRebuildMediaTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeRebuildMediaTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeRebuildMediaTemplatesResponse` def DescribeRebuildMediaTemplates(request) body = send_request('DescribeRebuildMediaTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRebuildMediaTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口已不推荐使用,用 [DescribeMediaProcessUsageData](/document/product/266/41464) 替代 # 该接口返回查询时间范围内每天使用的视频内容智能识别时长数据,单位: 秒。 # 1. 可以查询最近365天内的视频内容智能识别时长统计数据。 # 2. 查询时间跨度不超过90天。 # @param request: Request instance for DescribeReviewDetails. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeReviewDetailsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeReviewDetailsResponse` def DescribeReviewDetails(request) body = send_request('DescribeReviewDetails', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReviewDetailsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取审核模板列表。 # >模板仅适用于 [音视频审核(ReviewAudioVideo)](https://cloud.tencent.com/document/api/266/80283) 和 [图片审核(ReviewImage)](https://cloud.tencent.com/document/api/266/73217) 接口。 # @param request: Request instance for DescribeReviewTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeReviewTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeReviewTemplatesResponse` def DescribeReviewTemplates(request) body = send_request('DescribeReviewTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReviewTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于获取轮播播单列表。 # @param request: Request instance for DescribeRoundPlays. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeRoundPlaysRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeRoundPlaysResponse` def DescribeRoundPlays(request) body = send_request('DescribeRoundPlays', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRoundPlaysResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询采样截图模板,支持根据条件,分页查询。 # @param request: Request instance for DescribeSampleSnapshotTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeSampleSnapshotTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeSampleSnapshotTemplatesResponse` def DescribeSampleSnapshotTemplates(request) body = send_request('DescribeSampleSnapshotTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSampleSnapshotTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询指定时间点截图模板,支持根据条件,分页查询。 # @param request: Request instance for DescribeSnapshotByTimeOffsetTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeSnapshotByTimeOffsetTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeSnapshotByTimeOffsetTemplatesResponse` def DescribeSnapshotByTimeOffsetTemplates(request) body = send_request('DescribeSnapshotByTimeOffsetTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotByTimeOffsetTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询存储空间使用情况和文件数量。 # @param request: Request instance for DescribeStorageData. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeStorageDataRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeStorageDataResponse` def DescribeStorageData(request) body = send_request('DescribeStorageData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeStorageDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口返回查询时间范围内使用的点播存储空间,单位:字节。 # 1. 可以查询最近365天内的存储空间数据; # 2. 查询时间跨度不超过90天; # 3. 分钟粒度查询跨度不超过7天; # @param request: Request instance for DescribeStorageDetails. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeStorageDetailsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeStorageDetailsResponse` def DescribeStorageDetails(request) body = send_request('DescribeStorageDetails', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeStorageDetailsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于: # 1. 查询点播可开通的所有存储园区列表。 # 2. 查询已经开通的园区列表。 # 3. 查询默认使用的存储园区。 # @param request: Request instance for DescribeStorageRegions. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeStorageRegionsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeStorageRegionsResponse` def DescribeStorageRegions(request) body = send_request('DescribeStorageRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeStorageRegionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于获取当前账号的应用列表。 # @param request: Request instance for DescribeSubAppIds. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeSubAppIdsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeSubAppIdsResponse` def DescribeSubAppIds(request) body = send_request('DescribeSubAppIds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSubAppIdsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,新版播放器签名不再使用播放器配置模板,详细请参考 [播放器签名](https://cloud.tencent.com/document/product/266/45554)。 # 查询播放器配置,支持根据条件,分页查询。 # @param request: Request instance for DescribeSuperPlayerConfigs. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeSuperPlayerConfigsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeSuperPlayerConfigsResponse` def DescribeSuperPlayerConfigs(request) body = send_request('DescribeSuperPlayerConfigs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSuperPlayerConfigsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 通过任务 ID 查询任务的执行状态和结果的详细信息(最多可以查询3天之内提交的任务)。 # @param request: Request instance for DescribeTaskDetail. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeTaskDetailRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeTaskDetailResponse` def DescribeTaskDetail(request) body = send_request('DescribeTaskDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 该接口用于查询任务列表; # * 当列表数据比较多时,单次接口调用无法拉取整个列表,可通过 ScrollToken 参数,分批拉取; # * 只能查询到最近三天(72 小时)内的任务。 # @param request: Request instance for DescribeTasks. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeTasksRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeTasksResponse` def DescribeTasks(request) body = send_request('DescribeTasks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTasksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据转码模板唯一标识,获取转码模板详情列表。返回结果包含符合条件的所有用户自定义模板及[系统预置转码模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.BD.AC.E7.A0.81.E6.A8.A1.E6.9D.BF)。 # @param request: Request instance for DescribeTranscodeTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeTranscodeTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeTranscodeTemplatesResponse` def DescribeTranscodeTemplates(request) body = send_request('DescribeTranscodeTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTranscodeTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于查询点播域名信息列表。 # @param request: Request instance for DescribeVodDomains. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeVodDomainsRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeVodDomainsResponse` def DescribeVodDomains(request) body = send_request('DescribeVodDomains', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVodDomainsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询用户自定义水印模板,支持根据条件,分页查询。 # @param request: Request instance for DescribeWatermarkTemplates. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeWatermarkTemplatesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeWatermarkTemplatesResponse` def DescribeWatermarkTemplates(request) body = send_request('DescribeWatermarkTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWatermarkTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口用于根据应用场景、关键词、标签,分页查询关键词样本信息。 # @param request: Request instance for DescribeWordSamples. # @type request: :class:`Tencentcloud::vod::V20180717::DescribeWordSamplesRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeWordSamplesResponse` def DescribeWordSamples(request) body = send_request('DescribeWordSamples', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWordSamplesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 对视频进行编辑(剪辑、拼接等),生成一个新的点播视频。编辑的功能包括: # 1. 对点播中的一个文件进行剪辑,生成一个新的视频; # 2. 对点播中的多个文件进行拼接,生成一个新的视频; # 3. 对点播中的多个文件进行剪辑,然后再拼接,生成一个新的视频; # 4. 对点播中的一个流,直接生成一个新的视频; # 5. 对点播中的一个流进行剪辑,生成一个新的视频; # 6. 对点播中的多个流进行拼接,生成一个新的视频; # 7. 对点播中的多个流进行剪辑,然后拼接,生成一个新的视频。 # 对于生成的新视频,还可以指定生成后的视频是否要执行任务流。 # >当对直播流做剪辑、拼接等操作时,请确保流结束后再操作。否则生成的视频可能不完整。 # 如使用事件通知,事件通知的类型为 [视频编辑完成](https://cloud.tencent.com/document/product/266/33794)。 # @param request: Request instance for EditMedia. # @type request: :class:`Tencentcloud::vod::V20180717::EditMediaRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::EditMediaResponse` def EditMedia(request) body = send_request('EditMedia', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EditMediaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护,请使用新版接口 [音画质重生](https://cloud.tencent.com/document/api/266/102571)。 # 使用模板发起音画质重生。 # @param request: Request instance for EnhanceMediaByTemplate. # @type request: :class:`Tencentcloud::vod::V20180717::EnhanceMediaByTemplateRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::EnhanceMediaByTemplateResponse` def EnhanceMediaByTemplate(request) body = send_request('EnhanceMediaByTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnhanceMediaByTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 对点播中的音视频媒体发起音画质重生任务。 # @param request: Request instance for EnhanceMediaQuality. # @type request: :class:`Tencentcloud::vod::V20180717::EnhanceMediaQualityRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::EnhanceMediaQualityResponse` def EnhanceMediaQuality(request) body = send_request('EnhanceMediaQuality', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnhanceMediaQualityResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口仅用于定制开发的特殊场景,除非云点播客服人员主动告知您需要使用本接口,其它情况请勿调用。 # @param request: Request instance for ExecuteFunction. # @type request: :class:`Tencentcloud::vod::V20180717::ExecuteFunctionRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ExecuteFunctionResponse` def ExecuteFunction(request) body = send_request('ExecuteFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExecuteFunctionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护。如果有盗录溯源需求,请参考 [幽灵水印](https://cloud.tencent.com/document/product/266/94228)。 # @param request: Request instance for ExtractCopyRightWatermark. # @type request: :class:`Tencentcloud::vod::V20180717::ExtractCopyRightWatermarkRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ExtractCopyRightWatermarkResponse` def ExtractCopyRightWatermark(request) body = send_request('ExtractCopyRightWatermark', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExtractCopyRightWatermarkResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该 API 已经不再维护。如果有盗录溯源需求,请参考 [幽灵水印](https://cloud.tencent.com/document/product/266/94228)。 # @param request: Request instance for ExtractTraceWatermark. # @type request: :class:`Tencentcloud::vod::V20180717::ExtractTraceWatermarkRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ExtractTraceWatermarkResponse` def ExtractTraceWatermark(request) body = send_request('ExtractTraceWatermark', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExtractTraceWatermarkResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 对云点播的 HLS 视频实现快速拼接和快速剪辑,生成新的 HLS 格式的媒体。 # 快速拼接或剪辑生成的视频,将产生新的 FileId 并进行固化,固化成功后新视频的文件独立于原始输入视频存在,不受原始视频删除等影响。 # 注意:通过 ModifyEventConfig 接口启用接收剪辑固化事件通知,固化成功后将会收到一个 PersitenceComplete 类型的事件通知。在收到这个事件通知之前,不应该对原始输入的视频进行删除、降冷等操作,否则拼接剪辑生成的视频播放可能出现异常。 # @param request: Request instance for FastEditMedia. # @type request: :class:`Tencentcloud::vod::V20180717::FastEditMediaRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::FastEditMediaResponse` def FastEditMedia(request) body = send_request('FastEditMedia', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = FastEditMediaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # * 对媒体禁播后,除了点播控制台预览,其他场景访问视频各种资源的 URL(原始文件、转码输出文件、截图等)均会返回 403。 # 禁播/解禁操作全网生效时间约 5~10 分钟。 # * 注意:禁播媒体仅能操作标准存储和低频存储的媒体。低频存储媒体,必须存储至少 30 天,提前删除或变更存储类型,仍旧按照 30 天计费;如果禁播低频存储媒体,该媒体低频存储的时长不足 30 天,会产生提前删除计费;同时,禁播后该媒体的低频存储时长会从当前时间重新开始计算,如果不满 30 天继续对该媒体进行删除或变更存储类型,也将产生提前删除计费。例:媒体 001 已经低频存储了 10 天,此时对 001 进行禁播,低频存储的计费仍旧按 30 天计算(提前删除计费时长为 30 - 10 = 20 天);禁播后 001 的低频存储时长重新开始计算,如果禁播后第 5 天删除了 001,低频存储计费也会按 30 天计算(提前删除计费时长为 30 - 5 = 25 天);001 实际的低频存储时长为 10 + 5 = 15 天,低频存储计费时长为 10 + 20(提前删除计费)+ 5 + 25(提前删除计费) = 60 天。 # @param request: Request instance for ForbidMediaDistribution. # @type request: :class:`Tencentcloud::vod::V20180717::ForbidMediaDistributionRequest` # @rtype: :class:`Tencentcloud::vod::V20180717::ForbidMediaDistributionResponse` def ForbidMediaDistribution(request) body = send_request('ForbidMediaDistribution', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ForbidMediaDistributionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 操作轮播当前播放列表。支持的操作有: