Google Cloud Security Command Center V1 Client - Class Pod (1.17.0)

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

A Kubernetes Pod.

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

Namespace

Google \ Cloud \ SecurityCenter \ V1 \ Kubernetes

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ ns string

Kubernetes Pod namespace.

↳ name string

Kubernetes Pod name.

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

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

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

Pod containers associated with this finding, if any.

getNs

Kubernetes Pod namespace.

Returns
TypeDescription
string

setNs

Kubernetes Pod namespace.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Kubernetes Pod name.

Returns
TypeDescription
string

setName

Kubernetes Pod name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLabels

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

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Label>
Returns
TypeDescription
$this

getContainers

Pod containers associated with this finding, if any.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setContainers

Pod containers associated with this finding, if any.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\Container>
Returns
TypeDescription
$this