Google Cloud Container V1 Client - Class DNSEndpointConfig (2.7.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class DNSEndpointConfig.

Describes the configuration of a DNS endpoint.

Generated from protobuf message google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig

Namespace

Google \ Cloud \ Container \ V1 \ ControlPlaneEndpointsConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ endpoint string

Output only. The cluster's DNS endpoint configuration. A DNS format address. This is accessible from the public internet. Ex: uid.us-central1.gke.goog. Always present, but the behavior may change according to the value of DNSEndpointConfig.allow_external_traffic.

↳ allow_external_traffic bool

Controls whether user traffic is allowed over this endpoint. Note that Google-managed services may still use the endpoint even if this is false.

↳ enable_k8s_tokens_via_dns bool

Controls whether the k8s token auth is allowed via DNS.

↳ enable_k8s_certs_via_dns bool

Controls whether the k8s certs auth is allowed via DNS.

getEndpoint

Output only. The cluster's DNS endpoint configuration.

A DNS format address. This is accessible from the public internet. Ex: uid.us-central1.gke.goog. Always present, but the behavior may change according to the value of DNSEndpointConfig.allow_external_traffic.

Returns
Type Description
string

setEndpoint

Output only. The cluster's DNS endpoint configuration.

A DNS format address. This is accessible from the public internet. Ex: uid.us-central1.gke.goog. Always present, but the behavior may change according to the value of DNSEndpointConfig.allow_external_traffic.

Parameter
Name Description
var string
Returns
Type Description
$this

getAllowExternalTraffic

Controls whether user traffic is allowed over this endpoint. Note that Google-managed services may still use the endpoint even if this is false.

Returns
Type Description
bool

hasAllowExternalTraffic

clearAllowExternalTraffic

setAllowExternalTraffic

Controls whether user traffic is allowed over this endpoint. Note that Google-managed services may still use the endpoint even if this is false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getEnableK8STokensViaDns

Controls whether the k8s token auth is allowed via DNS.

Returns
Type Description
bool

hasEnableK8STokensViaDns

clearEnableK8STokensViaDns

setEnableK8STokensViaDns

Controls whether the k8s token auth is allowed via DNS.

Parameter
Name Description
var bool
Returns
Type Description
$this

getEnableK8SCertsViaDns

Controls whether the k8s certs auth is allowed via DNS.

Returns
Type Description
bool

hasEnableK8SCertsViaDns

clearEnableK8SCertsViaDns

setEnableK8SCertsViaDns

Controls whether the k8s certs auth is allowed via DNS.

Parameter
Name Description
var bool
Returns
Type Description
$this