# Grafeas V1 API - Class Grafeas::V1::VulnerabilityNote (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::VulnerabilityNote.

A security vulnerability that can be found in resources.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #advisory_publish_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Timestamp)) --- The time this advisory was published by the source.

### #advisory_publish_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Timestamp)) --- The time this advisory was published by the source.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Timestamp)) --- The time this advisory was published by the source.

### #cvss_score

    def cvss_score() -> ::Float

**Returns**

- (::Float) --- The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

### #cvss_score=

    def cvss_score=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
**Returns**

- (::Float) --- The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.

### #cvss_v2

    def cvss_v2() -> ::Grafeas::V1::CVSS

**Returns**

- ([::Grafeas::V1::CVSS](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSS)) --- The full description of the v2 CVSS for this vulnerability.

### #cvss_v2=

    def cvss_v2=(value) -> ::Grafeas::V1::CVSS

**Parameter**

- **value** ([::Grafeas::V1::CVSS](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSS)) --- The full description of the v2 CVSS for this vulnerability.
**Returns**

- ([::Grafeas::V1::CVSS](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSS)) --- The full description of the v2 CVSS for this vulnerability.

### #cvss_v3

    def cvss_v3() -> ::Grafeas::V1::CVSSv3

**Returns**

- ([::Grafeas::V1::CVSSv3](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSSv3)) --- The full description of the CVSSv3 for this vulnerability.

### #cvss_v3=

    def cvss_v3=(value) -> ::Grafeas::V1::CVSSv3

**Parameter**

- **value** ([::Grafeas::V1::CVSSv3](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSSv3)) --- The full description of the CVSSv3 for this vulnerability.
**Returns**

- ([::Grafeas::V1::CVSSv3](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSSv3)) --- The full description of the CVSSv3 for this vulnerability.

### #cvss_version

    def cvss_version() -> ::Grafeas::V1::CVSSVersion

**Returns**

- ([::Grafeas::V1::CVSSVersion](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSSVersion)) --- CVSS version used to populate cvss_score and severity.

### #cvss_version=

    def cvss_version=(value) -> ::Grafeas::V1::CVSSVersion

**Parameter**

- **value** ([::Grafeas::V1::CVSSVersion](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSSVersion)) --- CVSS version used to populate cvss_score and severity.
**Returns**

- ([::Grafeas::V1::CVSSVersion](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-CVSSVersion)) --- CVSS version used to populate cvss_score and severity.

### #details

    def details() -> ::Array<::Grafeas::V1::VulnerabilityNote::Detail>

**Returns**

- (::Array\<[::Grafeas::V1::VulnerabilityNote::Detail](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-VulnerabilityNote-Detail)\>) --- Details of all known distros and packages affected by this vulnerability.

### #details=

    def details=(value) -> ::Array<::Grafeas::V1::VulnerabilityNote::Detail>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::VulnerabilityNote::Detail](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-VulnerabilityNote-Detail)\>) --- Details of all known distros and packages affected by this vulnerability.
**Returns**

- (::Array\<[::Grafeas::V1::VulnerabilityNote::Detail](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-VulnerabilityNote-Detail)\>) --- Details of all known distros and packages affected by this vulnerability.

### #severity

    def severity() -> ::Grafeas::V1::Severity

**Returns**

- ([::Grafeas::V1::Severity](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Severity)) --- The note provider assigned severity of this vulnerability.

### #severity=

    def severity=(value) -> ::Grafeas::V1::Severity

**Parameter**

- **value** ([::Grafeas::V1::Severity](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Severity)) --- The note provider assigned severity of this vulnerability.
**Returns**

- ([::Grafeas::V1::Severity](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Severity)) --- The note provider assigned severity of this vulnerability.

### #source_update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Timestamp)) --- The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

### #source_update_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Timestamp)) --- The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Google-Protobuf-Timestamp)) --- The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.

### #windows_details

    def windows_details() -> ::Array<::Grafeas::V1::VulnerabilityNote::WindowsDetail>

**Returns**

- (::Array\<[::Grafeas::V1::VulnerabilityNote::WindowsDetail](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-VulnerabilityNote-WindowsDetail)\>) --- Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.

### #windows_details=

    def windows_details=(value) -> ::Array<::Grafeas::V1::VulnerabilityNote::WindowsDetail>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::VulnerabilityNote::WindowsDetail](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-VulnerabilityNote-WindowsDetail)\>) --- Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
**Returns**

- (::Array\<[::Grafeas::V1::VulnerabilityNote::WindowsDetail](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-VulnerabilityNote-WindowsDetail)\>) --- Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.