Google Cloud Container V1 Client - Class NetworkPolicy (1.13.1)

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

Configuration options for the NetworkPolicy feature.

https://kubernetes.io/docs/concepts/services-networking/networkpolicies/

Generated from protobuf message google.container.v1.NetworkPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ provider int

The selected network policy provider.

↳ enabled bool

Whether network policy is enabled on the cluster.

getProvider

The selected network policy provider.

Returns
TypeDescription
int

setProvider

The selected network policy provider.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getEnabled

Whether network policy is enabled on the cluster.

Returns
TypeDescription
bool

setEnabled

Whether network policy is enabled on the cluster.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this