Class: TencentCloud::Cfw::V20190904::ModifyFwGroupSwitchRequest

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

Overview

ModifyFwGroupSwitch请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable = nil, allswitch = nil, switchlist = nil) ⇒ ModifyFwGroupSwitchRequest

Returns a new instance of ModifyFwGroupSwitchRequest.



7824
7825
7826
7827
7828
# File 'lib/v20190904/models.rb', line 7824

def initialize(enable=nil, allswitch=nil, switchlist=nil)
  @Enable = enable
  @AllSwitch = allswitch
  @SwitchList = switchlist
end

Instance Attribute Details

#AllSwitchObject

0:关闭开关 1:打开开关

Parameters:

  • Enable:

    打开或关闭开关

  • AllSwitch:

    是否操作全部开关 0 不操作全部开关,1 操作全部开关

  • SwitchList:

    开关列表



7822
7823
7824
# File 'lib/v20190904/models.rb', line 7822

def AllSwitch
  @AllSwitch
end

#EnableObject

0:关闭开关 1:打开开关

Parameters:

  • Enable:

    打开或关闭开关

  • AllSwitch:

    是否操作全部开关 0 不操作全部开关,1 操作全部开关

  • SwitchList:

    开关列表



7822
7823
7824
# File 'lib/v20190904/models.rb', line 7822

def Enable
  @Enable
end

#SwitchListObject

0:关闭开关 1:打开开关

Parameters:

  • Enable:

    打开或关闭开关

  • AllSwitch:

    是否操作全部开关 0 不操作全部开关,1 操作全部开关

  • SwitchList:

    开关列表



7822
7823
7824
# File 'lib/v20190904/models.rb', line 7822

def SwitchList
  @SwitchList
end

Instance Method Details

#deserialize(params) ⇒ Object



7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
# File 'lib/v20190904/models.rb', line 7830

def deserialize(params)
  @Enable = params['Enable']
  @AllSwitch = params['AllSwitch']
  unless params['SwitchList'].nil?
    @SwitchList = []
    params['SwitchList'].each do |i|
      fwgroupswitch_tmp = FwGroupSwitch.new
      fwgroupswitch_tmp.deserialize(i)
      @SwitchList << fwgroupswitch_tmp
    end
  end
end