# Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::Kubernetes::Object (v1.10.0)

1.10.0 (latest) 1.9.1 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.2 0.33.0 0.32.0 0.31.1 0.30.0 0.29.1 0.28.0 0.27.0 0.26.0 0.25.1 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.1 0.11.1 Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::Kubernetes::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.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #containers

    def containers() -> ::Array<::Google::Cloud::SecurityCenter::V1::Container>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V1::Container](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-Container)\>) --- Pod containers associated with this finding, if any.

### #containers=

    def containers=(value) -> ::Array<::Google::Cloud::SecurityCenter::V1::Container>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V1::Container](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-Container)\>) --- Pod containers associated with this finding, if any.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V1::Container](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-Container)\>) --- Pod containers associated with this finding, if any.

### #group

    def group() -> ::String

**Returns**

- (::String) --- Kubernetes object group, such as "policy.k8s.io/v1".

### #group=

    def group=(value) -> ::String

**Parameter**

- **value** (::String) --- Kubernetes object group, such as "policy.k8s.io/v1".
**Returns**

- (::String) --- Kubernetes object group, such as "policy.k8s.io/v1".

### #kind

    def kind() -> ::String

**Returns**

- (::String) --- Kubernetes object kind, such as "Namespace".

### #kind=

    def kind=(value) -> ::String

**Parameter**

- **value** (::String) --- Kubernetes object kind, such as "Namespace".
**Returns**

- (::String) --- Kubernetes object kind, such as "Namespace".

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
**Returns**

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

### #ns

    def ns() -> ::String

**Returns**

- (::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/.

### #ns=

    def ns=(value) -> ::String

**Parameter**

- **value** (::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/.
**Returns**

- (::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/.