Class: TencentCloud::Tke::V20180525::DNSConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DNSConfig
- Defined in:
- lib/v20180525/models.rb
Overview
自定义DNS配置
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(nameservers = nil, options = nil, searches = nil) ⇒ DNSConfig
constructor
A new instance of DNSConfig.
Constructor Details
#initialize(nameservers = nil, options = nil, searches = nil) ⇒ DNSConfig
Returns a new instance of DNSConfig.
4140 4141 4142 4143 4144 |
# File 'lib/v20180525/models.rb', line 4140 def initialize(nameservers=nil, =nil, searches=nil) @Nameservers = nameservers @Options = @Searches = searches end |
Instance Attribute Details
#Nameservers ⇒ Object
4138 4139 4140 |
# File 'lib/v20180525/models.rb', line 4138 def Nameservers @Nameservers end |
#Options ⇒ Object
4138 4139 4140 |
# File 'lib/v20180525/models.rb', line 4138 def Options @Options end |
#Searches ⇒ Object
4138 4139 4140 |
# File 'lib/v20180525/models.rb', line 4138 def Searches @Searches end |
Instance Method Details
#deserialize(params) ⇒ Object
4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 |
# File 'lib/v20180525/models.rb', line 4146 def deserialize(params) @Nameservers = params['Nameservers'] unless params['Options'].nil? @Options = [] params['Options'].each do |i| dnsconfigoption_tmp = DNSConfigOption.new dnsconfigoption_tmp.deserialize(i) @Options << dnsconfigoption_tmp end end @Searches = params['Searches'] end |