Google Cloud Security Command Center V2 Client - Class Object (1.32.0)

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

Kubernetes object related to the finding, uniquely identified by GKNN.

Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.

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

Namespace

Google \ Cloud \ SecurityCenter \ V2 \ Kubernetes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ group string

Kubernetes object group, such as "policy.k8s.io/v1".

↳ kind string

Kubernetes object kind, such as "Namespace".

↳ ns string

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

↳ name string

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

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

Pod containers associated with this finding, if any.

getGroup

Kubernetes object group, such as "policy.k8s.io/v1".

Returns
Type Description
string

setGroup

Kubernetes object group, such as "policy.k8s.io/v1".

Parameter
Name Description
var string
Returns
Type Description
$this

getKind

Kubernetes object kind, such as "Namespace".

Returns
Type Description
string

setKind

Kubernetes object kind, such as "Namespace".

Parameter
Name Description
var string
Returns
Type Description
$this

getNs

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

Returns
Type Description
string

setNs

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Returns
Type Description
string

setName

Parameter
Name Description
var string
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