Class: TencentCloud::Cfw::V20190904::ModifyEdgeIpSwitchRequest

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

Overview

ModifyEdgeIpSwitch请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable = nil, edgeipswitchlst = nil, autochoosesubnet = nil, switchmode = nil) ⇒ ModifyEdgeIpSwitchRequest

Returns a new instance of ModifyEdgeIpSwitchRequest.



7678
7679
7680
7681
7682
7683
# File 'lib/v20190904/models.rb', line 7678

def initialize(enable=nil, edgeipswitchlst=nil, autochoosesubnet=nil, switchmode=nil)
  @Enable = enable
  @EdgeIpSwitchLst = edgeipswitchlst
  @AutoChooseSubnet = autochoosesubnet
  @SwitchMode = switchmode
end

Instance Attribute Details

#AutoChooseSubnetObject

1 打开开关 2 不操作开关,此次切换模式 1 自动选择子网创建私有连接 1 切换为串行 2 不切换模式,此次操作开关

Parameters:

  • 0 关闭开关

  • 操作开关详情

  • 0 不自动选择子网

  • 0 切换为旁路



7676
7677
7678
# File 'lib/v20190904/models.rb', line 7676

def AutoChooseSubnet
  @AutoChooseSubnet
end

#EdgeIpSwitchLstObject

1 打开开关 2 不操作开关,此次切换模式 1 自动选择子网创建私有连接 1 切换为串行 2 不切换模式,此次操作开关

Parameters:

  • 0 关闭开关

  • 操作开关详情

  • 0 不自动选择子网

  • 0 切换为旁路



7676
7677
7678
# File 'lib/v20190904/models.rb', line 7676

def EdgeIpSwitchLst
  @EdgeIpSwitchLst
end

#EnableObject

1 打开开关 2 不操作开关,此次切换模式 1 自动选择子网创建私有连接 1 切换为串行 2 不切换模式,此次操作开关

Parameters:

  • 0 关闭开关

  • 操作开关详情

  • 0 不自动选择子网

  • 0 切换为旁路



7676
7677
7678
# File 'lib/v20190904/models.rb', line 7676

def Enable
  @Enable
end

#SwitchModeObject

1 打开开关 2 不操作开关,此次切换模式 1 自动选择子网创建私有连接 1 切换为串行 2 不切换模式,此次操作开关

Parameters:

  • 0 关闭开关

  • 操作开关详情

  • 0 不自动选择子网

  • 0 切换为旁路



7676
7677
7678
# File 'lib/v20190904/models.rb', line 7676

def SwitchMode
  @SwitchMode
end

Instance Method Details

#deserialize(params) ⇒ Object



7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
# File 'lib/v20190904/models.rb', line 7685

def deserialize(params)
  @Enable = params['Enable']
  unless params['EdgeIpSwitchLst'].nil?
    @EdgeIpSwitchLst = []
    params['EdgeIpSwitchLst'].each do |i|
      edgeipswitch_tmp = EdgeIpSwitch.new
      edgeipswitch_tmp.deserialize(i)
      @EdgeIpSwitchLst << edgeipswitch_tmp
    end
  end
  @AutoChooseSubnet = params['AutoChooseSubnet']
  @SwitchMode = params['SwitchMode']
end