Class: TencentCloud::Cwp::V20180228::CreateProtectServerRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::CreateProtectServerRequest
- Defined in:
- lib/v20180228/models.rb
Overview
CreateProtectServer请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(protectdir = nil, protecthostconfig = nil) ⇒ CreateProtectServerRequest
constructor
A new instance of CreateProtectServerRequest.
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
#ProtectDir ⇒ Object
5898 5899 5900 |
# File 'lib/v20180228/models.rb', line 5898 def ProtectDir @ProtectDir end |
#ProtectHostConfig ⇒ Object
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 |