Class: TencentCloud::Live::V20180801::CreateLiveTimeShiftRuleRequest

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

Overview

CreateLiveTimeShiftRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domainname = nil, appname = nil, streamname = nil, templateid = nil) ⇒ CreateLiveTimeShiftRuleRequest

Returns a new instance of CreateLiveTimeShiftRuleRequest.



3487
3488
3489
3490
3491
3492
# File 'lib/v20180801/models.rb', line 3487

def initialize(domainname=nil, appname=nil, streamname=nil, templateid=nil)
  @DomainName = domainname
  @AppName = appname
  @StreamName = streamname
  @TemplateId = templateid
end

Instance Attribute Details

#AppNameObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为 live。注:如果需要对所有AppName生效,可填写“*”。

  • StreamName:

    流名称。注:如果本参数设置为非空字符串,规则将只对此推流起作用。如果需要对所有StreamName生效,可填写“*”。

  • TemplateId:

    模板 ID。



3485
3486
3487
# File 'lib/v20180801/models.rb', line 3485

def AppName
  @AppName
end

#DomainNameObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为 live。注:如果需要对所有AppName生效,可填写“*”。

  • StreamName:

    流名称。注:如果本参数设置为非空字符串,规则将只对此推流起作用。如果需要对所有StreamName生效,可填写“*”。

  • TemplateId:

    模板 ID。



3485
3486
3487
# File 'lib/v20180801/models.rb', line 3485

def DomainName
  @DomainName
end

#StreamNameObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为 live。注:如果需要对所有AppName生效,可填写“*”。

  • StreamName:

    流名称。注:如果本参数设置为非空字符串,规则将只对此推流起作用。如果需要对所有StreamName生效,可填写“*”。

  • TemplateId:

    模板 ID。



3485
3486
3487
# File 'lib/v20180801/models.rb', line 3485

def StreamName
  @StreamName
end

#TemplateIdObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为 live。注:如果需要对所有AppName生效,可填写“*”。

  • StreamName:

    流名称。注:如果本参数设置为非空字符串,规则将只对此推流起作用。如果需要对所有StreamName生效,可填写“*”。

  • TemplateId:

    模板 ID。



3485
3486
3487
# File 'lib/v20180801/models.rb', line 3485

def TemplateId
  @TemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



3494
3495
3496
3497
3498
3499
# File 'lib/v20180801/models.rb', line 3494

def deserialize(params)
  @DomainName = params['DomainName']
  @AppName = params['AppName']
  @StreamName = params['StreamName']
  @TemplateId = params['TemplateId']
end