Class: TencentCloud::Waf::V20180125::SwitchElasticModeRequest

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

Overview

SwitchElasticMode请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(edition = nil, mode = nil, instanceid = nil) ⇒ SwitchElasticModeRequest

Returns a new instance of SwitchElasticModeRequest.



12636
12637
12638
12639
12640
# File 'lib/v20180125/models.rb', line 12636

def initialize(edition=nil, mode=nil, instanceid=nil)
  @Edition = edition
  @Mode = mode
  @InstanceID = instanceid
end

Instance Attribute Details

#EditionObject

Parameters:

  • Edition:

    版本,只能是sparta-waf, clb-waf, cdn-waf

  • Mode:

    0代表关闭,1代表打开

  • InstanceID:

    实例id



12634
12635
12636
# File 'lib/v20180125/models.rb', line 12634

def Edition
  @Edition
end

#InstanceIDObject

Parameters:

  • Edition:

    版本,只能是sparta-waf, clb-waf, cdn-waf

  • Mode:

    0代表关闭,1代表打开

  • InstanceID:

    实例id



12634
12635
12636
# File 'lib/v20180125/models.rb', line 12634

def InstanceID
  @InstanceID
end

#ModeObject

Parameters:

  • Edition:

    版本,只能是sparta-waf, clb-waf, cdn-waf

  • Mode:

    0代表关闭,1代表打开

  • InstanceID:

    实例id



12634
12635
12636
# File 'lib/v20180125/models.rb', line 12634

def Mode
  @Mode
end

Instance Method Details

#deserialize(params) ⇒ Object



12642
12643
12644
12645
12646
# File 'lib/v20180125/models.rb', line 12642

def deserialize(params)
  @Edition = params['Edition']
  @Mode = params['Mode']
  @InstanceID = params['InstanceID']
end