Class: TencentCloud::Live::V20180801::CreateLivePadTemplateRequest

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

Overview

CreateLivePadTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templatename = nil, url = nil, description = nil, waitduration = nil, maxduration = nil, type = nil) ⇒ CreateLivePadTemplateRequest

Returns a new instance of CreateLivePadTemplateRequest.



2731
2732
2733
2734
2735
2736
2737
2738
# File 'lib/v20180801/models.rb', line 2731

def initialize(templatename=nil, url=nil, description=nil, waitduration=nil, maxduration=nil, type=nil)
  @TemplateName = templatename
  @Url = url
  @Description = description
  @WaitDuration = waitduration
  @MaxDuration = maxduration
  @Type = type
end

Instance Attribute Details

#DescriptionObject

长度上限:255字节。仅支持中文、英文、数字、_、-。长度上限:1024字节。仅支持中文、英文、数字、_、-。取值范围:0-30000。单位:ms。取值范围:0 - 正无穷。单位:ms。1:图片,2:视频。默认值:1。

Parameters:

  • TemplateName:

    模板名称。

  • Url:

    垫片内容。

  • Description:

    描述信息。

  • WaitDuration:

    断流等待时间。

  • MaxDuration:

    最大垫片时长。

  • Type:

    垫片内容类型:



2729
2730
2731
# File 'lib/v20180801/models.rb', line 2729

def Description
  @Description
end

#MaxDurationObject

长度上限:255字节。仅支持中文、英文、数字、_、-。长度上限:1024字节。仅支持中文、英文、数字、_、-。取值范围:0-30000。单位:ms。取值范围:0 - 正无穷。单位:ms。1:图片,2:视频。默认值:1。

Parameters:

  • TemplateName:

    模板名称。

  • Url:

    垫片内容。

  • Description:

    描述信息。

  • WaitDuration:

    断流等待时间。

  • MaxDuration:

    最大垫片时长。

  • Type:

    垫片内容类型:



2729
2730
2731
# File 'lib/v20180801/models.rb', line 2729

def MaxDuration
  @MaxDuration
end

#TemplateNameObject

长度上限:255字节。仅支持中文、英文、数字、_、-。长度上限:1024字节。仅支持中文、英文、数字、_、-。取值范围:0-30000。单位:ms。取值范围:0 - 正无穷。单位:ms。1:图片,2:视频。默认值:1。

Parameters:

  • TemplateName:

    模板名称。

  • Url:

    垫片内容。

  • Description:

    描述信息。

  • WaitDuration:

    断流等待时间。

  • MaxDuration:

    最大垫片时长。

  • Type:

    垫片内容类型:



2729
2730
2731
# File 'lib/v20180801/models.rb', line 2729

def TemplateName
  @TemplateName
end

#TypeObject

长度上限:255字节。仅支持中文、英文、数字、_、-。长度上限:1024字节。仅支持中文、英文、数字、_、-。取值范围:0-30000。单位:ms。取值范围:0 - 正无穷。单位:ms。1:图片,2:视频。默认值:1。

Parameters:

  • TemplateName:

    模板名称。

  • Url:

    垫片内容。

  • Description:

    描述信息。

  • WaitDuration:

    断流等待时间。

  • MaxDuration:

    最大垫片时长。

  • Type:

    垫片内容类型:



2729
2730
2731
# File 'lib/v20180801/models.rb', line 2729

def Type
  @Type
end

#UrlObject

长度上限:255字节。仅支持中文、英文、数字、_、-。长度上限:1024字节。仅支持中文、英文、数字、_、-。取值范围:0-30000。单位:ms。取值范围:0 - 正无穷。单位:ms。1:图片,2:视频。默认值:1。

Parameters:

  • TemplateName:

    模板名称。

  • Url:

    垫片内容。

  • Description:

    描述信息。

  • WaitDuration:

    断流等待时间。

  • MaxDuration:

    最大垫片时长。

  • Type:

    垫片内容类型:



2729
2730
2731
# File 'lib/v20180801/models.rb', line 2729

def Url
  @Url
end

#WaitDurationObject

长度上限:255字节。仅支持中文、英文、数字、_、-。长度上限:1024字节。仅支持中文、英文、数字、_、-。取值范围:0-30000。单位:ms。取值范围:0 - 正无穷。单位:ms。1:图片,2:视频。默认值:1。

Parameters:

  • TemplateName:

    模板名称。

  • Url:

    垫片内容。

  • Description:

    描述信息。

  • WaitDuration:

    断流等待时间。

  • MaxDuration:

    最大垫片时长。

  • Type:

    垫片内容类型:



2729
2730
2731
# File 'lib/v20180801/models.rb', line 2729

def WaitDuration
  @WaitDuration
end

Instance Method Details

#deserialize(params) ⇒ Object



2740
2741
2742
2743
2744
2745
2746
2747
# File 'lib/v20180801/models.rb', line 2740

def deserialize(params)
  @TemplateName = params['TemplateName']
  @Url = params['Url']
  @Description = params['Description']
  @WaitDuration = params['WaitDuration']
  @MaxDuration = params['MaxDuration']
  @Type = params['Type']
end