Class: TencentCloud::Tke::V20180525::DNSConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

自定义DNS配置

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options=nil, searches=nil)
  @Nameservers = nameservers
  @Options = options
  @Searches = searches
end

Instance Attribute Details

#NameserversObject

Parameters:

  • Nameservers:

    DNS 服务器IP地址列表

  • Options:

    对象选项列表,每个对象由name和value(可选)构成

  • Searches:

    DNS搜索域列表



4138
4139
4140
# File 'lib/v20180525/models.rb', line 4138

def Nameservers
  @Nameservers
end

#OptionsObject

Parameters:

  • Nameservers:

    DNS 服务器IP地址列表

  • Options:

    对象选项列表,每个对象由name和value(可选)构成

  • Searches:

    DNS搜索域列表



4138
4139
4140
# File 'lib/v20180525/models.rb', line 4138

def Options
  @Options
end

#SearchesObject

Parameters:

  • Nameservers:

    DNS 服务器IP地址列表

  • Options:

    对象选项列表,每个对象由name和value(可选)构成

  • Searches:

    DNS搜索域列表



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