Class: Google::Apis::GkeonpremV1::VmwareHostConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
more...

Overview

Represents the common parameters for all the hosts irrespective of their IP address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareHostConfig

Returns a new instance of VmwareHostConfig.

[View source]

4949
4950
4951
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4949

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dns_search_domainsArray<String>

DNS search domains. Corresponds to the JSON property dnsSearchDomains

Returns:

  • (Array<String>)

4937
4938
4939
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4937

def dns_search_domains
  @dns_search_domains
end

#dns_serversArray<String>

DNS servers. Corresponds to the JSON property dnsServers

Returns:

  • (Array<String>)

4942
4943
4944
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4942

def dns_servers
  @dns_servers
end

#ntp_serversArray<String>

NTP servers. Corresponds to the JSON property ntpServers

Returns:

  • (Array<String>)

4947
4948
4949
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4947

def ntp_servers
  @ntp_servers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4954
4955
4956
4957
4958
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4954

def update!(**args)
  @dns_search_domains = args[:dns_search_domains] if args.key?(:dns_search_domains)
  @dns_servers = args[:dns_servers] if args.key?(:dns_servers)
  @ntp_servers = args[:ntp_servers] if args.key?(:ntp_servers)
end