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.
(::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.
value(::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) — 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
defpackage()->::String
Returns
(::String) — Required for non-Windows OS. The package this Upgrade is for.
#package=
defpackage=(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
defparsed_version()->::Grafeas::V1::Version
Returns
(::Grafeas::V1::Version) — Required for non-Windows OS. The version of the package in a machine +
human readable form.
#parsed_version=
defparsed_version=(value)->::Grafeas::V1::Version
Parameter
value(::Grafeas::V1::Version) — Required for non-Windows OS. The version of the package in a machine +
human readable form.
Returns
(::Grafeas::V1::Version) — Required for non-Windows OS. The version of the package in a machine +
human readable form.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Grafeas V1 API - Class Grafeas::V1::UpgradeOccurrence (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-UpgradeOccurrence)\n- [1.3.1](/ruby/docs/reference/grafeas-v1/1.3.1/Grafeas-V1-UpgradeOccurrence)\n- [1.2.0](/ruby/docs/reference/grafeas-v1/1.2.0/Grafeas-V1-UpgradeOccurrence)\n- [1.1.1](/ruby/docs/reference/grafeas-v1/1.1.1/Grafeas-V1-UpgradeOccurrence)\n- [1.0.0](/ruby/docs/reference/grafeas-v1/1.0.0/Grafeas-V1-UpgradeOccurrence)\n- [0.16.1](/ruby/docs/reference/grafeas-v1/0.16.1/Grafeas-V1-UpgradeOccurrence)\n- [0.15.0](/ruby/docs/reference/grafeas-v1/0.15.0/Grafeas-V1-UpgradeOccurrence)\n- [0.14.2](/ruby/docs/reference/grafeas-v1/0.14.2/Grafeas-V1-UpgradeOccurrence)\n- [0.13.0](/ruby/docs/reference/grafeas-v1/0.13.0/Grafeas-V1-UpgradeOccurrence)\n- [0.12.1](/ruby/docs/reference/grafeas-v1/0.12.1/Grafeas-V1-UpgradeOccurrence)\n- [0.11.0](/ruby/docs/reference/grafeas-v1/0.11.0/Grafeas-V1-UpgradeOccurrence)\n- [0.10.0](/ruby/docs/reference/grafeas-v1/0.10.0/Grafeas-V1-UpgradeOccurrence)\n- [0.9.0](/ruby/docs/reference/grafeas-v1/0.9.0/Grafeas-V1-UpgradeOccurrence)\n- [0.8.0](/ruby/docs/reference/grafeas-v1/0.8.0/Grafeas-V1-UpgradeOccurrence)\n- [0.7.0](/ruby/docs/reference/grafeas-v1/0.7.0/Grafeas-V1-UpgradeOccurrence)\n- [0.6.1](/ruby/docs/reference/grafeas-v1/0.6.1/Grafeas-V1-UpgradeOccurrence)\n- [0.5.0](/ruby/docs/reference/grafeas-v1/0.5.0/Grafeas-V1-UpgradeOccurrence)\n- [0.4.0](/ruby/docs/reference/grafeas-v1/0.4.0/Grafeas-V1-UpgradeOccurrence)\n- [0.3.1](/ruby/docs/reference/grafeas-v1/0.3.1/Grafeas-V1-UpgradeOccurrence) \nReference documentation and code samples for the Grafeas V1 API class Grafeas::V1::UpgradeOccurrence.\n\nAn Upgrade Occurrence represents that a specific resource_url could install a\nspecific upgrade. This presence is supplied via local sources (i.e. it is\npresent in the mirror and the running system has noticed its availability).\nFor Windows, both distribution and windows_update contain information for the\nWindows update. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #distribution\n\n def distribution() -\u003e ::Grafeas::V1::UpgradeDistribution\n\n**Returns**\n\n- ([::Grafeas::V1::UpgradeDistribution](./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.\n\n### #distribution=\n\n def distribution=(value) -\u003e ::Grafeas::V1::UpgradeDistribution\n\n**Parameter**\n\n- **value** ([::Grafeas::V1::UpgradeDistribution](./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. \n**Returns**\n\n- ([::Grafeas::V1::UpgradeDistribution](./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.\n\n### #package\n\n def package() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required for non-Windows OS. The package this Upgrade is for.\n\n### #package=\n\n def package=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required for non-Windows OS. The package this Upgrade is for. \n**Returns**\n\n- (::String) --- Required for non-Windows OS. The package this Upgrade is for.\n\n### #parsed_version\n\n def parsed_version() -\u003e ::Grafeas::V1::Version\n\n**Returns**\n\n- ([::Grafeas::V1::Version](./Grafeas-V1-Version)) --- Required for non-Windows OS. The version of the package in a machine + human readable form.\n\n### #parsed_version=\n\n def parsed_version=(value) -\u003e ::Grafeas::V1::Version\n\n**Parameter**\n\n- **value** ([::Grafeas::V1::Version](./Grafeas-V1-Version)) --- Required for non-Windows OS. The version of the package in a machine + human readable form. \n**Returns**\n\n- ([::Grafeas::V1::Version](./Grafeas-V1-Version)) --- Required for non-Windows OS. The version of the package in a machine + human readable form.\n\n### #windows_update\n\n def windows_update() -\u003e ::Grafeas::V1::WindowsUpdate\n\n**Returns**\n\n- ([::Grafeas::V1::WindowsUpdate](./Grafeas-V1-WindowsUpdate)) --- Required for Windows OS. Represents the metadata about the Windows update.\n\n### #windows_update=\n\n def windows_update=(value) -\u003e ::Grafeas::V1::WindowsUpdate\n\n**Parameter**\n\n- **value** ([::Grafeas::V1::WindowsUpdate](./Grafeas-V1-WindowsUpdate)) --- Required for Windows OS. Represents the metadata about the Windows update. \n**Returns**\n\n- ([::Grafeas::V1::WindowsUpdate](./Grafeas-V1-WindowsUpdate)) --- Required for Windows OS. Represents the metadata about the Windows update."]]