public sealed class UpgradeOccurrence : IMessage<UpgradeOccurrence>, IEquatable<UpgradeOccurrence>, IDeepCloneable<UpgradeOccurrence>, IBufferMessage, IMessage
Reference documentation and code samples for the Grafeas v1 API class 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.
public UpgradeDistribution Distribution { get; set; }
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.
[[["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."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eUpgradeOccurrence\u003c/code\u003e class in the Grafeas v1 API is 3.7.0, with several older versions also available, ranging down to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpgradeOccurrence\u003c/code\u003e represents that a specific resource URL has a specific upgrade available, as discovered through local sources like a mirror.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used for representing available updates, which includes both non-Windows and Windows operating systems, using different properties to represent each operating system.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpgradeOccurrence\u003c/code\u003e has properties, including \u003ccode\u003eDistribution\u003c/code\u003e, \u003ccode\u003ePackage\u003c/code\u003e, \u003ccode\u003eParsedVersion\u003c/code\u003e, and \u003ccode\u003eWindowsUpdate\u003c/code\u003e, which are used to provide details about the available upgrade, the package, version and the windows update.\u003c/p\u003e\n"]]],[],null,["# Grafeas v1 API - Class UpgradeOccurrence (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeOccurrence)\n- [3.8.0](/dotnet/docs/reference/Grafeas.V1/3.8.0/Grafeas.V1.UpgradeOccurrence)\n- [3.7.0](/dotnet/docs/reference/Grafeas.V1/3.7.0/Grafeas.V1.UpgradeOccurrence)\n- [3.6.0](/dotnet/docs/reference/Grafeas.V1/3.6.0/Grafeas.V1.UpgradeOccurrence)\n- [3.5.0](/dotnet/docs/reference/Grafeas.V1/3.5.0/Grafeas.V1.UpgradeOccurrence)\n- [3.4.0](/dotnet/docs/reference/Grafeas.V1/3.4.0/Grafeas.V1.UpgradeOccurrence)\n- [3.3.0](/dotnet/docs/reference/Grafeas.V1/3.3.0/Grafeas.V1.UpgradeOccurrence)\n- [3.2.0](/dotnet/docs/reference/Grafeas.V1/3.2.0/Grafeas.V1.UpgradeOccurrence)\n- [3.1.0](/dotnet/docs/reference/Grafeas.V1/3.1.0/Grafeas.V1.UpgradeOccurrence)\n- [3.0.0](/dotnet/docs/reference/Grafeas.V1/3.0.0/Grafeas.V1.UpgradeOccurrence)\n- [2.4.0](/dotnet/docs/reference/Grafeas.V1/2.4.0/Grafeas.V1.UpgradeOccurrence)\n- [2.3.0](/dotnet/docs/reference/Grafeas.V1/2.3.0/Grafeas.V1.UpgradeOccurrence)\n- [2.2.0](/dotnet/docs/reference/Grafeas.V1/2.2.0/Grafeas.V1.UpgradeOccurrence) \n\n public sealed class UpgradeOccurrence : IMessage\u003cUpgradeOccurrence\u003e, IEquatable\u003cUpgradeOccurrence\u003e, IDeepCloneable\u003cUpgradeOccurrence\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Grafeas v1 API class 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\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpgradeOccurrence \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpgradeOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeOccurrence), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpgradeOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeOccurrence), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpgradeOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeOccurrence), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Grafeas.V1](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)\n\nAssembly\n--------\n\nGrafeas.V1.dll\n\nConstructors\n------------\n\n### UpgradeOccurrence()\n\n public UpgradeOccurrence()\n\n### UpgradeOccurrence(UpgradeOccurrence)\n\n public UpgradeOccurrence(UpgradeOccurrence other)\n\nProperties\n----------\n\n### Distribution\n\n public UpgradeDistribution Distribution { get; set; }\n\nMetadata about the upgrade for available for the specific operating system\nfor the resource_url. This allows efficient filtering, as well as\nmaking it easier to use the occurrence.\n\n### Package\n\n public string Package { get; set; }\n\nRequired for non-Windows OS. The package this Upgrade is for.\n\n### ParsedVersion\n\n public Version ParsedVersion { get; set; }\n\nRequired for non-Windows OS. The version of the package in a machine +\nhuman readable form.\n\n### WindowsUpdate\n\n public WindowsUpdate WindowsUpdate { get; set; }\n\nRequired for Windows OS. Represents the metadata about the Windows update."]]