Class: TencentCloud::Cfw::V20190904::ModifyClusterVpcFwSwitchRequest

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

Overview

ModifyClusterVpcFwSwitch请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable = nil, ccnswitch = nil) ⇒ ModifyClusterVpcFwSwitchRequest

Returns a new instance of ModifyClusterVpcFwSwitchRequest.



7570
7571
7572
7573
# File 'lib/v20190904/models.rb', line 7570

def initialize(enable=nil, ccnswitch=nil)
  @Enable = enable
  @CcnSwitch = ccnswitch
end

Instance Attribute Details

#CcnSwitchObject

Parameters:

  • Enable:

    开关,0:关闭,1:开启

  • CcnSwitch:

    集群模式vpc间防火墙ccn开关信息



7568
7569
7570
# File 'lib/v20190904/models.rb', line 7568

def CcnSwitch
  @CcnSwitch
end

#EnableObject

Parameters:

  • Enable:

    开关,0:关闭,1:开启

  • CcnSwitch:

    集群模式vpc间防火墙ccn开关信息



7568
7569
7570
# File 'lib/v20190904/models.rb', line 7568

def Enable
  @Enable
end

Instance Method Details

#deserialize(params) ⇒ Object



7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
# File 'lib/v20190904/models.rb', line 7575

def deserialize(params)
  @Enable = params['Enable']
  unless params['CcnSwitch'].nil?
    @CcnSwitch = []
    params['CcnSwitch'].each do |i|
      ccnswitchinfo_tmp = CcnSwitchInfo.new
      ccnswitchinfo_tmp.deserialize(i)
      @CcnSwitch << ccnswitchinfo_tmp
    end
  end
end