# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::Container (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::Container.

Container associated with the finding.

## Inherits

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

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- The time that the container was created.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- The time that the container was created.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- The time that the container was created.

### #image_id

    def image_id() -> ::String

**Returns**

- (::String) --- Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

### #image_id=

    def image_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.
**Returns**

- (::String) --- Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.

### #labels

    def labels() -> ::Array<::Google::Cloud::SecurityCenter::V2::Label>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::Label](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Label)\>) --- Container labels, as provided by the container runtime.

### #labels=

    def labels=(value) -> ::Array<::Google::Cloud::SecurityCenter::V2::Label>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V2::Label](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Label)\>) --- Container labels, as provided by the container runtime.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V2::Label](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Label)\>) --- Container labels, as provided by the container runtime.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the container.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the container.
**Returns**

- (::String) --- Name of the container.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.
**Returns**

- (::String) --- Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.