Class: TencentCloud::Cfw::V20190904::ModifyFwGroupSwitchRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::ModifyFwGroupSwitchRequest
- Defined in:
- lib/v20190904/models.rb
Overview
ModifyFwGroupSwitch请求参数结构体
Instance Attribute Summary collapse
-
#AllSwitch ⇒ Object
0:关闭开关 1:打开开关.
-
#Enable ⇒ Object
0:关闭开关 1:打开开关.
-
#SwitchList ⇒ Object
0:关闭开关 1:打开开关.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(enable = nil, allswitch = nil, switchlist = nil) ⇒ ModifyFwGroupSwitchRequest
constructor
A new instance of ModifyFwGroupSwitchRequest.
Constructor Details
#initialize(enable = nil, allswitch = nil, switchlist = nil) ⇒ ModifyFwGroupSwitchRequest
Returns a new instance of ModifyFwGroupSwitchRequest.
6894 6895 6896 6897 6898 |
# File 'lib/v20190904/models.rb', line 6894 def initialize(enable=nil, allswitch=nil, switchlist=nil) @Enable = enable @AllSwitch = allswitch @SwitchList = switchlist end |
Instance Attribute Details
#AllSwitch ⇒ Object
0:关闭开关1:打开开关
6892 6893 6894 |
# File 'lib/v20190904/models.rb', line 6892 def AllSwitch @AllSwitch end |
#Enable ⇒ Object
0:关闭开关1:打开开关
6892 6893 6894 |
# File 'lib/v20190904/models.rb', line 6892 def Enable @Enable end |
#SwitchList ⇒ Object
0:关闭开关1:打开开关
6892 6893 6894 |
# File 'lib/v20190904/models.rb', line 6892 def SwitchList @SwitchList end |
Instance Method Details
#deserialize(params) ⇒ Object
6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 |
# File 'lib/v20190904/models.rb', line 6900 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 |