3.15.0 (latest) 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> UpgradeOccurrence

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpgradeOccurrence](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeOccurrence), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpgradeOccurrence](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Grafeas.V1](https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)

## Assembly

Grafeas.V1.dll

## Constructors

### UpgradeOccurrence()

    public UpgradeOccurrence()

### UpgradeOccurrence(UpgradeOccurrence)

    public UpgradeOccurrence(UpgradeOccurrence other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeOccurrence` |

## Properties

### Distribution

    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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.UpgradeDistribution` |   |

### Package

    public string Package { get; set; }

Required for non-Windows OS. The package this Upgrade is for.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParsedVersion

    public Version ParsedVersion { get; set; }

Required for non-Windows OS. The version of the package in a machine +
human readable form.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.Version` |   |

### WindowsUpdate

    public WindowsUpdate WindowsUpdate { get; set; }

Required for Windows OS. Represents the metadata about the Windows update.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.WindowsUpdate` |   |