Google Cloud Container V1 Client - Class WorkloadPolicyConfig (1.21.1)

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
NameDescription
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
TypeDescription
bool

hasAllowNetAdmin

clearAllowNetAdmin

setAllowNetAdmin

If true, workloads can use NET_ADMIN capability.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this