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.
34840 34841 34842 34843 34844 34845 |
# File 'lib/v20180228/models.rb', line 34840 def initialize(protectdiraddr=nil, protectdirname=nil, protectfiletype=nil, hostconfig=nil) @ProtectDirAddr = protectdiraddr @ProtectDirName = protectdirname @ProtectFileType = protectfiletype @HostConfig = hostconfig end |
Instance Attribute Details
#HostConfig ⇒ Object
34838 34839 34840 |
# File 'lib/v20180228/models.rb', line 34838 def HostConfig @HostConfig end |
#ProtectDirAddr ⇒ Object
34838 34839 34840 |
# File 'lib/v20180228/models.rb', line 34838 def ProtectDirAddr @ProtectDirAddr end |
#ProtectDirName ⇒ Object
34838 34839 34840 |
# File 'lib/v20180228/models.rb', line 34838 def ProtectDirName @ProtectDirName end |
#ProtectFileType ⇒ Object
34838 34839 34840 |
# File 'lib/v20180228/models.rb', line 34838 def ProtectFileType @ProtectFileType end |
Instance Method Details
#deserialize(params) ⇒ Object
34847 34848 34849 34850 34851 34852 34853 34854 34855 34856 34857 34858 34859 |
# File 'lib/v20180228/models.rb', line 34847 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 |