Google Cloud Container V1 Client - Class NetworkPolicyConfig (2.3.1)

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
Name Description
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
Type Description
bool

setDisabled

Whether NetworkPolicy is enabled for this cluster.

Parameter
Name Description
var bool
Returns
Type Description
$this