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

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
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\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
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\V1\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\V1\Container>
Returns
Type Description
$this