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.



5925
5926
5927
5928
# File 'lib/v20180228/models.rb', line 5925

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

Instance Attribute Details

#ProtectDirObject

Parameters:

  • ProtectDir:

    防护目录地址

  • ProtectHostConfig:

    防护机器 信息



5923
5924
5925
# File 'lib/v20180228/models.rb', line 5923

def ProtectDir
  @ProtectDir
end

#ProtectHostConfigObject

Parameters:

  • ProtectDir:

    防护目录地址

  • ProtectHostConfig:

    防护机器 信息



5923
5924
5925
# File 'lib/v20180228/models.rb', line 5923

def ProtectHostConfig
  @ProtectHostConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
# File 'lib/v20180228/models.rb', line 5930

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