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.



6748
6749
6750
6751
6752
6753
# File 'lib/v20190904/models.rb', line 6748

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:

  • Enable:

    0 关闭开关

  • EdgeIpSwitchLst:

    操作开关详情

  • AutoChooseSubnet:

    0 不自动选择子网

  • SwitchMode:

    0 切换为旁路



6746
6747
6748
# File 'lib/v20190904/models.rb', line 6746

def AutoChooseSubnet
  @AutoChooseSubnet
end

#EdgeIpSwitchLstObject

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

Parameters:

  • Enable:

    0 关闭开关

  • EdgeIpSwitchLst:

    操作开关详情

  • AutoChooseSubnet:

    0 不自动选择子网

  • SwitchMode:

    0 切换为旁路



6746
6747
6748
# File 'lib/v20190904/models.rb', line 6746

def EdgeIpSwitchLst
  @EdgeIpSwitchLst
end

#EnableObject

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

Parameters:

  • Enable:

    0 关闭开关

  • EdgeIpSwitchLst:

    操作开关详情

  • AutoChooseSubnet:

    0 不自动选择子网

  • SwitchMode:

    0 切换为旁路



6746
6747
6748
# File 'lib/v20190904/models.rb', line 6746

def Enable
  @Enable
end

#SwitchModeObject

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

Parameters:

  • Enable:

    0 关闭开关

  • EdgeIpSwitchLst:

    操作开关详情

  • AutoChooseSubnet:

    0 不自动选择子网

  • SwitchMode:

    0 切换为旁路



6746
6747
6748
# File 'lib/v20190904/models.rb', line 6746

def SwitchMode
  @SwitchMode
end

Instance Method Details

#deserialize(params) ⇒ Object



6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
# File 'lib/v20190904/models.rb', line 6755

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