Google Cloud Container V1 Client - Class NetworkPolicyConfig (1.16.0)

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

Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.

Generated from protobuf message google.container.v1.NetworkPolicyConfig

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disabled bool

Whether NetworkPolicy is enabled for this cluster.

getDisabled

Whether NetworkPolicy is enabled for this cluster.

Returns
TypeDescription
bool

setDisabled

Whether NetworkPolicy is enabled for this cluster.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this