Google Cloud Container V1 Client - Class NetworkPolicy (1.9.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
Name
Description
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.

Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1;

Returns
Type
Description
int

setProvider

The selected network policy provider.

Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1;

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getEnabled

Whether network policy is enabled on the cluster.

Generated from protobuf field bool enabled = 2;

Returns
Type
Description
bool

setEnabled

Whether network policy is enabled on the cluster.

Generated from protobuf field bool enabled = 2;

Parameter
Name
Description
var
bool
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: