Class: TencentCloud::Cwp::V20180228::ModifyWebPageProtectDirRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::ModifyWebPageProtectDirRequest
- Defined in:
- lib/v20180228/models.rb
Overview
ModifyWebPageProtectDir请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(protectdiraddr = nil, protectdirname = nil, protectfiletype = nil, hostconfig = nil) ⇒ ModifyWebPageProtectDirRequest
constructor
A new instance of ModifyWebPageProtectDirRequest.
Constructor Details
#initialize(protectdiraddr = nil, protectdirname = nil, protectfiletype = nil, hostconfig = nil) ⇒ ModifyWebPageProtectDirRequest
Returns a new instance of ModifyWebPageProtectDirRequest.
34428 34429 34430 34431 34432 34433 |
# File 'lib/v20180228/models.rb', line 34428 def initialize(protectdiraddr=nil, protectdirname=nil, protectfiletype=nil, hostconfig=nil) @ProtectDirAddr = protectdiraddr @ProtectDirName = protectdirname @ProtectFileType = protectfiletype @HostConfig = hostconfig end |
Instance Attribute Details
#HostConfig ⇒ Object
34426 34427 34428 |
# File 'lib/v20180228/models.rb', line 34426 def HostConfig @HostConfig end |
#ProtectDirAddr ⇒ Object
34426 34427 34428 |
# File 'lib/v20180228/models.rb', line 34426 def ProtectDirAddr @ProtectDirAddr end |
#ProtectDirName ⇒ Object
34426 34427 34428 |
# File 'lib/v20180228/models.rb', line 34426 def ProtectDirName @ProtectDirName end |
#ProtectFileType ⇒ Object
34426 34427 34428 |
# File 'lib/v20180228/models.rb', line 34426 def ProtectFileType @ProtectFileType end |
Instance Method Details
#deserialize(params) ⇒ Object
34435 34436 34437 34438 34439 34440 34441 34442 34443 34444 34445 34446 34447 |
# File 'lib/v20180228/models.rb', line 34435 def deserialize(params) @ProtectDirAddr = params['ProtectDirAddr'] @ProtectDirName = params['ProtectDirName'] @ProtectFileType = params['ProtectFileType'] unless params['HostConfig'].nil? @HostConfig = [] params['HostConfig'].each do |i| protecthostconfig_tmp = ProtectHostConfig.new protecthostconfig_tmp.deserialize(i) @HostConfig << protecthostconfig_tmp end end end |