Class: TencentCloud::Cwp::V20180228::CreateProtectServerRequest

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

Overview

CreateProtectServer请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protectdir = nil, protecthostconfig = nil) ⇒ CreateProtectServerRequest

Returns a new instance of CreateProtectServerRequest.



5900
5901
5902
5903
# File 'lib/v20180228/models.rb', line 5900

def initialize(protectdir=nil, protecthostconfig=nil)
  @ProtectDir = protectdir
  @ProtectHostConfig = protecthostconfig
end

Instance Attribute Details

#ProtectDirObject

Parameters:

  • ProtectDir:

    防护目录地址

  • ProtectHostConfig:

    防护机器 信息



5898
5899
5900
# File 'lib/v20180228/models.rb', line 5898

def ProtectDir
  @ProtectDir
end

#ProtectHostConfigObject

Parameters:

  • ProtectDir:

    防护目录地址

  • ProtectHostConfig:

    防护机器 信息



5898
5899
5900
# File 'lib/v20180228/models.rb', line 5898

def ProtectHostConfig
  @ProtectHostConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
# File 'lib/v20180228/models.rb', line 5905

def deserialize(params)
  @ProtectDir = params['ProtectDir']
  unless params['ProtectHostConfig'].nil?
    @ProtectHostConfig = []
    params['ProtectHostConfig'].each do |i|
      protecthostconfig_tmp = ProtectHostConfig.new
      protecthostconfig_tmp.deserialize(i)
      @ProtectHostConfig << protecthostconfig_tmp
    end
  end
end