# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability.

A vulnerability affecting the VM instance.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #available_inventory_item_ids

    def available_inventory_item_ids() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The `inventory_item` value specifies the latest `SoftwarePackage` available to the VM that fixes the vulnerability.

### #available_inventory_item_ids=

    def available_inventory_item_ids=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The `inventory_item` value specifies the latest `SoftwarePackage` available to the VM that fixes the vulnerability.
**Returns**

- (::Array\<::String\>) --- Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The `inventory_item` value specifies the latest `SoftwarePackage` available to the VM that fixes the vulnerability.

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp for when the vulnerability was first detected.

### #create_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp for when the vulnerability was first detected.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp for when the vulnerability was first detected.

### #details

    def details() -> ::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Details

**Returns**

- ([::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Details](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-VulnerabilityReport-Vulnerability-Details)) --- Contains metadata as per the upstream feed of the operating system and NVD.

### #details=

    def details=(value) -> ::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Details

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Details](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-VulnerabilityReport-Vulnerability-Details)) --- Contains metadata as per the upstream feed of the operating system and NVD.
**Returns**

- ([::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Details](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-VulnerabilityReport-Vulnerability-Details)) --- Contains metadata as per the upstream feed of the operating system and NVD.

### #installed_inventory_item_ids

    def installed_inventory_item_ids() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.

### #installed_inventory_item_ids=

    def installed_inventory_item_ids=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.
**Returns**

- (::Array\<::String\>) --- Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.

### #items

    def items() -> ::Array<::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Item>

**Returns**

- (::Array\<[::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Item](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-VulnerabilityReport-Vulnerability-Item)\>) --- List of items affected by the vulnerability.

### #items=

    def items=(value) -> ::Array<::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Item>

**Parameter**

- **value** (::Array\<[::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Item](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-VulnerabilityReport-Vulnerability-Item)\>) --- List of items affected by the vulnerability.
**Returns**

- (::Array\<[::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Item](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-VulnerabilityReport-Vulnerability-Item)\>) --- List of items affected by the vulnerability.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp for when the vulnerability was last modified.

### #update_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp for when the vulnerability was last modified.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- The timestamp for when the vulnerability was last modified.