Class: TencentCloud::Live::V20180801::CreateLiveWatermarkRuleRequest

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

Overview

CreateLiveWatermarkRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreateLiveWatermarkRuleRequest.



3814
3815
3816
3817
3818
3819
# File 'lib/v20180801/models.rb', line 3814

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。

  • StreamName:

    流名称。

  • TemplateId:

    水印Id,即调用(/document/product/267/30154)接口返回的WatermarkId。



3812
3813
3814
# File 'lib/v20180801/models.rb', line 3812

def AppName
  @AppName
end

#DomainNameObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为live。

  • StreamName:

    流名称。

  • TemplateId:

    水印Id,即调用(/document/product/267/30154)接口返回的WatermarkId。



3812
3813
3814
# File 'lib/v20180801/models.rb', line 3812

def DomainName
  @DomainName
end

#StreamNameObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为live。

  • StreamName:

    流名称。

  • TemplateId:

    水印Id,即调用(/document/product/267/30154)接口返回的WatermarkId。



3812
3813
3814
# File 'lib/v20180801/models.rb', line 3812

def StreamName
  @StreamName
end

#TemplateIdObject

Parameters:

  • DomainName:

    推流域名。

  • AppName:

    推流路径,与推流和播放地址中的AppName保持一致,默认为live。

  • StreamName:

    流名称。

  • TemplateId:

    水印Id,即调用(/document/product/267/30154)接口返回的WatermarkId。



3812
3813
3814
# File 'lib/v20180801/models.rb', line 3812

def TemplateId
  @TemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



3821
3822
3823
3824
3825
3826
# File 'lib/v20180801/models.rb', line 3821

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