# Grafeas V1 Client - Class UpgradeDistribution (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class UpgradeDistribution.

The Upgrade Distribution represents metadata about the Upgrade for each
operating system (CPE). Some distributions have additional metadata around
updates, classifying them into various categories and severities.

Generated from protobuf message `grafeas.v1.UpgradeDistribution`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cpe_uri` | `string` Required - The specific operating system this metadata applies to. See <https://cpe.mitre.org/specification/>. |
| `↳ classification` | `string` The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at <https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85>) |
| `↳ severity` | `string` The severity as specified by the upstream operating system. |
| `↳ cve` | `string[]` The cve tied to this Upgrade. |

### getCpeUri

Required - The specific operating system this metadata applies to. See
<https://cpe.mitre.org/specification/>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCpeUri

Required - The specific operating system this metadata applies to. See
<https://cpe.mitre.org/specification/>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClassification

The operating system classification of this Upgrade, as specified by the
upstream operating system upgrade feed. For Windows the classification is
one of the category_ids listed at
<https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85>)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setClassification

The operating system classification of this Upgrade, as specified by the
upstream operating system upgrade feed. For Windows the classification is
one of the category_ids listed at
<https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85>)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSeverity

The severity as specified by the upstream operating system.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSeverity

The severity as specified by the upstream operating system.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCve

The cve tied to this Upgrade.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setCve

The cve tied to this Upgrade.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |