Google Cloud Security Command Center V2 Client - Class Pod (1.30.0)

Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class Pod.

A Kubernetes Pod.

Generated from protobuf message google.cloud.securitycenter.v2.Kubernetes.Pod

Namespace

Google \ Cloud \ SecurityCenter \ V2 \ Kubernetes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ns string

Kubernetes Pod namespace.

↳ name string

Kubernetes Pod name.

↳ labels array<Google\Cloud\SecurityCenter\V2\Label>

Pod labels. For Kubernetes containers, these are applied to the container.

↳ containers array<Google\Cloud\SecurityCenter\V2\Container>

Pod containers associated with this finding, if any.

getNs

Kubernetes Pod namespace.

Returns
Type Description
string

setNs

Kubernetes Pod namespace.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Kubernetes Pod name.

Returns
Type Description
string

setName

Kubernetes Pod name.

Parameter
Name Description
var string
Returns
Type Description
$this

getLabels

Pod labels. For Kubernetes containers, these are applied to the container.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLabels

Pod labels. For Kubernetes containers, these are applied to the container.

Parameter
Name Description
var array<Google\Cloud\SecurityCenter\V2\Label>
Returns
Type Description
$this

getContainers

Pod containers associated with this finding, if any.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setContainers

Pod containers associated with this finding, if any.

Parameter
Name Description
var array<Google\Cloud\SecurityCenter\V2\Container>
Returns
Type Description
$this