Class: TencentCloud::Live::V20180801::SnapshotTemplateInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180801/models.rb

Overview

截图模板信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templateid = nil, templatename = nil, snapshotinterval = nil, width = nil, height = nil, pornflag = nil, cosappid = nil, cosbucket = nil, cosregion = nil, description = nil, cosprefix = nil, cosfilename = nil) ⇒ SnapshotTemplateInfo

Returns a new instance of SnapshotTemplateInfo.



14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
# File 'lib/v20180801/models.rb', line 14758

def initialize(templateid=nil, templatename=nil, snapshotinterval=nil, width=nil, height=nil, pornflag=nil, cosappid=nil, cosbucket=nil, cosregion=nil, description=nil, cosprefix=nil, cosfilename=nil)
  @TemplateId = templateid
  @TemplateName = templatename
  @SnapshotInterval = snapshotinterval
  @Width = width
  @Height = height
  @PornFlag = pornflag
  @CosAppId = cosappid
  @CosBucket = cosbucket
  @CosRegion = cosregion
  @Description = description
  @CosPrefix = cosprefix
  @CosFileName = cosfilename
end

Instance Attribute Details

#CosAppIdObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def CosAppId
  @CosAppId
end

#CosBucketObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def CosBucket
  @CosBucket
end

#CosFileNameObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def CosFileName
  @CosFileName
end

#CosPrefixObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def CosPrefix
  @CosPrefix
end

#CosRegionObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def CosRegion
  @CosRegion
end

#DescriptionObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def Description
  @Description
end

#HeightObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def Height
  @Height
end

#PornFlagObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def PornFlag
  @PornFlag
end

#SnapshotIntervalObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def SnapshotInterval
  @SnapshotInterval
end

#TemplateIdObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def TemplateId
  @TemplateId
end

#TemplateNameObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def TemplateName
  @TemplateName
end

#WidthObject

0:原始宽度并适配原始比例。0:原始高度并适配原始比例。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TemplateId:

    模板 ID。

  • TemplateName:

    模板名称。

  • SnapshotInterval:

    截图时间间隔,5-300秒。

  • Width:

    截图宽度,范围:0-3000。

  • Height:

    截图高度,范围:0-2000。

  • PornFlag:

    是否开启鉴黄,0:不开启,1:开启。

  • CosAppId:

    Cos 应用 ID。

  • CosBucket:

    Cos Bucket名称。

  • CosRegion:

    Cos 地域。

  • Description:

    模板描述。

  • CosPrefix:

    Cos Bucket文件夹前缀。

  • CosFileName:

    Cos 文件名称。



14756
14757
14758
# File 'lib/v20180801/models.rb', line 14756

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
# File 'lib/v20180801/models.rb', line 14773

def deserialize(params)
  @TemplateId = params['TemplateId']
  @TemplateName = params['TemplateName']
  @SnapshotInterval = params['SnapshotInterval']
  @Width = params['Width']
  @Height = params['Height']
  @PornFlag = params['PornFlag']
  @CosAppId = params['CosAppId']
  @CosBucket = params['CosBucket']
  @CosRegion = params['CosRegion']
  @Description = params['Description']
  @CosPrefix = params['CosPrefix']
  @CosFileName = params['CosFileName']
end