# Google Cloud Security Command Center V1 Client - Class Object (2.5.0)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 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.v1.Kubernetes.Object`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1 \\ 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<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContainers

Pod containers associated with this finding, if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Container>` |   |

### setContainers

Pod containers associated with this finding, if any.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Container>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |