Google Cloud Container V1 Client - Class DnsCacheConfig (1.24.0)

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

Configuration for NodeLocal DNSCache

Generated from protobuf message google.container.v1.DnsCacheConfig

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enabled bool

Whether NodeLocal DNSCache is enabled for this cluster.

getEnabled

Whether NodeLocal DNSCache is enabled for this cluster.

Returns
TypeDescription
bool

setEnabled

Whether NodeLocal DNSCache is enabled for this cluster.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this