Class: TencentCloud::Live::V20180801::EnableOptimalSwitchingRequest

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

Overview

EnableOptimalSwitching请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(streamname = nil, enableswitch = nil, hostgroupname = nil) ⇒ EnableOptimalSwitchingRequest

Returns a new instance of EnableOptimalSwitchingRequest.



10931
10932
10933
10934
10935
# File 'lib/v20180801/models.rb', line 10931

def initialize(streamname=nil, enableswitch=nil, hostgroupname=nil)
  @StreamName = streamname
  @EnableSwitch = enableswitch
  @HostGroupName = hostgroupname
end

Instance Attribute Details

#EnableSwitchObject

0 - 禁用。1 - 启用。

Parameters:

  • StreamName:

    针对该流 ID 启用择优调度。

  • EnableSwitch:

    启用开关,默认为启用。

  • HostGroupName:

    要启用自动择优的流所属的域名分组名称。



10929
10930
10931
# File 'lib/v20180801/models.rb', line 10929

def EnableSwitch
  @EnableSwitch
end

#HostGroupNameObject

0 - 禁用。1 - 启用。

Parameters:

  • StreamName:

    针对该流 ID 启用择优调度。

  • EnableSwitch:

    启用开关,默认为启用。

  • HostGroupName:

    要启用自动择优的流所属的域名分组名称。



10929
10930
10931
# File 'lib/v20180801/models.rb', line 10929

def HostGroupName
  @HostGroupName
end

#StreamNameObject

0 - 禁用。1 - 启用。

Parameters:

  • StreamName:

    针对该流 ID 启用择优调度。

  • EnableSwitch:

    启用开关,默认为启用。

  • HostGroupName:

    要启用自动择优的流所属的域名分组名称。



10929
10930
10931
# File 'lib/v20180801/models.rb', line 10929

def StreamName
  @StreamName
end

Instance Method Details

#deserialize(params) ⇒ Object



10937
10938
10939
10940
10941
# File 'lib/v20180801/models.rb', line 10937

def deserialize(params)
  @StreamName = params['StreamName']
  @EnableSwitch = params['EnableSwitch']
  @HostGroupName = params['HostGroupName']
end