Class: Google::Apis::ContainerV1::DnsConfig

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

Overview

DNSConfig contains the desired set of options for configuring clusterDNS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsConfig

Returns a new instance of DnsConfig.



1493
1494
1495
# File 'lib/google/apis/container_v1/classes.rb', line 1493

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

Instance Attribute Details

#cluster_dnsString

cluster_dns indicates which in-cluster DNS provider should be used. Corresponds to the JSON property clusterDns

Returns:

  • (String)


1481
1482
1483
# File 'lib/google/apis/container_v1/classes.rb', line 1481

def cluster_dns
  @cluster_dns
end

#cluster_dns_domainString

cluster_dns_domain is the suffix used for all cluster service records. Corresponds to the JSON property clusterDnsDomain

Returns:

  • (String)


1486
1487
1488
# File 'lib/google/apis/container_v1/classes.rb', line 1486

def cluster_dns_domain
  @cluster_dns_domain
end

#cluster_dns_scopeString

cluster_dns_scope indicates the scope of access to cluster DNS records. Corresponds to the JSON property clusterDnsScope

Returns:

  • (String)


1491
1492
1493
# File 'lib/google/apis/container_v1/classes.rb', line 1491

def cluster_dns_scope
  @cluster_dns_scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1498
1499
1500
1501
1502
# File 'lib/google/apis/container_v1/classes.rb', line 1498

def update!(**args)
  @cluster_dns = args[:cluster_dns] if args.key?(:cluster_dns)
  @cluster_dns_domain = args[:cluster_dns_domain] if args.key?(:cluster_dns_domain)
  @cluster_dns_scope = args[:cluster_dns_scope] if args.key?(:cluster_dns_scope)
end