# Grafeas V1 API - Class Grafeas::V1::UpgradeOccurrence (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::UpgradeOccurrence.

An Upgrade Occurrence represents that a specific resource_url could install a
specific upgrade. This presence is supplied via local sources (i.e. it is
present in the mirror and the running system has noticed its availability).
For Windows, both distribution and windows_update contain information for the
Windows update.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #distribution

    def distribution() -> ::Grafeas::V1::UpgradeDistribution

**Returns**

- ([::Grafeas::V1::UpgradeDistribution](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-UpgradeDistribution)) --- Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.

### #distribution=

    def distribution=(value) -> ::Grafeas::V1::UpgradeDistribution

**Parameter**

- **value** ([::Grafeas::V1::UpgradeDistribution](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-UpgradeDistribution)) --- Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
**Returns**

- ([::Grafeas::V1::UpgradeDistribution](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-UpgradeDistribution)) --- Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.

### #package

    def package() -> ::String

**Returns**

- (::String) --- Required for non-Windows OS. The package this Upgrade is for.

### #package=

    def package=(value) -> ::String

**Parameter**

- **value** (::String) --- Required for non-Windows OS. The package this Upgrade is for.
**Returns**

- (::String) --- Required for non-Windows OS. The package this Upgrade is for.

### #parsed_version

    def parsed_version() -> ::Grafeas::V1::Version

**Returns**

- ([::Grafeas::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version)) --- Required for non-Windows OS. The version of the package in a machine + human readable form.

### #parsed_version=

    def parsed_version=(value) -> ::Grafeas::V1::Version

**Parameter**

- **value** ([::Grafeas::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version)) --- Required for non-Windows OS. The version of the package in a machine + human readable form.
**Returns**

- ([::Grafeas::V1::Version](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version)) --- Required for non-Windows OS. The version of the package in a machine + human readable form.

### #windows_update

    def windows_update() -> ::Grafeas::V1::WindowsUpdate

**Returns**

- ([::Grafeas::V1::WindowsUpdate](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-WindowsUpdate)) --- Required for Windows OS. Represents the metadata about the Windows update.

### #windows_update=

    def windows_update=(value) -> ::Grafeas::V1::WindowsUpdate

**Parameter**

- **value** ([::Grafeas::V1::WindowsUpdate](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-WindowsUpdate)) --- Required for Windows OS. Represents the metadata about the Windows update.
**Returns**

- ([::Grafeas::V1::WindowsUpdate](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-WindowsUpdate)) --- Required for Windows OS. Represents the metadata about the Windows update.