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

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

Kubernetes Pod.

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

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.

Generated from protobuf field string ns = 1;

Returns
TypeDescription
string

setNs

Kubernetes Pod namespace.

Generated from protobuf field string ns = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Kubernetes Pod name.

Generated from protobuf field string name = 2;

Returns
TypeDescription
string

setName

Kubernetes Pod name.

Generated from protobuf field string name = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Label labels = 3;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLabels

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

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Label labels = 3;

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

getContainers

Pod containers associated with this finding, if any.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Container containers = 4;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setContainers

Pod containers associated with this finding, if any.

Generated from protobuf field repeated .google.cloud.securitycenter.v1.Container containers = 4;

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