Google Cloud Container V1 Client - Class WorkloadPolicyConfig (1.30.3)

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

WorkloadPolicyConfig is the configuration of workload policy for autopilot clusters.

Generated from protobuf message google.container.v1.WorkloadPolicyConfig

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ allow_net_admin bool

If true, workloads can use NET_ADMIN capability.

getAllowNetAdmin

If true, workloads can use NET_ADMIN capability.

Returns
Type Description
bool

hasAllowNetAdmin

clearAllowNetAdmin

setAllowNetAdmin

If true, workloads can use NET_ADMIN capability.

Parameter
Name Description
var bool
Returns
Type Description
$this