lib/v20180717/models.rb in tencentcloud-sdk-vod-1.0.319 vs lib/v20180717/models.rb in tencentcloud-sdk-vod-1.0.320
- old
+ new
@@ -4894,10 +4894,12 @@
end
end
# CreateAIAnalysisTemplate请求参数结构体
class CreateAIAnalysisTemplateRequest < TencentCloud::Common::AbstractModel
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 视频内容分析模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 视频内容分析模板描述信息,长度限制:256 个字符。
# @type Comment: String
# @param ClassificationConfigure: 智能分类任务控制参数。
@@ -4908,27 +4910,26 @@
# @type CoverConfigure: :class:`Tencentcloud::Vod.v20180717.models.CoverConfigureInfo`
# @param FrameTagConfigure: 智能按帧标签任务控制参数。
# @type FrameTagConfigure: :class:`Tencentcloud::Vod.v20180717.models.FrameTagConfigureInfo`
# @param HighlightConfigure: 智能精彩集锦任务控制参数。
# @type HighlightConfigure: :class:`Tencentcloud::Vod.v20180717.models.HighlightsConfigureInfo`
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Name, :Comment, :ClassificationConfigure, :TagConfigure, :CoverConfigure, :FrameTagConfigure, :HighlightConfigure, :SubAppId
+ attr_accessor :SubAppId, :Name, :Comment, :ClassificationConfigure, :TagConfigure, :CoverConfigure, :FrameTagConfigure, :HighlightConfigure
- def initialize(name=nil, comment=nil, classificationconfigure=nil, tagconfigure=nil, coverconfigure=nil, frametagconfigure=nil, highlightconfigure=nil, subappid=nil)
+ def initialize(subappid=nil, name=nil, comment=nil, classificationconfigure=nil, tagconfigure=nil, coverconfigure=nil, frametagconfigure=nil, highlightconfigure=nil)
+ @SubAppId = subappid
@Name = name
@Comment = comment
@ClassificationConfigure = classificationconfigure
@TagConfigure = tagconfigure
@CoverConfigure = coverconfigure
@FrameTagConfigure = frametagconfigure
@HighlightConfigure = highlightconfigure
- @SubAppId = subappid
end
def deserialize(params)
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Comment = params['Comment']
unless params['ClassificationConfigure'].nil?
@ClassificationConfigure = ClassificationConfigureInfo.new
@ClassificationConfigure.deserialize(params['ClassificationConfigure'])
@@ -4947,11 +4948,10 @@
end
unless params['HighlightConfigure'].nil?
@HighlightConfigure = HighlightsConfigureInfo.new
@HighlightConfigure.deserialize(params['HighlightConfigure'])
end
- @SubAppId = params['SubAppId']
end
end
# CreateAIAnalysisTemplate返回参数结构体
class CreateAIAnalysisTemplateResponse < TencentCloud::Common::AbstractModel
@@ -4973,10 +4973,12 @@
end
end
# CreateAIRecognitionTemplate请求参数结构体
class CreateAIRecognitionTemplateRequest < TencentCloud::Common::AbstractModel
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 视频内容识别模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 视频内容识别模板描述信息,长度限制:256 个字符。
# @type Comment: String
# @param HeadTailConfigure: 视频片头片尾识别控制参数。
@@ -4995,16 +4997,15 @@
# @type AsrWordsConfigure: :class:`Tencentcloud::Vod.v20180717.models.AsrWordsConfigureInfo`
# @param ObjectConfigure: 物体识别控制参数。
# @type ObjectConfigure: :class:`Tencentcloud::Vod.v20180717.models.ObjectConfigureInfo`
# @param ScreenshotInterval: 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。
# @type ScreenshotInterval: Float
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :ObjectConfigure, :ScreenshotInterval, :SubAppId
+ attr_accessor :SubAppId, :Name, :Comment, :HeadTailConfigure, :SegmentConfigure, :FaceConfigure, :OcrFullTextConfigure, :OcrWordsConfigure, :AsrFullTextConfigure, :AsrWordsConfigure, :ObjectConfigure, :ScreenshotInterval
- def initialize(name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, objectconfigure=nil, screenshotinterval=nil, subappid=nil)
+ def initialize(subappid=nil, name=nil, comment=nil, headtailconfigure=nil, segmentconfigure=nil, faceconfigure=nil, ocrfulltextconfigure=nil, ocrwordsconfigure=nil, asrfulltextconfigure=nil, asrwordsconfigure=nil, objectconfigure=nil, screenshotinterval=nil)
+ @SubAppId = subappid
@Name = name
@Comment = comment
@HeadTailConfigure = headtailconfigure
@SegmentConfigure = segmentconfigure
@FaceConfigure = faceconfigure
@@ -5012,14 +5013,14 @@
@OcrWordsConfigure = ocrwordsconfigure
@AsrFullTextConfigure = asrfulltextconfigure
@AsrWordsConfigure = asrwordsconfigure
@ObjectConfigure = objectconfigure
@ScreenshotInterval = screenshotinterval
- @SubAppId = subappid
end
def deserialize(params)
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Comment = params['Comment']
unless params['HeadTailConfigure'].nil?
@HeadTailConfigure = HeadTailConfigureInfo.new
@HeadTailConfigure.deserialize(params['HeadTailConfigure'])
@@ -5051,11 +5052,10 @@
unless params['ObjectConfigure'].nil?
@ObjectConfigure = ObjectConfigureInfo.new
@ObjectConfigure.deserialize(params['ObjectConfigure'])
end
@ScreenshotInterval = params['ScreenshotInterval']
- @SubAppId = params['SubAppId']
end
end
# CreateAIRecognitionTemplate返回参数结构体
class CreateAIRecognitionTemplateResponse < TencentCloud::Common::AbstractModel
@@ -5083,10 +5083,12 @@
# <li>HLS。</li>
# @type Format: String
# @param StreamInfos: 自适应转码输出子流参数信息,最多输出10路子流。
# 注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。
# @type StreamInfos: Array
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 模板名称,长度限制:64 个字符。
# @type Name: String
# @param DrmType: DRM 方案类型,取值范围:
# <li>SimpleAES</li>
# <li>Widevine</li>
@@ -5103,24 +5105,22 @@
# <li>1:是。</li>
# 默认为否。
# @type DisableHigherVideoResolution: Integer
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Format, :StreamInfos, :Name, :DrmType, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :Comment, :SubAppId
+ attr_accessor :Format, :StreamInfos, :SubAppId, :Name, :DrmType, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :Comment
- def initialize(format=nil, streaminfos=nil, name=nil, drmtype=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, comment=nil, subappid=nil)
+ def initialize(format=nil, streaminfos=nil, subappid=nil, name=nil, drmtype=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, comment=nil)
@Format = format
@StreamInfos = streaminfos
+ @SubAppId = subappid
@Name = name
@DrmType = drmtype
@DisableHigherVideoBitrate = disablehighervideobitrate
@DisableHigherVideoResolution = disablehighervideoresolution
@Comment = comment
- @SubAppId = subappid
end
def deserialize(params)
@Format = params['Format']
unless params['StreamInfos'].nil?
@@ -5129,16 +5129,16 @@
adaptivestreamtemplate_tmp = AdaptiveStreamTemplate.new
adaptivestreamtemplate_tmp.deserialize(i)
@StreamInfos << adaptivestreamtemplate_tmp
end
end
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@DrmType = params['DrmType']
@DisableHigherVideoBitrate = params['DisableHigherVideoBitrate']
@DisableHigherVideoResolution = params['DisableHigherVideoResolution']
@Comment = params['Comment']
- @SubAppId = params['SubAppId']
end
end
# CreateAdaptiveDynamicStreamingTemplate返回参数结构体
class CreateAdaptiveDynamicStreamingTemplateResponse < TencentCloud::Common::AbstractModel
@@ -5162,10 +5162,12 @@
# CreateAnimatedGraphicsTemplate请求参数结构体
class CreateAnimatedGraphicsTemplateRequest < TencentCloud::Common::AbstractModel
# @param Fps: 帧率,取值范围:[1, 30],单位:Hz。
# @type Fps: Integer
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Width: 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
# <li>当 Width、Height 均为 0,则分辨率同源;</li>
# <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li>
# <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li>
# <li>当 Width、Height 均非 0,则分辨率按用户指定。</li>
@@ -5189,37 +5191,35 @@
# @type Quality: Float
# @param Name: 转动图模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Fps, :Width, :Height, :ResolutionAdaptive, :Format, :Quality, :Name, :Comment, :SubAppId
+ attr_accessor :Fps, :SubAppId, :Width, :Height, :ResolutionAdaptive, :Format, :Quality, :Name, :Comment
- def initialize(fps=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, quality=nil, name=nil, comment=nil, subappid=nil)
+ def initialize(fps=nil, subappid=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, quality=nil, name=nil, comment=nil)
@Fps = fps
+ @SubAppId = subappid
@Width = width
@Height = height
@ResolutionAdaptive = resolutionadaptive
@Format = format
@Quality = quality
@Name = name
@Comment = comment
- @SubAppId = subappid
end
def deserialize(params)
@Fps = params['Fps']
+ @SubAppId = params['SubAppId']
@Width = params['Width']
@Height = params['Height']
@ResolutionAdaptive = params['ResolutionAdaptive']
@Format = params['Format']
@Quality = params['Quality']
@Name = params['Name']
@Comment = params['Comment']
- @SubAppId = params['SubAppId']
end
end
# CreateAnimatedGraphicsTemplate返回参数结构体
class CreateAnimatedGraphicsTemplateResponse < TencentCloud::Common::AbstractModel
@@ -5289,10 +5289,12 @@
class CreateContentReviewTemplateRequest < TencentCloud::Common::AbstractModel
# @param ReviewWallSwitch: 智能识别结果是否进入智能识别墙(对识别结果进行人工复核)的开关。
# <li>ON:是;</li>
# <li>OFF:否。</li>
# @type ReviewWallSwitch: String
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 内容智能识别模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 内容智能识别模板描述信息,长度限制:256 个字符。
# @type Comment: String
# @param PornConfigure: 令人反感的信息的控制参数。
@@ -5307,30 +5309,29 @@
# @type ProhibitedConfigure: :class:`Tencentcloud::Vod.v20180717.models.ProhibitedConfigureInfo`
# @param UserDefineConfigure: 用户自定义内容智能识别控制参数。
# @type UserDefineConfigure: :class:`Tencentcloud::Vod.v20180717.models.UserDefineConfigureInfo`
# @param ScreenshotInterval: 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。
# @type ScreenshotInterval: Float
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :ReviewWallSwitch, :Name, :Comment, :PornConfigure, :TerrorismConfigure, :PoliticalConfigure, :ProhibitedConfigure, :UserDefineConfigure, :ScreenshotInterval, :SubAppId
+ attr_accessor :ReviewWallSwitch, :SubAppId, :Name, :Comment, :PornConfigure, :TerrorismConfigure, :PoliticalConfigure, :ProhibitedConfigure, :UserDefineConfigure, :ScreenshotInterval
- def initialize(reviewwallswitch=nil, name=nil, comment=nil, pornconfigure=nil, terrorismconfigure=nil, politicalconfigure=nil, prohibitedconfigure=nil, userdefineconfigure=nil, screenshotinterval=nil, subappid=nil)
+ def initialize(reviewwallswitch=nil, subappid=nil, name=nil, comment=nil, pornconfigure=nil, terrorismconfigure=nil, politicalconfigure=nil, prohibitedconfigure=nil, userdefineconfigure=nil, screenshotinterval=nil)
@ReviewWallSwitch = reviewwallswitch
+ @SubAppId = subappid
@Name = name
@Comment = comment
@PornConfigure = pornconfigure
@TerrorismConfigure = terrorismconfigure
@PoliticalConfigure = politicalconfigure
@ProhibitedConfigure = prohibitedconfigure
@UserDefineConfigure = userdefineconfigure
@ScreenshotInterval = screenshotinterval
- @SubAppId = subappid
end
def deserialize(params)
@ReviewWallSwitch = params['ReviewWallSwitch']
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Comment = params['Comment']
unless params['PornConfigure'].nil?
@PornConfigure = PornConfigureInfo.new
@PornConfigure.deserialize(params['PornConfigure'])
@@ -5350,11 +5351,10 @@
unless params['UserDefineConfigure'].nil?
@UserDefineConfigure = UserDefineConfigureInfo.new
@UserDefineConfigure.deserialize(params['UserDefineConfigure'])
end
@ScreenshotInterval = params['ScreenshotInterval']
- @SubAppId = params['SubAppId']
end
end
# CreateContentReviewTemplate返回参数结构体
class CreateContentReviewTemplateResponse < TencentCloud::Common::AbstractModel
@@ -5551,10 +5551,12 @@
# @type SampleInterval: Integer
# @param RowCount: 雪碧图中小图的行数。
# @type RowCount: Integer
# @param ColumnCount: 雪碧图中小图的列数。
# @type ColumnCount: Integer
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 雪碧图模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
# @param FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
@@ -5579,41 +5581,39 @@
# @param ResolutionAdaptive: 分辨率自适应,可选值:
# <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li>
# <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li>
# 默认值:open。
# @type ResolutionAdaptive: String
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :SampleType, :SampleInterval, :RowCount, :ColumnCount, :Name, :Comment, :FillType, :Width, :Height, :ResolutionAdaptive, :SubAppId
+ attr_accessor :SampleType, :SampleInterval, :RowCount, :ColumnCount, :SubAppId, :Name, :Comment, :FillType, :Width, :Height, :ResolutionAdaptive
- def initialize(sampletype=nil, sampleinterval=nil, rowcount=nil, columncount=nil, name=nil, comment=nil, filltype=nil, width=nil, height=nil, resolutionadaptive=nil, subappid=nil)
+ def initialize(sampletype=nil, sampleinterval=nil, rowcount=nil, columncount=nil, subappid=nil, name=nil, comment=nil, filltype=nil, width=nil, height=nil, resolutionadaptive=nil)
@SampleType = sampletype
@SampleInterval = sampleinterval
@RowCount = rowcount
@ColumnCount = columncount
+ @SubAppId = subappid
@Name = name
@Comment = comment
@FillType = filltype
@Width = width
@Height = height
@ResolutionAdaptive = resolutionadaptive
- @SubAppId = subappid
end
def deserialize(params)
@SampleType = params['SampleType']
@SampleInterval = params['SampleInterval']
@RowCount = params['RowCount']
@ColumnCount = params['ColumnCount']
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Comment = params['Comment']
@FillType = params['FillType']
@Width = params['Width']
@Height = params['Height']
@ResolutionAdaptive = params['ResolutionAdaptive']
- @SubAppId = params['SubAppId']
end
end
# CreateImageSpriteTemplate返回参数结构体
class CreateImageSpriteTemplateResponse < TencentCloud::Common::AbstractModel
@@ -5642,40 +5642,40 @@
# @param Usages: 素材应用场景,可选值:
# 1. Recognition:用于内容识别,等价于 Recognition.Face。
# 2. Review:用于内容不适宜,等价于 Review.Face。
# 3. All:包含以上全部,等价于 1+2。
# @type Usages: Array
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Description: 素材描述,长度限制:1024 个字符。
# @type Description: String
# @param FaceContents: 素材图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串,仅支持 jpeg、png 图片格式。数组长度限制:5 张图片。
# 注意:图片必须是单人像五官较清晰的照片,像素不低于 200*200。
# @type FaceContents: Array
# @param Tags: 素材标签
# <li>数组长度限制:20 个标签;</li>
# <li>单个标签长度限制:128 个字符。</li>
# @type Tags: Array
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Name, :Usages, :Description, :FaceContents, :Tags, :SubAppId
+ attr_accessor :Name, :Usages, :SubAppId, :Description, :FaceContents, :Tags
- def initialize(name=nil, usages=nil, description=nil, facecontents=nil, tags=nil, subappid=nil)
+ def initialize(name=nil, usages=nil, subappid=nil, description=nil, facecontents=nil, tags=nil)
@Name = name
@Usages = usages
+ @SubAppId = subappid
@Description = description
@FaceContents = facecontents
@Tags = tags
- @SubAppId = subappid
end
def deserialize(params)
@Name = params['Name']
@Usages = params['Usages']
+ @SubAppId = params['SubAppId']
@Description = params['Description']
@FaceContents = params['FaceContents']
@Tags = params['Tags']
- @SubAppId = params['SubAppId']
end
end
# CreatePersonSample返回参数结构体
class CreatePersonSampleResponse < TencentCloud::Common::AbstractModel
@@ -5787,10 +5787,12 @@
# @type SampleType: String
# @param SampleInterval: 采样间隔。
# <li>当 SampleType 为 Percent 时,指定采样间隔的百分比。</li>
# <li>当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。</li>
# @type SampleInterval: Integer
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 采样截图模板名称,长度限制:64 个字符。
# @type Name: String
# @param Width: 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
# <li>当 Width、Height 均为 0,则分辨率同源;</li>
# <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li>
@@ -5812,45 +5814,43 @@
# @type ResolutionAdaptive: String
# @param Format: 图片格式,取值为 jpg 和 png。默认为 jpg。
# @type Format: String
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
# @param FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
# <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
# <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li>
# <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li>
# <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li>
# 默认值:black 。
# @type FillType: String
- attr_accessor :SampleType, :SampleInterval, :Name, :Width, :Height, :ResolutionAdaptive, :Format, :Comment, :SubAppId, :FillType
+ attr_accessor :SampleType, :SampleInterval, :SubAppId, :Name, :Width, :Height, :ResolutionAdaptive, :Format, :Comment, :FillType
- def initialize(sampletype=nil, sampleinterval=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, subappid=nil, filltype=nil)
+ def initialize(sampletype=nil, sampleinterval=nil, subappid=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, filltype=nil)
@SampleType = sampletype
@SampleInterval = sampleinterval
+ @SubAppId = subappid
@Name = name
@Width = width
@Height = height
@ResolutionAdaptive = resolutionadaptive
@Format = format
@Comment = comment
- @SubAppId = subappid
@FillType = filltype
end
def deserialize(params)
@SampleType = params['SampleType']
@SampleInterval = params['SampleInterval']
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Width = params['Width']
@Height = params['Height']
@ResolutionAdaptive = params['ResolutionAdaptive']
@Format = params['Format']
@Comment = params['Comment']
- @SubAppId = params['SubAppId']
@FillType = params['FillType']
end
end
# CreateSampleSnapshotTemplate返回参数结构体
@@ -5873,10 +5873,12 @@
end
end
# CreateSnapshotByTimeOffsetTemplate请求参数结构体
class CreateSnapshotByTimeOffsetTemplateRequest < TencentCloud::Common::AbstractModel
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 指定时间点截图模板名称,长度限制:64 个字符。
# @type Name: String
# @param Width: 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
# <li>当 Width、Height 均为 0,则分辨率同源;</li>
# <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li>
@@ -5898,41 +5900,39 @@
# @type ResolutionAdaptive: String
# @param Format: 图片格式,取值可以为 jpg 和 png。默认为 jpg。
# @type Format: String
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
# @param FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
# <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
# <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li>
# <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li>
# <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li>
# 默认值:black 。
# @type FillType: String
- attr_accessor :Name, :Width, :Height, :ResolutionAdaptive, :Format, :Comment, :SubAppId, :FillType
+ attr_accessor :SubAppId, :Name, :Width, :Height, :ResolutionAdaptive, :Format, :Comment, :FillType
- def initialize(name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, subappid=nil, filltype=nil)
+ def initialize(subappid=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, filltype=nil)
+ @SubAppId = subappid
@Name = name
@Width = width
@Height = height
@ResolutionAdaptive = resolutionadaptive
@Format = format
@Comment = comment
- @SubAppId = subappid
@FillType = filltype
end
def deserialize(params)
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Width = params['Width']
@Height = params['Height']
@ResolutionAdaptive = params['ResolutionAdaptive']
@Format = params['Format']
@Comment = params['Comment']
- @SubAppId = params['SubAppId']
@FillType = params['FillType']
end
end
# CreateSnapshotByTimeOffsetTemplate返回参数结构体
@@ -6142,10 +6142,12 @@
# CreateTranscodeTemplate请求参数结构体
class CreateTranscodeTemplateRequest < TencentCloud::Common::AbstractModel
# @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。
# @type Container: String
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 转码模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
# @param RemoveVideo: 是否去除视频数据,可选值:
@@ -6162,29 +6164,28 @@
# @type VideoTemplate: :class:`Tencentcloud::Vod.v20180717.models.VideoTemplateInfo`
# @param AudioTemplate: 音频流配置参数,当 RemoveAudio 为 0,该字段必填。
# @type AudioTemplate: :class:`Tencentcloud::Vod.v20180717.models.AudioTemplateInfo`
# @param TEHDConfig: 极速高清转码参数。
# @type TEHDConfig: :class:`Tencentcloud::Vod.v20180717.models.TEHDConfig`
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Container, :Name, :Comment, :RemoveVideo, :RemoveAudio, :VideoTemplate, :AudioTemplate, :TEHDConfig, :SubAppId
+ attr_accessor :Container, :SubAppId, :Name, :Comment, :RemoveVideo, :RemoveAudio, :VideoTemplate, :AudioTemplate, :TEHDConfig
- def initialize(container=nil, name=nil, comment=nil, removevideo=nil, removeaudio=nil, videotemplate=nil, audiotemplate=nil, tehdconfig=nil, subappid=nil)
+ def initialize(container=nil, subappid=nil, name=nil, comment=nil, removevideo=nil, removeaudio=nil, videotemplate=nil, audiotemplate=nil, tehdconfig=nil)
@Container = container
+ @SubAppId = subappid
@Name = name
@Comment = comment
@RemoveVideo = removevideo
@RemoveAudio = removeaudio
@VideoTemplate = videotemplate
@AudioTemplate = audiotemplate
@TEHDConfig = tehdconfig
- @SubAppId = subappid
end
def deserialize(params)
@Container = params['Container']
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Comment = params['Comment']
@RemoveVideo = params['RemoveVideo']
@RemoveAudio = params['RemoveAudio']
unless params['VideoTemplate'].nil?
@@ -6197,11 +6198,10 @@
end
unless params['TEHDConfig'].nil?
@TEHDConfig = TEHDConfig.new
@TEHDConfig.deserialize(params['TEHDConfig'])
end
- @SubAppId = params['SubAppId']
end
end
# CreateTranscodeTemplate返回参数结构体
class CreateTranscodeTemplateResponse < TencentCloud::Common::AbstractModel
@@ -6272,10 +6272,12 @@
# @param Type: 水印类型,可选值:
# <li>image:图片水印;</li>
# <li>text:文字水印;</li>
# <li>svg:SVG 水印。</li>
# @type Type: String
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 水印模板名称,长度限制:64 个字符。
# @type Name: String
# @param Comment: 模板描述信息,长度限制:256 个字符。
# @type Comment: String
# @param CoordinateOrigin: 原点位置,可选值:
@@ -6299,30 +6301,29 @@
# @type ImageTemplate: :class:`Tencentcloud::Vod.v20180717.models.ImageWatermarkInput`
# @param TextTemplate: 文字水印模板,当 Type 为 text,该字段必填。当 Type 为 image,该字段无效。
# @type TextTemplate: :class:`Tencentcloud::Vod.v20180717.models.TextWatermarkTemplateInput`
# @param SvgTemplate: SVG水印模板,当 Type 为 svg,该字段必填。当 Type 为 image 或 text,该字段无效。
# @type SvgTemplate: :class:`Tencentcloud::Vod.v20180717.models.SvgWatermarkInput`
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Type, :Name, :Comment, :CoordinateOrigin, :XPos, :YPos, :ImageTemplate, :TextTemplate, :SvgTemplate, :SubAppId
+ attr_accessor :Type, :SubAppId, :Name, :Comment, :CoordinateOrigin, :XPos, :YPos, :ImageTemplate, :TextTemplate, :SvgTemplate
- def initialize(type=nil, name=nil, comment=nil, coordinateorigin=nil, xpos=nil, ypos=nil, imagetemplate=nil, texttemplate=nil, svgtemplate=nil, subappid=nil)
+ def initialize(type=nil, subappid=nil, name=nil, comment=nil, coordinateorigin=nil, xpos=nil, ypos=nil, imagetemplate=nil, texttemplate=nil, svgtemplate=nil)
@Type = type
+ @SubAppId = subappid
@Name = name
@Comment = comment
@CoordinateOrigin = coordinateorigin
@XPos = xpos
@YPos = ypos
@ImageTemplate = imagetemplate
@TextTemplate = texttemplate
@SvgTemplate = svgtemplate
- @SubAppId = subappid
end
def deserialize(params)
@Type = params['Type']
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Comment = params['Comment']
@CoordinateOrigin = params['CoordinateOrigin']
@XPos = params['XPos']
@YPos = params['YPos']
@@ -6336,11 +6337,10 @@
end
unless params['SvgTemplate'].nil?
@SvgTemplate = SvgWatermarkInput.new
@SvgTemplate.deserialize(params['SvgTemplate'])
end
- @SubAppId = params['SubAppId']
end
end
# CreateWatermarkTemplate返回参数结构体
class CreateWatermarkTemplateResponse < TencentCloud::Common::AbstractModel
@@ -6378,11 +6378,11 @@
# 6. Review:通过光学字符识别技术、音频识别技术,进行不适宜内容识别,等价于 3+4;
# 7. All:通过光学字符识别技术、音频识别技术,进行内容识别、不适宜内容识别,等价于 1+2+3+4。
# @type Usages: Array
# @param Words: 关键词,数组长度限制:100。
# @type Words: Array
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
# @type SubAppId: Integer
attr_accessor :Usages, :Words, :SubAppId
def initialize(usages=nil, words=nil, subappid=nil)
@@ -6822,11 +6822,11 @@
# DeletePersonSample请求参数结构体
class DeletePersonSampleRequest < TencentCloud::Common::AbstractModel
# @param PersonId: 素材 ID。
# @type PersonId: String
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
# @type SubAppId: Integer
attr_accessor :PersonId, :SubAppId
def initialize(personid=nil, subappid=nil)
@@ -7110,11 +7110,11 @@
# DeleteWordSamples请求参数结构体
class DeleteWordSamplesRequest < TencentCloud::Common::AbstractModel
# @param Keywords: 关键词,数组长度限制:100 个词。
# @type Keywords: Array
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
# @type SubAppId: Integer
attr_accessor :Keywords, :SubAppId
def initialize(keywords=nil, subappid=nil)
@@ -8563,10 +8563,12 @@
end
end
# DescribePersonSamples请求参数结构体
class DescribePersonSamplesRequest < TencentCloud::Common::AbstractModel
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Type: 拉取的素材类型,可选值:
# <li>UserDefine:用户自定义素材库;</li>
# <li>Default:系统默认素材库。</li>
# 默认值:UserDefine,拉取用户自定义素材库素材。
@@ -8580,33 +8582,31 @@
# @type Tags: Array
# @param Offset: 分页偏移量,默认值:0。
# @type Offset: Integer
# @param Limit: 返回记录条数,默认值:100,最大值:100。
# @type Limit: Integer
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Type, :PersonIds, :Names, :Tags, :Offset, :Limit, :SubAppId
+ attr_accessor :SubAppId, :Type, :PersonIds, :Names, :Tags, :Offset, :Limit
- def initialize(type=nil, personids=nil, names=nil, tags=nil, offset=nil, limit=nil, subappid=nil)
+ def initialize(subappid=nil, type=nil, personids=nil, names=nil, tags=nil, offset=nil, limit=nil)
+ @SubAppId = subappid
@Type = type
@PersonIds = personids
@Names = names
@Tags = tags
@Offset = offset
@Limit = limit
- @SubAppId = subappid
end
def deserialize(params)
+ @SubAppId = params['SubAppId']
@Type = params['Type']
@PersonIds = params['PersonIds']
@Names = params['Names']
@Tags = params['Tags']
@Offset = params['Offset']
@Limit = params['Limit']
- @SubAppId = params['SubAppId']
end
end
# DescribePersonSamples返回参数结构体
class DescribePersonSamplesResponse < TencentCloud::Common::AbstractModel
@@ -9711,10 +9711,12 @@
end
end
# DescribeWordSamples请求参数结构体
class DescribeWordSamplesRequest < TencentCloud::Common::AbstractModel
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Usages: <b>关键词应用场景过滤条件,可选值:</b>
# 1. Recognition.Ocr:通过光学字符识别技术,进行内容识别;
# 2. Recognition.Asr:通过音频识别技术,进行内容识别;
# 3. Review.Ocr:通过光学字符识别技术,进行不适宜的内容识别;
# 4. Review.Asr:通过音频识别技术,进行不适宜的内容识别;
@@ -9729,31 +9731,29 @@
# @type Tags: Array
# @param Offset: 分页偏移量,默认值:0。
# @type Offset: Integer
# @param Limit: 返回记录条数,默认值:100,最大值:100。
# @type Limit: Integer
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Usages, :Keywords, :Tags, :Offset, :Limit, :SubAppId
+ attr_accessor :SubAppId, :Usages, :Keywords, :Tags, :Offset, :Limit
- def initialize(usages=nil, keywords=nil, tags=nil, offset=nil, limit=nil, subappid=nil)
+ def initialize(subappid=nil, usages=nil, keywords=nil, tags=nil, offset=nil, limit=nil)
+ @SubAppId = subappid
@Usages = usages
@Keywords = keywords
@Tags = tags
@Offset = offset
@Limit = limit
- @SubAppId = subappid
end
def deserialize(params)
+ @SubAppId = params['SubAppId']
@Usages = params['Usages']
@Keywords = params['Keywords']
@Tags = params['Tags']
@Offset = params['Offset']
@Limit = params['Limit']
- @SubAppId = params['SubAppId']
end
end
# DescribeWordSamples返回参数结构体
class DescribeWordSamplesResponse < TencentCloud::Common::AbstractModel
@@ -14476,10 +14476,12 @@
# ModifyPersonSample请求参数结构体
class ModifyPersonSampleRequest < TencentCloud::Common::AbstractModel
# @param PersonId: 素材 ID。
# @type PersonId: String
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Name: 名称,长度限制:128 个字符。
# @type Name: String
# @param Description: 描述,长度限制:1024 个字符。
# @type Description: String
# @param Usages: 素材应用场景,可选值:
@@ -14489,27 +14491,26 @@
# @type Usages: Array
# @param FaceOperationInfo: 五官操作信息。
# @type FaceOperationInfo: :class:`Tencentcloud::Vod.v20180717.models.AiSampleFaceOperation`
# @param TagOperationInfo: 标签操作信息。
# @type TagOperationInfo: :class:`Tencentcloud::Vod.v20180717.models.AiSampleTagOperation`
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :PersonId, :Name, :Description, :Usages, :FaceOperationInfo, :TagOperationInfo, :SubAppId
+ attr_accessor :PersonId, :SubAppId, :Name, :Description, :Usages, :FaceOperationInfo, :TagOperationInfo
- def initialize(personid=nil, name=nil, description=nil, usages=nil, faceoperationinfo=nil, tagoperationinfo=nil, subappid=nil)
+ def initialize(personid=nil, subappid=nil, name=nil, description=nil, usages=nil, faceoperationinfo=nil, tagoperationinfo=nil)
@PersonId = personid
+ @SubAppId = subappid
@Name = name
@Description = description
@Usages = usages
@FaceOperationInfo = faceoperationinfo
@TagOperationInfo = tagoperationinfo
- @SubAppId = subappid
end
def deserialize(params)
@PersonId = params['PersonId']
+ @SubAppId = params['SubAppId']
@Name = params['Name']
@Description = params['Description']
@Usages = params['Usages']
unless params['FaceOperationInfo'].nil?
@FaceOperationInfo = AiSampleFaceOperation.new
@@ -14517,11 +14518,10 @@
end
unless params['TagOperationInfo'].nil?
@TagOperationInfo = AiSampleTagOperation.new
@TagOperationInfo.deserialize(params['TagOperationInfo'])
end
- @SubAppId = params['SubAppId']
end
end
# ModifyPersonSample返回参数结构体
class ModifyPersonSampleResponse < TencentCloud::Common::AbstractModel
@@ -15180,10 +15180,12 @@
# ModifyWordSample请求参数结构体
class ModifyWordSampleRequest < TencentCloud::Common::AbstractModel
# @param Keyword: 关键词,长度限制:128 个字符。
# @type Keyword: String
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
+ # @type SubAppId: Integer
# @param Usages: <b>关键词应用场景,可选值:</b>
# 1. Recognition.Ocr:通过光学字符识别技术,进行内容识别;
# 2. Recognition.Asr:通过音频识别技术,进行内容识别;
# 3. Review.Ocr:通过光学字符识别技术,进行不适宜的内容识别;
# 4. Review.Asr:通过音频识别技术,进行不适宜的内容识别;
@@ -15192,29 +15194,27 @@
# 6. Review:通过光学字符识别技术、音频识别技术,进行不适宜的内容识别,等价于 3+4;
# 7. All:包含以上全部,等价于 1+2+3+4。
# @type Usages: Array
# @param TagOperationInfo: 标签操作信息。
# @type TagOperationInfo: :class:`Tencentcloud::Vod.v20180717.models.AiSampleTagOperation`
- # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
- # @type SubAppId: Integer
- attr_accessor :Keyword, :Usages, :TagOperationInfo, :SubAppId
+ attr_accessor :Keyword, :SubAppId, :Usages, :TagOperationInfo
- def initialize(keyword=nil, usages=nil, tagoperationinfo=nil, subappid=nil)
+ def initialize(keyword=nil, subappid=nil, usages=nil, tagoperationinfo=nil)
@Keyword = keyword
+ @SubAppId = subappid
@Usages = usages
@TagOperationInfo = tagoperationinfo
- @SubAppId = subappid
end
def deserialize(params)
@Keyword = params['Keyword']
+ @SubAppId = params['SubAppId']
@Usages = params['Usages']
unless params['TagOperationInfo'].nil?
@TagOperationInfo = AiSampleTagOperation.new
@TagOperationInfo.deserialize(params['TagOperationInfo'])
end
- @SubAppId = params['SubAppId']
end
end
# ModifyWordSample返回参数结构体
class ModifyWordSampleResponse < TencentCloud::Common::AbstractModel