Class: Google::Apis::ContainerV1beta1::DnsConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/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.



3143
3144
3145
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3143

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

Instance Attribute Details

#additive_vpc_scope_dns_domainString

Optional. The domain used in Additive VPC scope. Corresponds to the JSON property additiveVpcScopeDnsDomain

Returns:

  • (String)


3126
3127
3128
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3126

def additive_vpc_scope_dns_domain
  @additive_vpc_scope_dns_domain
end

#cluster_dnsString

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

Returns:

  • (String)


3131
3132
3133
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3131

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)


3136
3137
3138
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3136

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)


3141
3142
3143
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3141

def cluster_dns_scope
  @cluster_dns_scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3148
3149
3150
3151
3152
3153
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3148

def update!(**args)
  @additive_vpc_scope_dns_domain = args[:additive_vpc_scope_dns_domain] if args.key?(:additive_vpc_scope_dns_domain)
  @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