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.
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
#ProtectDir ⇒ Object
5923 5924 5925 |
# File 'lib/v20180228/models.rb', line 5923 def ProtectDir @ProtectDir end |
#ProtectHostConfig ⇒ Object
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 |